Use shovels, land in water

This commit is contained in:
2020-12-02 11:12:51 +00:00
parent 00846538e8
commit 6ba9288fd7
7 changed files with 36 additions and 3 deletions
+1
View File
@@ -71,6 +71,7 @@ def diffrange(n):
def break_time(block_id, held_item=0, in_water=False, on_ground=True, enchantments=[], effects={}):
# from PrismarineJS/prismarine-block
held_item = str(held_item)
block_data = blocks.get(block_id)
can_harvest = 'harvestTools' not in block_data or str(held_item) in block_data['harvestTools']