Minecraft-Console-Client/MinecraftClient/Mapping
Daenges b3b9a26288
Add script for excavating cubes (#1677)
* Add MineCube.cs

* Clear unused comments and using directives

* Move the command to a chatbot class

* Set a maximum sleep time for block mining

* Add tool selection function

* Improve the block - tool detection

* Improve naming and comments

* Add missing blocktypes

* Add block-tool assertion and tool switching in hotbar

* Remove unused using declaratives and improve coordinate handling

* Move Material2Tool in the Mapping folder

* Add function to let the bot mine up to 5 blocks above its head

* Remove obsolete function to detect breakability

* Implement mineup command
Users can dig out a 2 high square manually. The client will walk through it
mining everything that is reachable above, while avoiding falling blocks and liquids.

* Refactor big parts of the code
Move the function for obtaining cubes to a seperate file.
Sort Unbreakables alphabetically.
Change the distance to wait in the mine function back to 2.

* Fix suggestions from review
Change several parts of the code according to the review
Add credits

* Convert the bot into a script file and move it to config folder
Adjust the script to be loadable with /script
Remove unnecessary code
Add public modifier to material2tool

* Add checking for lava and water for normal mining

* Remove MineCube.cs from chatbots

* Code re-format

Rename variables
Fix indentation

Co-authored-by: ReinforceZwei <39955851+ReinforceZwei@users.noreply.github.com>
2021-08-03 13:25:43 +08:00
..
BlockPalettes 1.16+ Terrain and Movement support (#1353) 2020-11-28 20:48:35 +01:00
EntityPalettes Replace ZombiePigman with ZombifiedPiglin 2020-08-23 23:48:22 +02:00
Block.cs Implement entity types (#1001) 2020-05-24 18:21:22 +02:00
Chunk.cs Terrain: Fix coordinate parsing (negative coords) 2015-12-08 00:34:40 +01:00
ChunkColumn.cs Fix index out of bound when height < 0 or > 255 2016-07-22 23:47:36 +02:00
CommandBlockFlags.cs ChatBot API: OnScoreboardObjective, OnEntityEffect, OnUpdateScore, EntityInteract, Hand list (#1097) 2020-07-04 10:45:51 +02:00
CommandBlockMode.cs ChatBot API: OnScoreboardObjective, OnEntityEffect, OnUpdateScore, EntityInteract, Hand list (#1097) 2020-07-04 10:45:51 +02:00
CubeFromWorld.cs Add script for excavating cubes (#1677) 2021-08-03 13:25:43 +08:00
Direction.cs Add simple movements with /move command 2015-12-12 16:48:38 +01:00
Entity.cs New method for getting looking location (#1503) 2021-03-13 22:23:58 +08:00
EntityPose.cs Add Entity.Item, Entity.CustomName, OnEntityMetadata event (#1222) 2020-08-20 18:36:50 +02:00
EntityType.cs Replace ZombiePigman with ZombifiedPiglin 2020-08-23 23:48:22 +02:00
EntityTypeExtensions.cs Replace ZombiePigman with ZombifiedPiglin 2020-08-23 23:48:22 +02:00
Location.cs Calulate dig range using eyes location (#1228) 2020-08-24 00:06:52 +02:00
Material.cs 1.16+ Terrain and Movement support (#1353) 2020-11-28 20:48:35 +01:00
Material2Tool.cs Add script for excavating cubes (#1677) 2021-08-03 13:25:43 +08:00
MaterialExtensions.cs Add support for Minecraft 1.15 2019-12-14 14:22:24 +01:00
Movement.cs Implement more realisic fall to ground 2017-03-10 23:40:02 +01:00
VillagerInfo.cs Adds support for villager trading (#1316) 2020-11-08 23:39:07 +01:00
World.cs New method for getting looking location (#1503) 2021-03-13 22:23:58 +08:00