plancraft 0.1.2__py3-none-any.whl → 0.1.4__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- plancraft/__init__.py +0 -0
- plancraft/config.py +155 -0
- plancraft/environments/__init__.py +0 -0
- plancraft/environments/actions.py +218 -0
- plancraft/environments/constants.json +64582 -0
- plancraft/environments/env_real.py +316 -0
- plancraft/environments/env_symbolic.py +212 -0
- plancraft/environments/items.py +10 -0
- plancraft/environments/planner.py +109 -0
- plancraft/environments/recipes/acacia_boat.json +16 -0
- plancraft/environments/recipes/acacia_button.json +12 -0
- plancraft/environments/recipes/acacia_door.json +18 -0
- plancraft/environments/recipes/acacia_fence.json +20 -0
- plancraft/environments/recipes/acacia_fence_gate.json +19 -0
- plancraft/environments/recipes/acacia_planks.json +13 -0
- plancraft/environments/recipes/acacia_pressure_plate.json +15 -0
- plancraft/environments/recipes/acacia_sign.json +21 -0
- plancraft/environments/recipes/acacia_slab.json +16 -0
- plancraft/environments/recipes/acacia_stairs.json +18 -0
- plancraft/environments/recipes/acacia_trapdoor.json +17 -0
- plancraft/environments/recipes/acacia_wood.json +17 -0
- plancraft/environments/recipes/activator_rail.json +23 -0
- plancraft/environments/recipes/andesite.json +15 -0
- plancraft/environments/recipes/andesite_slab.json +15 -0
- plancraft/environments/recipes/andesite_slab_from_andesite_stonecutting.json +8 -0
- plancraft/environments/recipes/andesite_stairs.json +17 -0
- plancraft/environments/recipes/andesite_stairs_from_andesite_stonecutting.json +8 -0
- plancraft/environments/recipes/andesite_wall.json +16 -0
- plancraft/environments/recipes/andesite_wall_from_andesite_stonecutting.json +8 -0
- plancraft/environments/recipes/anvil.json +19 -0
- plancraft/environments/recipes/armor_dye.json +3 -0
- plancraft/environments/recipes/armor_stand.json +19 -0
- plancraft/environments/recipes/arrow.json +23 -0
- plancraft/environments/recipes/baked_potato.json +9 -0
- plancraft/environments/recipes/baked_potato_from_campfire_cooking.json +9 -0
- plancraft/environments/recipes/baked_potato_from_smoking.json +9 -0
- plancraft/environments/recipes/banner_duplicate.json +3 -0
- plancraft/environments/recipes/barrel.json +19 -0
- plancraft/environments/recipes/beacon.json +22 -0
- plancraft/environments/recipes/beehive.json +19 -0
- plancraft/environments/recipes/beetroot_soup.json +29 -0
- plancraft/environments/recipes/birch_boat.json +16 -0
- plancraft/environments/recipes/birch_button.json +12 -0
- plancraft/environments/recipes/birch_door.json +18 -0
- plancraft/environments/recipes/birch_fence.json +20 -0
- plancraft/environments/recipes/birch_fence_gate.json +19 -0
- plancraft/environments/recipes/birch_planks.json +13 -0
- plancraft/environments/recipes/birch_pressure_plate.json +15 -0
- plancraft/environments/recipes/birch_sign.json +21 -0
- plancraft/environments/recipes/birch_slab.json +16 -0
- plancraft/environments/recipes/birch_stairs.json +18 -0
- plancraft/environments/recipes/birch_trapdoor.json +17 -0
- plancraft/environments/recipes/birch_wood.json +17 -0
- plancraft/environments/recipes/black_banner.json +20 -0
- plancraft/environments/recipes/black_bed.json +19 -0
- plancraft/environments/recipes/black_bed_from_white_bed.json +15 -0
- plancraft/environments/recipes/black_carpet.json +16 -0
- plancraft/environments/recipes/black_carpet_from_white_carpet.json +21 -0
- plancraft/environments/recipes/black_concrete_powder.json +37 -0
- plancraft/environments/recipes/black_dye.json +12 -0
- plancraft/environments/recipes/black_dye_from_wither_rose.json +12 -0
- plancraft/environments/recipes/black_glazed_terracotta.json +9 -0
- plancraft/environments/recipes/black_stained_glass.json +21 -0
- plancraft/environments/recipes/black_stained_glass_pane.json +17 -0
- plancraft/environments/recipes/black_stained_glass_pane_from_glass_pane.json +21 -0
- plancraft/environments/recipes/black_terracotta.json +21 -0
- plancraft/environments/recipes/black_wool.json +15 -0
- plancraft/environments/recipes/blackstone_slab.json +15 -0
- plancraft/environments/recipes/blackstone_slab_from_blackstone_stonecutting.json +8 -0
- plancraft/environments/recipes/blackstone_stairs.json +17 -0
- plancraft/environments/recipes/blackstone_stairs_from_blackstone_stonecutting.json +8 -0
- plancraft/environments/recipes/blackstone_wall.json +16 -0
- plancraft/environments/recipes/blackstone_wall_from_blackstone_stonecutting.json +8 -0
- plancraft/environments/recipes/blast_furnace.json +22 -0
- plancraft/environments/recipes/blaze_powder.json +12 -0
- plancraft/environments/recipes/blue_banner.json +20 -0
- plancraft/environments/recipes/blue_bed.json +19 -0
- plancraft/environments/recipes/blue_bed_from_white_bed.json +15 -0
- plancraft/environments/recipes/blue_carpet.json +16 -0
- plancraft/environments/recipes/blue_carpet_from_white_carpet.json +21 -0
- plancraft/environments/recipes/blue_concrete_powder.json +37 -0
- plancraft/environments/recipes/blue_dye.json +12 -0
- plancraft/environments/recipes/blue_dye_from_cornflower.json +12 -0
- plancraft/environments/recipes/blue_glazed_terracotta.json +9 -0
- plancraft/environments/recipes/blue_ice.json +16 -0
- plancraft/environments/recipes/blue_stained_glass.json +21 -0
- plancraft/environments/recipes/blue_stained_glass_pane.json +17 -0
- plancraft/environments/recipes/blue_stained_glass_pane_from_glass_pane.json +21 -0
- plancraft/environments/recipes/blue_terracotta.json +21 -0
- plancraft/environments/recipes/blue_wool.json +15 -0
- plancraft/environments/recipes/bone_block.json +16 -0
- plancraft/environments/recipes/bone_meal.json +13 -0
- plancraft/environments/recipes/bone_meal_from_bone_block.json +13 -0
- plancraft/environments/recipes/book.json +20 -0
- plancraft/environments/recipes/book_cloning.json +3 -0
- plancraft/environments/recipes/bookshelf.json +19 -0
- plancraft/environments/recipes/bow.json +19 -0
- plancraft/environments/recipes/bowl.json +16 -0
- plancraft/environments/recipes/bread.json +14 -0
- plancraft/environments/recipes/brewing_stand.json +18 -0
- plancraft/environments/recipes/brick.json +9 -0
- plancraft/environments/recipes/brick_slab.json +15 -0
- plancraft/environments/recipes/brick_slab_from_bricks_stonecutting.json +8 -0
- plancraft/environments/recipes/brick_stairs.json +17 -0
- plancraft/environments/recipes/brick_stairs_from_bricks_stonecutting.json +8 -0
- plancraft/environments/recipes/brick_wall.json +16 -0
- plancraft/environments/recipes/brick_wall_from_bricks_stonecutting.json +8 -0
- plancraft/environments/recipes/bricks.json +15 -0
- plancraft/environments/recipes/brown_banner.json +20 -0
- plancraft/environments/recipes/brown_bed.json +19 -0
- plancraft/environments/recipes/brown_bed_from_white_bed.json +15 -0
- plancraft/environments/recipes/brown_carpet.json +16 -0
- plancraft/environments/recipes/brown_carpet_from_white_carpet.json +21 -0
- plancraft/environments/recipes/brown_concrete_powder.json +37 -0
- plancraft/environments/recipes/brown_dye.json +12 -0
- plancraft/environments/recipes/brown_glazed_terracotta.json +9 -0
- plancraft/environments/recipes/brown_stained_glass.json +21 -0
- plancraft/environments/recipes/brown_stained_glass_pane.json +17 -0
- plancraft/environments/recipes/brown_stained_glass_pane_from_glass_pane.json +21 -0
- plancraft/environments/recipes/brown_terracotta.json +21 -0
- plancraft/environments/recipes/brown_wool.json +15 -0
- plancraft/environments/recipes/bucket.json +15 -0
- plancraft/environments/recipes/cake.json +25 -0
- plancraft/environments/recipes/campfire.json +22 -0
- plancraft/environments/recipes/carrot_on_a_stick.json +18 -0
- plancraft/environments/recipes/cartography_table.json +19 -0
- plancraft/environments/recipes/cauldron.json +16 -0
- plancraft/environments/recipes/chain.json +19 -0
- plancraft/environments/recipes/charcoal.json +9 -0
- plancraft/environments/recipes/chest.json +16 -0
- plancraft/environments/recipes/chest_minecart.json +18 -0
- plancraft/environments/recipes/chiseled_nether_bricks.json +15 -0
- plancraft/environments/recipes/chiseled_nether_bricks_from_nether_bricks_stonecutting.json +8 -0
- plancraft/environments/recipes/chiseled_polished_blackstone.json +15 -0
- plancraft/environments/recipes/chiseled_polished_blackstone_from_blackstone_stonecutting.json +8 -0
- plancraft/environments/recipes/chiseled_polished_blackstone_from_polished_blackstone_stonecutting.json +8 -0
- plancraft/environments/recipes/chiseled_quartz_block.json +15 -0
- plancraft/environments/recipes/chiseled_quartz_block_from_quartz_block_stonecutting.json +8 -0
- plancraft/environments/recipes/chiseled_red_sandstone.json +15 -0
- plancraft/environments/recipes/chiseled_red_sandstone_from_red_sandstone_stonecutting.json +8 -0
- plancraft/environments/recipes/chiseled_sandstone.json +15 -0
- plancraft/environments/recipes/chiseled_sandstone_from_sandstone_stonecutting.json +8 -0
- plancraft/environments/recipes/chiseled_stone_bricks.json +15 -0
- plancraft/environments/recipes/chiseled_stone_bricks_from_stone_bricks_stonecutting.json +8 -0
- plancraft/environments/recipes/chiseled_stone_bricks_stone_from_stonecutting.json +8 -0
- plancraft/environments/recipes/clay.json +15 -0
- plancraft/environments/recipes/clock.json +19 -0
- plancraft/environments/recipes/coal.json +12 -0
- plancraft/environments/recipes/coal_block.json +16 -0
- plancraft/environments/recipes/coal_from_blasting.json +9 -0
- plancraft/environments/recipes/coal_from_smelting.json +9 -0
- plancraft/environments/recipes/coarse_dirt.json +19 -0
- plancraft/environments/recipes/cobblestone_slab.json +15 -0
- plancraft/environments/recipes/cobblestone_slab_from_cobblestone_stonecutting.json +8 -0
- plancraft/environments/recipes/cobblestone_stairs.json +17 -0
- plancraft/environments/recipes/cobblestone_stairs_from_cobblestone_stonecutting.json +8 -0
- plancraft/environments/recipes/cobblestone_wall.json +16 -0
- plancraft/environments/recipes/cobblestone_wall_from_cobblestone_stonecutting.json +8 -0
- plancraft/environments/recipes/comparator.json +22 -0
- plancraft/environments/recipes/compass.json +19 -0
- plancraft/environments/recipes/composter.json +16 -0
- plancraft/environments/recipes/conduit.json +19 -0
- plancraft/environments/recipes/cooked_beef.json +9 -0
- plancraft/environments/recipes/cooked_beef_from_campfire_cooking.json +9 -0
- plancraft/environments/recipes/cooked_beef_from_smoking.json +9 -0
- plancraft/environments/recipes/cooked_chicken.json +9 -0
- plancraft/environments/recipes/cooked_chicken_from_campfire_cooking.json +9 -0
- plancraft/environments/recipes/cooked_chicken_from_smoking.json +9 -0
- plancraft/environments/recipes/cooked_cod.json +9 -0
- plancraft/environments/recipes/cooked_cod_from_campfire_cooking.json +9 -0
- plancraft/environments/recipes/cooked_cod_from_smoking.json +9 -0
- plancraft/environments/recipes/cooked_mutton.json +9 -0
- plancraft/environments/recipes/cooked_mutton_from_campfire_cooking.json +9 -0
- plancraft/environments/recipes/cooked_mutton_from_smoking.json +9 -0
- plancraft/environments/recipes/cooked_porkchop.json +9 -0
- plancraft/environments/recipes/cooked_porkchop_from_campfire_cooking.json +9 -0
- plancraft/environments/recipes/cooked_porkchop_from_smoking.json +9 -0
- plancraft/environments/recipes/cooked_rabbit.json +9 -0
- plancraft/environments/recipes/cooked_rabbit_from_campfire_cooking.json +9 -0
- plancraft/environments/recipes/cooked_rabbit_from_smoking.json +9 -0
- plancraft/environments/recipes/cooked_salmon.json +9 -0
- plancraft/environments/recipes/cooked_salmon_from_campfire_cooking.json +9 -0
- plancraft/environments/recipes/cooked_salmon_from_smoking.json +9 -0
- plancraft/environments/recipes/cookie.json +18 -0
- plancraft/environments/recipes/cracked_nether_bricks.json +9 -0
- plancraft/environments/recipes/cracked_polished_blackstone_bricks.json +9 -0
- plancraft/environments/recipes/cracked_stone_bricks.json +9 -0
- plancraft/environments/recipes/crafting_table.json +15 -0
- plancraft/environments/recipes/creeper_banner_pattern.json +14 -0
- plancraft/environments/recipes/crimson_button.json +12 -0
- plancraft/environments/recipes/crimson_door.json +18 -0
- plancraft/environments/recipes/crimson_fence.json +20 -0
- plancraft/environments/recipes/crimson_fence_gate.json +19 -0
- plancraft/environments/recipes/crimson_hyphae.json +17 -0
- plancraft/environments/recipes/crimson_planks.json +13 -0
- plancraft/environments/recipes/crimson_pressure_plate.json +15 -0
- plancraft/environments/recipes/crimson_sign.json +21 -0
- plancraft/environments/recipes/crimson_slab.json +16 -0
- plancraft/environments/recipes/crimson_stairs.json +18 -0
- plancraft/environments/recipes/crimson_trapdoor.json +17 -0
- plancraft/environments/recipes/crossbow.json +25 -0
- plancraft/environments/recipes/cut_red_sandstone.json +16 -0
- plancraft/environments/recipes/cut_red_sandstone_from_red_sandstone_stonecutting.json +8 -0
- plancraft/environments/recipes/cut_red_sandstone_slab.json +15 -0
- plancraft/environments/recipes/cut_red_sandstone_slab_from_cut_red_sandstone_stonecutting.json +8 -0
- plancraft/environments/recipes/cut_red_sandstone_slab_from_red_sandstone_stonecutting.json +8 -0
- plancraft/environments/recipes/cut_sandstone.json +16 -0
- plancraft/environments/recipes/cut_sandstone_from_sandstone_stonecutting.json +8 -0
- plancraft/environments/recipes/cut_sandstone_slab.json +15 -0
- plancraft/environments/recipes/cut_sandstone_slab_from_cut_sandstone_stonecutting.json +8 -0
- plancraft/environments/recipes/cut_sandstone_slab_from_sandstone_stonecutting.json +8 -0
- plancraft/environments/recipes/cyan_banner.json +20 -0
- plancraft/environments/recipes/cyan_bed.json +19 -0
- plancraft/environments/recipes/cyan_bed_from_white_bed.json +15 -0
- plancraft/environments/recipes/cyan_carpet.json +16 -0
- plancraft/environments/recipes/cyan_carpet_from_white_carpet.json +21 -0
- plancraft/environments/recipes/cyan_concrete_powder.json +37 -0
- plancraft/environments/recipes/cyan_dye.json +15 -0
- plancraft/environments/recipes/cyan_glazed_terracotta.json +9 -0
- plancraft/environments/recipes/cyan_stained_glass.json +21 -0
- plancraft/environments/recipes/cyan_stained_glass_pane.json +17 -0
- plancraft/environments/recipes/cyan_stained_glass_pane_from_glass_pane.json +21 -0
- plancraft/environments/recipes/cyan_terracotta.json +21 -0
- plancraft/environments/recipes/cyan_wool.json +15 -0
- plancraft/environments/recipes/dark_oak_boat.json +16 -0
- plancraft/environments/recipes/dark_oak_button.json +12 -0
- plancraft/environments/recipes/dark_oak_door.json +18 -0
- plancraft/environments/recipes/dark_oak_fence.json +20 -0
- plancraft/environments/recipes/dark_oak_fence_gate.json +19 -0
- plancraft/environments/recipes/dark_oak_planks.json +13 -0
- plancraft/environments/recipes/dark_oak_pressure_plate.json +15 -0
- plancraft/environments/recipes/dark_oak_sign.json +21 -0
- plancraft/environments/recipes/dark_oak_slab.json +16 -0
- plancraft/environments/recipes/dark_oak_stairs.json +18 -0
- plancraft/environments/recipes/dark_oak_trapdoor.json +17 -0
- plancraft/environments/recipes/dark_oak_wood.json +17 -0
- plancraft/environments/recipes/dark_prismarine.json +19 -0
- plancraft/environments/recipes/dark_prismarine_slab.json +15 -0
- plancraft/environments/recipes/dark_prismarine_slab_from_dark_prismarine_stonecutting.json +8 -0
- plancraft/environments/recipes/dark_prismarine_stairs.json +17 -0
- plancraft/environments/recipes/dark_prismarine_stairs_from_dark_prismarine_stonecutting.json +8 -0
- plancraft/environments/recipes/daylight_detector.json +22 -0
- plancraft/environments/recipes/detector_rail.json +23 -0
- plancraft/environments/recipes/diamond.json +12 -0
- plancraft/environments/recipes/diamond_axe.json +19 -0
- plancraft/environments/recipes/diamond_block.json +16 -0
- plancraft/environments/recipes/diamond_boots.json +15 -0
- plancraft/environments/recipes/diamond_chestplate.json +16 -0
- plancraft/environments/recipes/diamond_from_blasting.json +9 -0
- plancraft/environments/recipes/diamond_from_smelting.json +9 -0
- plancraft/environments/recipes/diamond_helmet.json +15 -0
- plancraft/environments/recipes/diamond_hoe.json +19 -0
- plancraft/environments/recipes/diamond_leggings.json +16 -0
- plancraft/environments/recipes/diamond_pickaxe.json +19 -0
- plancraft/environments/recipes/diamond_shovel.json +19 -0
- plancraft/environments/recipes/diamond_sword.json +19 -0
- plancraft/environments/recipes/diorite.json +19 -0
- plancraft/environments/recipes/diorite_slab.json +15 -0
- plancraft/environments/recipes/diorite_slab_from_diorite_stonecutting.json +8 -0
- plancraft/environments/recipes/diorite_stairs.json +17 -0
- plancraft/environments/recipes/diorite_stairs_from_diorite_stonecutting.json +8 -0
- plancraft/environments/recipes/diorite_wall.json +16 -0
- plancraft/environments/recipes/diorite_wall_from_diorite_stonecutting.json +8 -0
- plancraft/environments/recipes/dispenser.json +22 -0
- plancraft/environments/recipes/dried_kelp.json +12 -0
- plancraft/environments/recipes/dried_kelp_block.json +35 -0
- plancraft/environments/recipes/dried_kelp_from_campfire_cooking.json +9 -0
- plancraft/environments/recipes/dried_kelp_from_smelting.json +9 -0
- plancraft/environments/recipes/dried_kelp_from_smoking.json +9 -0
- plancraft/environments/recipes/dropper.json +19 -0
- plancraft/environments/recipes/emerald.json +12 -0
- plancraft/environments/recipes/emerald_block.json +16 -0
- plancraft/environments/recipes/emerald_from_blasting.json +9 -0
- plancraft/environments/recipes/emerald_from_smelting.json +9 -0
- plancraft/environments/recipes/enchanting_table.json +22 -0
- plancraft/environments/recipes/end_crystal.json +22 -0
- plancraft/environments/recipes/end_rod.json +19 -0
- plancraft/environments/recipes/end_stone_brick_slab.json +15 -0
- plancraft/environments/recipes/end_stone_brick_slab_from_end_stone_brick_stonecutting.json +8 -0
- plancraft/environments/recipes/end_stone_brick_slab_from_end_stone_stonecutting.json +8 -0
- plancraft/environments/recipes/end_stone_brick_stairs.json +17 -0
- plancraft/environments/recipes/end_stone_brick_stairs_from_end_stone_brick_stonecutting.json +8 -0
- plancraft/environments/recipes/end_stone_brick_stairs_from_end_stone_stonecutting.json +8 -0
- plancraft/environments/recipes/end_stone_brick_wall.json +16 -0
- plancraft/environments/recipes/end_stone_brick_wall_from_end_stone_brick_stonecutting.json +8 -0
- plancraft/environments/recipes/end_stone_brick_wall_from_end_stone_stonecutting.json +8 -0
- plancraft/environments/recipes/end_stone_bricks.json +16 -0
- plancraft/environments/recipes/end_stone_bricks_from_end_stone_stonecutting.json +8 -0
- plancraft/environments/recipes/ender_chest.json +19 -0
- plancraft/environments/recipes/ender_eye.json +14 -0
- plancraft/environments/recipes/fermented_spider_eye.json +17 -0
- plancraft/environments/recipes/fire_charge.json +23 -0
- plancraft/environments/recipes/firework_rocket.json +3 -0
- plancraft/environments/recipes/firework_star.json +3 -0
- plancraft/environments/recipes/firework_star_fade.json +3 -0
- plancraft/environments/recipes/fishing_rod.json +19 -0
- plancraft/environments/recipes/fletching_table.json +19 -0
- plancraft/environments/recipes/flint_and_steel.json +14 -0
- plancraft/environments/recipes/flower_banner_pattern.json +14 -0
- plancraft/environments/recipes/flower_pot.json +15 -0
- plancraft/environments/recipes/furnace.json +16 -0
- plancraft/environments/recipes/furnace_minecart.json +18 -0
- plancraft/environments/recipes/glass.json +9 -0
- plancraft/environments/recipes/glass_bottle.json +16 -0
- plancraft/environments/recipes/glass_pane.json +16 -0
- plancraft/environments/recipes/glistering_melon_slice.json +19 -0
- plancraft/environments/recipes/glowstone.json +15 -0
- plancraft/environments/recipes/gold_block.json +16 -0
- plancraft/environments/recipes/gold_ingot.json +9 -0
- plancraft/environments/recipes/gold_ingot_from_blasting.json +9 -0
- plancraft/environments/recipes/gold_ingot_from_gold_block.json +13 -0
- plancraft/environments/recipes/gold_ingot_from_nuggets.json +17 -0
- plancraft/environments/recipes/gold_nugget.json +12 -0
- plancraft/environments/recipes/gold_nugget_from_blasting.json +38 -0
- plancraft/environments/recipes/gold_nugget_from_smelting.json +38 -0
- plancraft/environments/recipes/golden_apple.json +19 -0
- plancraft/environments/recipes/golden_axe.json +19 -0
- plancraft/environments/recipes/golden_boots.json +15 -0
- plancraft/environments/recipes/golden_carrot.json +19 -0
- plancraft/environments/recipes/golden_chestplate.json +16 -0
- plancraft/environments/recipes/golden_helmet.json +15 -0
- plancraft/environments/recipes/golden_hoe.json +19 -0
- plancraft/environments/recipes/golden_leggings.json +16 -0
- plancraft/environments/recipes/golden_pickaxe.json +19 -0
- plancraft/environments/recipes/golden_shovel.json +19 -0
- plancraft/environments/recipes/golden_sword.json +19 -0
- plancraft/environments/recipes/granite.json +14 -0
- plancraft/environments/recipes/granite_slab.json +15 -0
- plancraft/environments/recipes/granite_slab_from_granite_stonecutting.json +8 -0
- plancraft/environments/recipes/granite_stairs.json +17 -0
- plancraft/environments/recipes/granite_stairs_from_granite_stonecutting.json +8 -0
- plancraft/environments/recipes/granite_wall.json +16 -0
- plancraft/environments/recipes/granite_wall_from_granite_stonecutting.json +8 -0
- plancraft/environments/recipes/gray_banner.json +20 -0
- plancraft/environments/recipes/gray_bed.json +19 -0
- plancraft/environments/recipes/gray_bed_from_white_bed.json +15 -0
- plancraft/environments/recipes/gray_carpet.json +16 -0
- plancraft/environments/recipes/gray_carpet_from_white_carpet.json +21 -0
- plancraft/environments/recipes/gray_concrete_powder.json +37 -0
- plancraft/environments/recipes/gray_dye.json +15 -0
- plancraft/environments/recipes/gray_glazed_terracotta.json +9 -0
- plancraft/environments/recipes/gray_stained_glass.json +21 -0
- plancraft/environments/recipes/gray_stained_glass_pane.json +17 -0
- plancraft/environments/recipes/gray_stained_glass_pane_from_glass_pane.json +21 -0
- plancraft/environments/recipes/gray_terracotta.json +21 -0
- plancraft/environments/recipes/gray_wool.json +15 -0
- plancraft/environments/recipes/green_banner.json +20 -0
- plancraft/environments/recipes/green_bed.json +19 -0
- plancraft/environments/recipes/green_bed_from_white_bed.json +15 -0
- plancraft/environments/recipes/green_carpet.json +16 -0
- plancraft/environments/recipes/green_carpet_from_white_carpet.json +21 -0
- plancraft/environments/recipes/green_concrete_powder.json +37 -0
- plancraft/environments/recipes/green_dye.json +9 -0
- plancraft/environments/recipes/green_glazed_terracotta.json +9 -0
- plancraft/environments/recipes/green_stained_glass.json +21 -0
- plancraft/environments/recipes/green_stained_glass_pane.json +17 -0
- plancraft/environments/recipes/green_stained_glass_pane_from_glass_pane.json +21 -0
- plancraft/environments/recipes/green_terracotta.json +21 -0
- plancraft/environments/recipes/green_wool.json +15 -0
- plancraft/environments/recipes/grindstone.json +21 -0
- plancraft/environments/recipes/hay_block.json +16 -0
- plancraft/environments/recipes/heavy_weighted_pressure_plate.json +14 -0
- plancraft/environments/recipes/honey_block.json +15 -0
- plancraft/environments/recipes/honey_bottle.json +24 -0
- plancraft/environments/recipes/honeycomb_block.json +15 -0
- plancraft/environments/recipes/hopper.json +19 -0
- plancraft/environments/recipes/hopper_minecart.json +18 -0
- plancraft/environments/recipes/iron_axe.json +19 -0
- plancraft/environments/recipes/iron_bars.json +16 -0
- plancraft/environments/recipes/iron_block.json +16 -0
- plancraft/environments/recipes/iron_boots.json +15 -0
- plancraft/environments/recipes/iron_chestplate.json +16 -0
- plancraft/environments/recipes/iron_door.json +17 -0
- plancraft/environments/recipes/iron_helmet.json +15 -0
- plancraft/environments/recipes/iron_hoe.json +19 -0
- plancraft/environments/recipes/iron_ingot.json +9 -0
- plancraft/environments/recipes/iron_ingot_from_blasting.json +9 -0
- plancraft/environments/recipes/iron_ingot_from_iron_block.json +13 -0
- plancraft/environments/recipes/iron_ingot_from_nuggets.json +17 -0
- plancraft/environments/recipes/iron_leggings.json +16 -0
- plancraft/environments/recipes/iron_nugget.json +12 -0
- plancraft/environments/recipes/iron_nugget_from_blasting.json +50 -0
- plancraft/environments/recipes/iron_nugget_from_smelting.json +50 -0
- plancraft/environments/recipes/iron_pickaxe.json +19 -0
- plancraft/environments/recipes/iron_shovel.json +19 -0
- plancraft/environments/recipes/iron_sword.json +19 -0
- plancraft/environments/recipes/iron_trapdoor.json +15 -0
- plancraft/environments/recipes/item_frame.json +19 -0
- plancraft/environments/recipes/jack_o_lantern.json +18 -0
- plancraft/environments/recipes/jukebox.json +19 -0
- plancraft/environments/recipes/jungle_boat.json +16 -0
- plancraft/environments/recipes/jungle_button.json +12 -0
- plancraft/environments/recipes/jungle_door.json +18 -0
- plancraft/environments/recipes/jungle_fence.json +20 -0
- plancraft/environments/recipes/jungle_fence_gate.json +19 -0
- plancraft/environments/recipes/jungle_planks.json +13 -0
- plancraft/environments/recipes/jungle_pressure_plate.json +15 -0
- plancraft/environments/recipes/jungle_sign.json +21 -0
- plancraft/environments/recipes/jungle_slab.json +16 -0
- plancraft/environments/recipes/jungle_stairs.json +18 -0
- plancraft/environments/recipes/jungle_trapdoor.json +17 -0
- plancraft/environments/recipes/jungle_wood.json +17 -0
- plancraft/environments/recipes/ladder.json +17 -0
- plancraft/environments/recipes/lantern.json +19 -0
- plancraft/environments/recipes/lapis_block.json +16 -0
- plancraft/environments/recipes/lapis_from_blasting.json +9 -0
- plancraft/environments/recipes/lapis_from_smelting.json +9 -0
- plancraft/environments/recipes/lapis_lazuli.json +12 -0
- plancraft/environments/recipes/lead.json +20 -0
- plancraft/environments/recipes/leather.json +15 -0
- plancraft/environments/recipes/leather_boots.json +15 -0
- plancraft/environments/recipes/leather_chestplate.json +16 -0
- plancraft/environments/recipes/leather_helmet.json +15 -0
- plancraft/environments/recipes/leather_horse_armor.json +16 -0
- plancraft/environments/recipes/leather_leggings.json +16 -0
- plancraft/environments/recipes/lectern.json +19 -0
- plancraft/environments/recipes/lever.json +18 -0
- plancraft/environments/recipes/light_blue_banner.json +20 -0
- plancraft/environments/recipes/light_blue_bed.json +19 -0
- plancraft/environments/recipes/light_blue_bed_from_white_bed.json +15 -0
- plancraft/environments/recipes/light_blue_carpet.json +16 -0
- plancraft/environments/recipes/light_blue_carpet_from_white_carpet.json +21 -0
- plancraft/environments/recipes/light_blue_concrete_powder.json +37 -0
- plancraft/environments/recipes/light_blue_dye_from_blue_orchid.json +12 -0
- plancraft/environments/recipes/light_blue_dye_from_blue_white_dye.json +16 -0
- plancraft/environments/recipes/light_blue_glazed_terracotta.json +9 -0
- plancraft/environments/recipes/light_blue_stained_glass.json +21 -0
- plancraft/environments/recipes/light_blue_stained_glass_pane.json +17 -0
- plancraft/environments/recipes/light_blue_stained_glass_pane_from_glass_pane.json +21 -0
- plancraft/environments/recipes/light_blue_terracotta.json +21 -0
- plancraft/environments/recipes/light_blue_wool.json +15 -0
- plancraft/environments/recipes/light_gray_banner.json +20 -0
- plancraft/environments/recipes/light_gray_bed.json +19 -0
- plancraft/environments/recipes/light_gray_bed_from_white_bed.json +15 -0
- plancraft/environments/recipes/light_gray_carpet.json +16 -0
- plancraft/environments/recipes/light_gray_carpet_from_white_carpet.json +21 -0
- plancraft/environments/recipes/light_gray_concrete_powder.json +37 -0
- plancraft/environments/recipes/light_gray_dye_from_azure_bluet.json +12 -0
- plancraft/environments/recipes/light_gray_dye_from_black_white_dye.json +19 -0
- plancraft/environments/recipes/light_gray_dye_from_gray_white_dye.json +16 -0
- plancraft/environments/recipes/light_gray_dye_from_oxeye_daisy.json +12 -0
- plancraft/environments/recipes/light_gray_dye_from_white_tulip.json +12 -0
- plancraft/environments/recipes/light_gray_glazed_terracotta.json +9 -0
- plancraft/environments/recipes/light_gray_stained_glass.json +21 -0
- plancraft/environments/recipes/light_gray_stained_glass_pane.json +17 -0
- plancraft/environments/recipes/light_gray_stained_glass_pane_from_glass_pane.json +21 -0
- plancraft/environments/recipes/light_gray_terracotta.json +21 -0
- plancraft/environments/recipes/light_gray_wool.json +15 -0
- plancraft/environments/recipes/light_weighted_pressure_plate.json +14 -0
- plancraft/environments/recipes/lime_banner.json +20 -0
- plancraft/environments/recipes/lime_bed.json +19 -0
- plancraft/environments/recipes/lime_bed_from_white_bed.json +15 -0
- plancraft/environments/recipes/lime_carpet.json +16 -0
- plancraft/environments/recipes/lime_carpet_from_white_carpet.json +21 -0
- plancraft/environments/recipes/lime_concrete_powder.json +37 -0
- plancraft/environments/recipes/lime_dye.json +15 -0
- plancraft/environments/recipes/lime_dye_from_smelting.json +9 -0
- plancraft/environments/recipes/lime_glazed_terracotta.json +9 -0
- plancraft/environments/recipes/lime_stained_glass.json +21 -0
- plancraft/environments/recipes/lime_stained_glass_pane.json +17 -0
- plancraft/environments/recipes/lime_stained_glass_pane_from_glass_pane.json +21 -0
- plancraft/environments/recipes/lime_terracotta.json +21 -0
- plancraft/environments/recipes/lime_wool.json +15 -0
- plancraft/environments/recipes/lodestone.json +19 -0
- plancraft/environments/recipes/loom.json +18 -0
- plancraft/environments/recipes/magenta_banner.json +20 -0
- plancraft/environments/recipes/magenta_bed.json +19 -0
- plancraft/environments/recipes/magenta_bed_from_white_bed.json +15 -0
- plancraft/environments/recipes/magenta_carpet.json +16 -0
- plancraft/environments/recipes/magenta_carpet_from_white_carpet.json +21 -0
- plancraft/environments/recipes/magenta_concrete_powder.json +37 -0
- plancraft/environments/recipes/magenta_dye_from_allium.json +12 -0
- plancraft/environments/recipes/magenta_dye_from_blue_red_pink.json +19 -0
- plancraft/environments/recipes/magenta_dye_from_blue_red_white_dye.json +22 -0
- plancraft/environments/recipes/magenta_dye_from_lilac.json +13 -0
- plancraft/environments/recipes/magenta_dye_from_purple_and_pink.json +16 -0
- plancraft/environments/recipes/magenta_glazed_terracotta.json +9 -0
- plancraft/environments/recipes/magenta_stained_glass.json +21 -0
- plancraft/environments/recipes/magenta_stained_glass_pane.json +17 -0
- plancraft/environments/recipes/magenta_stained_glass_pane_from_glass_pane.json +21 -0
- plancraft/environments/recipes/magenta_terracotta.json +21 -0
- plancraft/environments/recipes/magenta_wool.json +15 -0
- plancraft/environments/recipes/magma_block.json +15 -0
- plancraft/environments/recipes/magma_cream.json +14 -0
- plancraft/environments/recipes/map.json +19 -0
- plancraft/environments/recipes/map_cloning.json +3 -0
- plancraft/environments/recipes/map_extending.json +3 -0
- plancraft/environments/recipes/melon.json +16 -0
- plancraft/environments/recipes/melon_seeds.json +11 -0
- plancraft/environments/recipes/minecart.json +15 -0
- plancraft/environments/recipes/mojang_banner_pattern.json +14 -0
- plancraft/environments/recipes/mossy_cobblestone.json +14 -0
- plancraft/environments/recipes/mossy_cobblestone_slab.json +15 -0
- plancraft/environments/recipes/mossy_cobblestone_slab_from_mossy_cobblestone_stonecutting.json +8 -0
- plancraft/environments/recipes/mossy_cobblestone_stairs.json +17 -0
- plancraft/environments/recipes/mossy_cobblestone_stairs_from_mossy_cobblestone_stonecutting.json +8 -0
- plancraft/environments/recipes/mossy_cobblestone_wall.json +16 -0
- plancraft/environments/recipes/mossy_cobblestone_wall_from_mossy_cobblestone_stonecutting.json +8 -0
- plancraft/environments/recipes/mossy_stone_brick_slab.json +15 -0
- plancraft/environments/recipes/mossy_stone_brick_slab_from_mossy_stone_brick_stonecutting.json +8 -0
- plancraft/environments/recipes/mossy_stone_brick_stairs.json +17 -0
- plancraft/environments/recipes/mossy_stone_brick_stairs_from_mossy_stone_brick_stonecutting.json +8 -0
- plancraft/environments/recipes/mossy_stone_brick_wall.json +16 -0
- plancraft/environments/recipes/mossy_stone_brick_wall_from_mossy_stone_brick_stonecutting.json +8 -0
- plancraft/environments/recipes/mossy_stone_bricks.json +14 -0
- plancraft/environments/recipes/mushroom_stew.json +17 -0
- plancraft/environments/recipes/nether_brick.json +9 -0
- plancraft/environments/recipes/nether_brick_fence.json +19 -0
- plancraft/environments/recipes/nether_brick_slab.json +15 -0
- plancraft/environments/recipes/nether_brick_slab_from_nether_bricks_stonecutting.json +8 -0
- plancraft/environments/recipes/nether_brick_stairs.json +17 -0
- plancraft/environments/recipes/nether_brick_stairs_from_nether_bricks_stonecutting.json +8 -0
- plancraft/environments/recipes/nether_brick_wall.json +16 -0
- plancraft/environments/recipes/nether_brick_wall_from_nether_bricks_stonecutting.json +8 -0
- plancraft/environments/recipes/nether_bricks.json +15 -0
- plancraft/environments/recipes/nether_wart_block.json +16 -0
- plancraft/environments/recipes/netherite_axe_smithing.json +12 -0
- plancraft/environments/recipes/netherite_block.json +16 -0
- plancraft/environments/recipes/netherite_boots_smithing.json +12 -0
- plancraft/environments/recipes/netherite_chestplate_smithing.json +12 -0
- plancraft/environments/recipes/netherite_helmet_smithing.json +12 -0
- plancraft/environments/recipes/netherite_hoe_smithing.json +12 -0
- plancraft/environments/recipes/netherite_ingot.json +33 -0
- plancraft/environments/recipes/netherite_ingot_from_netherite_block.json +13 -0
- plancraft/environments/recipes/netherite_leggings_smithing.json +12 -0
- plancraft/environments/recipes/netherite_pickaxe_smithing.json +12 -0
- plancraft/environments/recipes/netherite_scrap.json +9 -0
- plancraft/environments/recipes/netherite_scrap_from_blasting.json +9 -0
- plancraft/environments/recipes/netherite_shovel_smithing.json +12 -0
- plancraft/environments/recipes/netherite_sword_smithing.json +12 -0
- plancraft/environments/recipes/note_block.json +19 -0
- plancraft/environments/recipes/oak_boat.json +16 -0
- plancraft/environments/recipes/oak_button.json +12 -0
- plancraft/environments/recipes/oak_door.json +18 -0
- plancraft/environments/recipes/oak_fence.json +20 -0
- plancraft/environments/recipes/oak_fence_gate.json +19 -0
- plancraft/environments/recipes/oak_planks.json +13 -0
- plancraft/environments/recipes/oak_pressure_plate.json +15 -0
- plancraft/environments/recipes/oak_sign.json +21 -0
- plancraft/environments/recipes/oak_slab.json +16 -0
- plancraft/environments/recipes/oak_stairs.json +18 -0
- plancraft/environments/recipes/oak_trapdoor.json +17 -0
- plancraft/environments/recipes/oak_wood.json +17 -0
- plancraft/environments/recipes/observer.json +22 -0
- plancraft/environments/recipes/orange_banner.json +20 -0
- plancraft/environments/recipes/orange_bed.json +19 -0
- plancraft/environments/recipes/orange_bed_from_white_bed.json +15 -0
- plancraft/environments/recipes/orange_carpet.json +16 -0
- plancraft/environments/recipes/orange_carpet_from_white_carpet.json +21 -0
- plancraft/environments/recipes/orange_concrete_powder.json +37 -0
- plancraft/environments/recipes/orange_dye_from_orange_tulip.json +12 -0
- plancraft/environments/recipes/orange_dye_from_red_yellow.json +16 -0
- plancraft/environments/recipes/orange_glazed_terracotta.json +9 -0
- plancraft/environments/recipes/orange_stained_glass.json +21 -0
- plancraft/environments/recipes/orange_stained_glass_pane.json +17 -0
- plancraft/environments/recipes/orange_stained_glass_pane_from_glass_pane.json +21 -0
- plancraft/environments/recipes/orange_terracotta.json +21 -0
- plancraft/environments/recipes/orange_wool.json +15 -0
- plancraft/environments/recipes/packed_ice.json +35 -0
- plancraft/environments/recipes/painting.json +19 -0
- plancraft/environments/recipes/paper.json +15 -0
- plancraft/environments/recipes/pink_banner.json +20 -0
- plancraft/environments/recipes/pink_bed.json +19 -0
- plancraft/environments/recipes/pink_bed_from_white_bed.json +15 -0
- plancraft/environments/recipes/pink_carpet.json +16 -0
- plancraft/environments/recipes/pink_carpet_from_white_carpet.json +21 -0
- plancraft/environments/recipes/pink_concrete_powder.json +37 -0
- plancraft/environments/recipes/pink_dye_from_peony.json +13 -0
- plancraft/environments/recipes/pink_dye_from_pink_tulip.json +12 -0
- plancraft/environments/recipes/pink_dye_from_red_white_dye.json +16 -0
- plancraft/environments/recipes/pink_glazed_terracotta.json +9 -0
- plancraft/environments/recipes/pink_stained_glass.json +21 -0
- plancraft/environments/recipes/pink_stained_glass_pane.json +17 -0
- plancraft/environments/recipes/pink_stained_glass_pane_from_glass_pane.json +21 -0
- plancraft/environments/recipes/pink_terracotta.json +21 -0
- plancraft/environments/recipes/pink_wool.json +15 -0
- plancraft/environments/recipes/piston.json +25 -0
- plancraft/environments/recipes/polished_andesite.json +16 -0
- plancraft/environments/recipes/polished_andesite_from_andesite_stonecutting.json +8 -0
- plancraft/environments/recipes/polished_andesite_slab.json +15 -0
- plancraft/environments/recipes/polished_andesite_slab_from_andesite_stonecutting.json +8 -0
- plancraft/environments/recipes/polished_andesite_slab_from_polished_andesite_stonecutting.json +8 -0
- plancraft/environments/recipes/polished_andesite_stairs.json +17 -0
- plancraft/environments/recipes/polished_andesite_stairs_from_andesite_stonecutting.json +8 -0
- plancraft/environments/recipes/polished_andesite_stairs_from_polished_andesite_stonecutting.json +8 -0
- plancraft/environments/recipes/polished_basalt.json +16 -0
- plancraft/environments/recipes/polished_basalt_from_basalt_stonecutting.json +8 -0
- plancraft/environments/recipes/polished_blackstone.json +16 -0
- plancraft/environments/recipes/polished_blackstone_brick_slab.json +15 -0
- plancraft/environments/recipes/polished_blackstone_brick_slab_from_blackstone_stonecutting.json +8 -0
- plancraft/environments/recipes/polished_blackstone_brick_slab_from_polished_blackstone_bricks_stonecutting.json +8 -0
- plancraft/environments/recipes/polished_blackstone_brick_slab_from_polished_blackstone_stonecutting.json +8 -0
- plancraft/environments/recipes/polished_blackstone_brick_stairs.json +17 -0
- plancraft/environments/recipes/polished_blackstone_brick_stairs_from_blackstone_stonecutting.json +8 -0
- plancraft/environments/recipes/polished_blackstone_brick_stairs_from_polished_blackstone_bricks_stonecutting.json +8 -0
- plancraft/environments/recipes/polished_blackstone_brick_stairs_from_polished_blackstone_stonecutting.json +8 -0
- plancraft/environments/recipes/polished_blackstone_brick_wall.json +16 -0
- plancraft/environments/recipes/polished_blackstone_brick_wall_from_blackstone_stonecutting.json +8 -0
- plancraft/environments/recipes/polished_blackstone_brick_wall_from_polished_blackstone_bricks_stonecutting.json +8 -0
- plancraft/environments/recipes/polished_blackstone_brick_wall_from_polished_blackstone_stonecutting.json +8 -0
- plancraft/environments/recipes/polished_blackstone_bricks.json +16 -0
- plancraft/environments/recipes/polished_blackstone_bricks_from_blackstone_stonecutting.json +8 -0
- plancraft/environments/recipes/polished_blackstone_bricks_from_polished_blackstone_stonecutting.json +8 -0
- plancraft/environments/recipes/polished_blackstone_button.json +11 -0
- plancraft/environments/recipes/polished_blackstone_from_blackstone_stonecutting.json +8 -0
- plancraft/environments/recipes/polished_blackstone_pressure_plate.json +14 -0
- plancraft/environments/recipes/polished_blackstone_slab.json +15 -0
- plancraft/environments/recipes/polished_blackstone_slab_from_blackstone_stonecutting.json +8 -0
- plancraft/environments/recipes/polished_blackstone_slab_from_polished_blackstone_stonecutting.json +8 -0
- plancraft/environments/recipes/polished_blackstone_stairs.json +17 -0
- plancraft/environments/recipes/polished_blackstone_stairs_from_blackstone_stonecutting.json +8 -0
- plancraft/environments/recipes/polished_blackstone_stairs_from_polished_blackstone_stonecutting.json +8 -0
- plancraft/environments/recipes/polished_blackstone_wall.json +16 -0
- plancraft/environments/recipes/polished_blackstone_wall_from_blackstone_stonecutting.json +8 -0
- plancraft/environments/recipes/polished_blackstone_wall_from_polished_blackstone_stonecutting.json +8 -0
- plancraft/environments/recipes/polished_diorite.json +16 -0
- plancraft/environments/recipes/polished_diorite_from_diorite_stonecutting.json +8 -0
- plancraft/environments/recipes/polished_diorite_slab.json +15 -0
- plancraft/environments/recipes/polished_diorite_slab_from_diorite_stonecutting.json +8 -0
- plancraft/environments/recipes/polished_diorite_slab_from_polished_diorite_stonecutting.json +8 -0
- plancraft/environments/recipes/polished_diorite_stairs.json +17 -0
- plancraft/environments/recipes/polished_diorite_stairs_from_diorite_stonecutting.json +8 -0
- plancraft/environments/recipes/polished_diorite_stairs_from_polished_diorite_stonecutting.json +8 -0
- plancraft/environments/recipes/polished_granite.json +16 -0
- plancraft/environments/recipes/polished_granite_from_granite_stonecutting.json +8 -0
- plancraft/environments/recipes/polished_granite_slab.json +15 -0
- plancraft/environments/recipes/polished_granite_slab_from_granite_stonecutting.json +8 -0
- plancraft/environments/recipes/polished_granite_slab_from_polished_granite_stonecutting.json +8 -0
- plancraft/environments/recipes/polished_granite_stairs.json +17 -0
- plancraft/environments/recipes/polished_granite_stairs_from_granite_stonecutting.json +8 -0
- plancraft/environments/recipes/polished_granite_stairs_from_polished_granite_stonecutting.json +8 -0
- plancraft/environments/recipes/popped_chorus_fruit.json +9 -0
- plancraft/environments/recipes/powered_rail.json +23 -0
- plancraft/environments/recipes/prismarine.json +15 -0
- plancraft/environments/recipes/prismarine_brick_slab.json +15 -0
- plancraft/environments/recipes/prismarine_brick_slab_from_prismarine_stonecutting.json +8 -0
- plancraft/environments/recipes/prismarine_brick_stairs.json +17 -0
- plancraft/environments/recipes/prismarine_brick_stairs_from_prismarine_stonecutting.json +8 -0
- plancraft/environments/recipes/prismarine_bricks.json +16 -0
- plancraft/environments/recipes/prismarine_slab.json +15 -0
- plancraft/environments/recipes/prismarine_slab_from_prismarine_stonecutting.json +8 -0
- plancraft/environments/recipes/prismarine_stairs.json +17 -0
- plancraft/environments/recipes/prismarine_stairs_from_prismarine_stonecutting.json +8 -0
- plancraft/environments/recipes/prismarine_wall.json +16 -0
- plancraft/environments/recipes/prismarine_wall_from_prismarine_stonecutting.json +8 -0
- plancraft/environments/recipes/pumpkin_pie.json +17 -0
- plancraft/environments/recipes/pumpkin_seeds.json +12 -0
- plancraft/environments/recipes/purple_banner.json +20 -0
- plancraft/environments/recipes/purple_bed.json +19 -0
- plancraft/environments/recipes/purple_bed_from_white_bed.json +15 -0
- plancraft/environments/recipes/purple_carpet.json +16 -0
- plancraft/environments/recipes/purple_carpet_from_white_carpet.json +21 -0
- plancraft/environments/recipes/purple_concrete_powder.json +37 -0
- plancraft/environments/recipes/purple_dye.json +15 -0
- plancraft/environments/recipes/purple_glazed_terracotta.json +9 -0
- plancraft/environments/recipes/purple_stained_glass.json +21 -0
- plancraft/environments/recipes/purple_stained_glass_pane.json +17 -0
- plancraft/environments/recipes/purple_stained_glass_pane_from_glass_pane.json +21 -0
- plancraft/environments/recipes/purple_terracotta.json +21 -0
- plancraft/environments/recipes/purple_wool.json +15 -0
- plancraft/environments/recipes/purpur_block.json +16 -0
- plancraft/environments/recipes/purpur_pillar.json +15 -0
- plancraft/environments/recipes/purpur_pillar_from_purpur_block_stonecutting.json +8 -0
- plancraft/environments/recipes/purpur_slab.json +20 -0
- plancraft/environments/recipes/purpur_slab_from_purpur_block_stonecutting.json +8 -0
- plancraft/environments/recipes/purpur_stairs.json +22 -0
- plancraft/environments/recipes/purpur_stairs_from_purpur_block_stonecutting.json +8 -0
- plancraft/environments/recipes/quartz.json +9 -0
- plancraft/environments/recipes/quartz_block.json +15 -0
- plancraft/environments/recipes/quartz_bricks.json +16 -0
- plancraft/environments/recipes/quartz_bricks_from_quartz_block_stonecutting.json +8 -0
- plancraft/environments/recipes/quartz_from_blasting.json +9 -0
- plancraft/environments/recipes/quartz_pillar.json +16 -0
- plancraft/environments/recipes/quartz_pillar_from_quartz_block_stonecutting.json +8 -0
- plancraft/environments/recipes/quartz_slab.json +23 -0
- plancraft/environments/recipes/quartz_slab_from_stonecutting.json +8 -0
- plancraft/environments/recipes/quartz_stairs.json +25 -0
- plancraft/environments/recipes/quartz_stairs_from_quartz_block_stonecutting.json +8 -0
- plancraft/environments/recipes/rabbit_stew_from_brown_mushroom.json +24 -0
- plancraft/environments/recipes/rabbit_stew_from_red_mushroom.json +24 -0
- plancraft/environments/recipes/rail.json +20 -0
- plancraft/environments/recipes/red_banner.json +20 -0
- plancraft/environments/recipes/red_bed.json +19 -0
- plancraft/environments/recipes/red_bed_from_white_bed.json +15 -0
- plancraft/environments/recipes/red_carpet.json +16 -0
- plancraft/environments/recipes/red_carpet_from_white_carpet.json +21 -0
- plancraft/environments/recipes/red_concrete_powder.json +37 -0
- plancraft/environments/recipes/red_dye_from_beetroot.json +12 -0
- plancraft/environments/recipes/red_dye_from_poppy.json +12 -0
- plancraft/environments/recipes/red_dye_from_rose_bush.json +13 -0
- plancraft/environments/recipes/red_dye_from_tulip.json +12 -0
- plancraft/environments/recipes/red_glazed_terracotta.json +9 -0
- plancraft/environments/recipes/red_nether_brick_slab.json +15 -0
- plancraft/environments/recipes/red_nether_brick_slab_from_red_nether_bricks_stonecutting.json +8 -0
- plancraft/environments/recipes/red_nether_brick_stairs.json +17 -0
- plancraft/environments/recipes/red_nether_brick_stairs_from_red_nether_bricks_stonecutting.json +8 -0
- plancraft/environments/recipes/red_nether_brick_wall.json +16 -0
- plancraft/environments/recipes/red_nether_brick_wall_from_red_nether_bricks_stonecutting.json +8 -0
- plancraft/environments/recipes/red_nether_bricks.json +18 -0
- plancraft/environments/recipes/red_sandstone.json +15 -0
- plancraft/environments/recipes/red_sandstone_slab.json +20 -0
- plancraft/environments/recipes/red_sandstone_slab_from_red_sandstone_stonecutting.json +8 -0
- plancraft/environments/recipes/red_sandstone_stairs.json +25 -0
- plancraft/environments/recipes/red_sandstone_stairs_from_red_sandstone_stonecutting.json +8 -0
- plancraft/environments/recipes/red_sandstone_wall.json +16 -0
- plancraft/environments/recipes/red_sandstone_wall_from_red_sandstone_stonecutting.json +8 -0
- plancraft/environments/recipes/red_stained_glass.json +21 -0
- plancraft/environments/recipes/red_stained_glass_pane.json +17 -0
- plancraft/environments/recipes/red_stained_glass_pane_from_glass_pane.json +21 -0
- plancraft/environments/recipes/red_terracotta.json +21 -0
- plancraft/environments/recipes/red_wool.json +15 -0
- plancraft/environments/recipes/redstone.json +12 -0
- plancraft/environments/recipes/redstone_block.json +16 -0
- plancraft/environments/recipes/redstone_from_blasting.json +9 -0
- plancraft/environments/recipes/redstone_from_smelting.json +9 -0
- plancraft/environments/recipes/redstone_lamp.json +19 -0
- plancraft/environments/recipes/redstone_torch.json +18 -0
- plancraft/environments/recipes/repair_item.json +3 -0
- plancraft/environments/recipes/repeater.json +21 -0
- plancraft/environments/recipes/respawn_anchor.json +19 -0
- plancraft/environments/recipes/sandstone.json +15 -0
- plancraft/environments/recipes/sandstone_slab.json +20 -0
- plancraft/environments/recipes/sandstone_slab_from_sandstone_stonecutting.json +8 -0
- plancraft/environments/recipes/sandstone_stairs.json +25 -0
- plancraft/environments/recipes/sandstone_stairs_from_sandstone_stonecutting.json +8 -0
- plancraft/environments/recipes/sandstone_wall.json +16 -0
- plancraft/environments/recipes/sandstone_wall_from_sandstone_stonecutting.json +8 -0
- plancraft/environments/recipes/scaffolding.json +20 -0
- plancraft/environments/recipes/sea_lantern.json +19 -0
- plancraft/environments/recipes/shears.json +15 -0
- plancraft/environments/recipes/shield.json +19 -0
- plancraft/environments/recipes/shield_decoration.json +3 -0
- plancraft/environments/recipes/shulker_box.json +19 -0
- plancraft/environments/recipes/shulker_box_coloring.json +3 -0
- plancraft/environments/recipes/skull_banner_pattern.json +14 -0
- plancraft/environments/recipes/slime_ball.json +12 -0
- plancraft/environments/recipes/slime_block.json +16 -0
- plancraft/environments/recipes/smithing_table.json +19 -0
- plancraft/environments/recipes/smoker.json +19 -0
- plancraft/environments/recipes/smooth_quartz.json +9 -0
- plancraft/environments/recipes/smooth_quartz_slab.json +15 -0
- plancraft/environments/recipes/smooth_quartz_slab_from_smooth_quartz_stonecutting.json +8 -0
- plancraft/environments/recipes/smooth_quartz_stairs.json +17 -0
- plancraft/environments/recipes/smooth_quartz_stairs_from_smooth_quartz_stonecutting.json +8 -0
- plancraft/environments/recipes/smooth_red_sandstone.json +9 -0
- plancraft/environments/recipes/smooth_red_sandstone_slab.json +15 -0
- plancraft/environments/recipes/smooth_red_sandstone_slab_from_smooth_red_sandstone_stonecutting.json +8 -0
- plancraft/environments/recipes/smooth_red_sandstone_stairs.json +17 -0
- plancraft/environments/recipes/smooth_red_sandstone_stairs_from_smooth_red_sandstone_stonecutting.json +8 -0
- plancraft/environments/recipes/smooth_sandstone.json +9 -0
- plancraft/environments/recipes/smooth_sandstone_slab.json +15 -0
- plancraft/environments/recipes/smooth_sandstone_slab_from_smooth_sandstone_stonecutting.json +8 -0
- plancraft/environments/recipes/smooth_sandstone_stairs.json +17 -0
- plancraft/environments/recipes/smooth_sandstone_stairs_from_smooth_sandstone_stonecutting.json +8 -0
- plancraft/environments/recipes/smooth_stone.json +9 -0
- plancraft/environments/recipes/smooth_stone_slab.json +15 -0
- plancraft/environments/recipes/smooth_stone_slab_from_smooth_stone_stonecutting.json +8 -0
- plancraft/environments/recipes/snow.json +15 -0
- plancraft/environments/recipes/snow_block.json +15 -0
- plancraft/environments/recipes/soul_campfire.json +22 -0
- plancraft/environments/recipes/soul_lantern.json +19 -0
- plancraft/environments/recipes/soul_torch.json +28 -0
- plancraft/environments/recipes/spectral_arrow.json +20 -0
- plancraft/environments/recipes/sponge.json +9 -0
- plancraft/environments/recipes/spruce_boat.json +16 -0
- plancraft/environments/recipes/spruce_button.json +12 -0
- plancraft/environments/recipes/spruce_door.json +18 -0
- plancraft/environments/recipes/spruce_fence.json +20 -0
- plancraft/environments/recipes/spruce_fence_gate.json +19 -0
- plancraft/environments/recipes/spruce_planks.json +13 -0
- plancraft/environments/recipes/spruce_pressure_plate.json +15 -0
- plancraft/environments/recipes/spruce_sign.json +21 -0
- plancraft/environments/recipes/spruce_slab.json +16 -0
- plancraft/environments/recipes/spruce_stairs.json +18 -0
- plancraft/environments/recipes/spruce_trapdoor.json +17 -0
- plancraft/environments/recipes/spruce_wood.json +17 -0
- plancraft/environments/recipes/stick.json +17 -0
- plancraft/environments/recipes/stick_from_bamboo_item.json +16 -0
- plancraft/environments/recipes/sticky_piston.json +18 -0
- plancraft/environments/recipes/stone.json +9 -0
- plancraft/environments/recipes/stone_axe.json +19 -0
- plancraft/environments/recipes/stone_brick_slab.json +15 -0
- plancraft/environments/recipes/stone_brick_slab_from_stone_bricks_stonecutting.json +8 -0
- plancraft/environments/recipes/stone_brick_slab_from_stone_stonecutting.json +8 -0
- plancraft/environments/recipes/stone_brick_stairs.json +17 -0
- plancraft/environments/recipes/stone_brick_stairs_from_stone_bricks_stonecutting.json +8 -0
- plancraft/environments/recipes/stone_brick_stairs_from_stone_stonecutting.json +8 -0
- plancraft/environments/recipes/stone_brick_wall.json +16 -0
- plancraft/environments/recipes/stone_brick_wall_from_stone_bricks_stonecutting.json +8 -0
- plancraft/environments/recipes/stone_brick_walls_from_stone_stonecutting.json +8 -0
- plancraft/environments/recipes/stone_bricks.json +16 -0
- plancraft/environments/recipes/stone_bricks_from_stone_stonecutting.json +8 -0
- plancraft/environments/recipes/stone_button.json +11 -0
- plancraft/environments/recipes/stone_hoe.json +19 -0
- plancraft/environments/recipes/stone_pickaxe.json +19 -0
- plancraft/environments/recipes/stone_pressure_plate.json +14 -0
- plancraft/environments/recipes/stone_shovel.json +19 -0
- plancraft/environments/recipes/stone_slab.json +15 -0
- plancraft/environments/recipes/stone_slab_from_stone_stonecutting.json +8 -0
- plancraft/environments/recipes/stone_stairs.json +17 -0
- plancraft/environments/recipes/stone_stairs_from_stone_stonecutting.json +8 -0
- plancraft/environments/recipes/stone_sword.json +19 -0
- plancraft/environments/recipes/stonecutter.json +18 -0
- plancraft/environments/recipes/stripped_acacia_wood.json +17 -0
- plancraft/environments/recipes/stripped_birch_wood.json +17 -0
- plancraft/environments/recipes/stripped_crimson_hyphae.json +17 -0
- plancraft/environments/recipes/stripped_dark_oak_wood.json +17 -0
- plancraft/environments/recipes/stripped_jungle_wood.json +17 -0
- plancraft/environments/recipes/stripped_oak_wood.json +17 -0
- plancraft/environments/recipes/stripped_spruce_wood.json +17 -0
- plancraft/environments/recipes/stripped_warped_hyphae.json +17 -0
- plancraft/environments/recipes/sugar_from_honey_bottle.json +13 -0
- plancraft/environments/recipes/sugar_from_sugar_cane.json +12 -0
- plancraft/environments/recipes/suspicious_stew.json +3 -0
- plancraft/environments/recipes/target.json +19 -0
- plancraft/environments/recipes/terracotta.json +9 -0
- plancraft/environments/recipes/tipped_arrow.json +3 -0
- plancraft/environments/recipes/tnt.json +24 -0
- plancraft/environments/recipes/tnt_minecart.json +18 -0
- plancraft/environments/recipes/torch.json +24 -0
- plancraft/environments/recipes/trapped_chest.json +14 -0
- plancraft/environments/recipes/tripwire_hook.json +23 -0
- plancraft/environments/recipes/turtle_helmet.json +15 -0
- plancraft/environments/recipes/warped_button.json +12 -0
- plancraft/environments/recipes/warped_door.json +18 -0
- plancraft/environments/recipes/warped_fence.json +20 -0
- plancraft/environments/recipes/warped_fence_gate.json +19 -0
- plancraft/environments/recipes/warped_fungus_on_a_stick.json +18 -0
- plancraft/environments/recipes/warped_hyphae.json +17 -0
- plancraft/environments/recipes/warped_planks.json +13 -0
- plancraft/environments/recipes/warped_pressure_plate.json +15 -0
- plancraft/environments/recipes/warped_sign.json +21 -0
- plancraft/environments/recipes/warped_slab.json +16 -0
- plancraft/environments/recipes/warped_stairs.json +18 -0
- plancraft/environments/recipes/warped_trapdoor.json +17 -0
- plancraft/environments/recipes/wheat.json +12 -0
- plancraft/environments/recipes/white_banner.json +20 -0
- plancraft/environments/recipes/white_bed.json +19 -0
- plancraft/environments/recipes/white_carpet.json +16 -0
- plancraft/environments/recipes/white_concrete_powder.json +37 -0
- plancraft/environments/recipes/white_dye.json +12 -0
- plancraft/environments/recipes/white_dye_from_lily_of_the_valley.json +12 -0
- plancraft/environments/recipes/white_glazed_terracotta.json +9 -0
- plancraft/environments/recipes/white_stained_glass.json +21 -0
- plancraft/environments/recipes/white_stained_glass_pane.json +17 -0
- plancraft/environments/recipes/white_stained_glass_pane_from_glass_pane.json +21 -0
- plancraft/environments/recipes/white_terracotta.json +21 -0
- plancraft/environments/recipes/white_wool_from_string.json +15 -0
- plancraft/environments/recipes/wooden_axe.json +19 -0
- plancraft/environments/recipes/wooden_hoe.json +19 -0
- plancraft/environments/recipes/wooden_pickaxe.json +19 -0
- plancraft/environments/recipes/wooden_shovel.json +19 -0
- plancraft/environments/recipes/wooden_sword.json +19 -0
- plancraft/environments/recipes/writable_book.json +17 -0
- plancraft/environments/recipes/yellow_banner.json +20 -0
- plancraft/environments/recipes/yellow_bed.json +19 -0
- plancraft/environments/recipes/yellow_bed_from_white_bed.json +15 -0
- plancraft/environments/recipes/yellow_carpet.json +16 -0
- plancraft/environments/recipes/yellow_carpet_from_white_carpet.json +21 -0
- plancraft/environments/recipes/yellow_concrete_powder.json +37 -0
- plancraft/environments/recipes/yellow_dye_from_dandelion.json +12 -0
- plancraft/environments/recipes/yellow_dye_from_sunflower.json +13 -0
- plancraft/environments/recipes/yellow_glazed_terracotta.json +9 -0
- plancraft/environments/recipes/yellow_stained_glass.json +21 -0
- plancraft/environments/recipes/yellow_stained_glass_pane.json +17 -0
- plancraft/environments/recipes/yellow_stained_glass_pane_from_glass_pane.json +21 -0
- plancraft/environments/recipes/yellow_terracotta.json +21 -0
- plancraft/environments/recipes/yellow_wool.json +15 -0
- plancraft/environments/recipes.py +542 -0
- plancraft/environments/sampler.py +224 -0
- plancraft/environments/tags/acacia_logs.json +9 -0
- plancraft/environments/tags/anvil.json +8 -0
- plancraft/environments/tags/arrows.json +8 -0
- plancraft/environments/tags/banners.json +21 -0
- plancraft/environments/tags/beacon_payment_items.json +10 -0
- plancraft/environments/tags/beds.json +21 -0
- plancraft/environments/tags/birch_logs.json +9 -0
- plancraft/environments/tags/boats.json +11 -0
- plancraft/environments/tags/buttons.json +8 -0
- plancraft/environments/tags/carpets.json +21 -0
- plancraft/environments/tags/coals.json +7 -0
- plancraft/environments/tags/creeper_drop_music_discs.json +17 -0
- plancraft/environments/tags/crimson_stems.json +9 -0
- plancraft/environments/tags/dark_oak_logs.json +9 -0
- plancraft/environments/tags/doors.json +7 -0
- plancraft/environments/tags/fences.json +7 -0
- plancraft/environments/tags/fishes.json +11 -0
- plancraft/environments/tags/flowers.json +7 -0
- plancraft/environments/tags/gold_ores.json +7 -0
- plancraft/environments/tags/jungle_logs.json +9 -0
- plancraft/environments/tags/leaves.json +11 -0
- plancraft/environments/tags/lectern_books.json +7 -0
- plancraft/environments/tags/logs.json +8 -0
- plancraft/environments/tags/logs_that_burn.json +11 -0
- plancraft/environments/tags/music_discs.json +7 -0
- plancraft/environments/tags/non_flammable_wood.json +33 -0
- plancraft/environments/tags/oak_logs.json +9 -0
- plancraft/environments/tags/piglin_loved.json +26 -0
- plancraft/environments/tags/piglin_repellents.json +8 -0
- plancraft/environments/tags/planks.json +13 -0
- plancraft/environments/tags/rails.json +9 -0
- plancraft/environments/tags/sand.json +7 -0
- plancraft/environments/tags/saplings.json +11 -0
- plancraft/environments/tags/signs.json +13 -0
- plancraft/environments/tags/slabs.json +38 -0
- plancraft/environments/tags/small_flowers.json +18 -0
- plancraft/environments/tags/soul_fire_base_blocks.json +7 -0
- plancraft/environments/tags/spruce_logs.json +9 -0
- plancraft/environments/tags/stairs.json +34 -0
- plancraft/environments/tags/stone_bricks.json +9 -0
- plancraft/environments/tags/stone_crafting_materials.json +7 -0
- plancraft/environments/tags/stone_tool_materials.json +7 -0
- plancraft/environments/tags/tall_flowers.json +9 -0
- plancraft/environments/tags/trapdoors.json +7 -0
- plancraft/environments/tags/walls.json +22 -0
- plancraft/environments/tags/warped_stems.json +9 -0
- plancraft/environments/tags/wooden_buttons.json +13 -0
- plancraft/environments/tags/wooden_doors.json +13 -0
- plancraft/environments/tags/wooden_fences.json +13 -0
- plancraft/environments/tags/wooden_pressure_plates.json +13 -0
- plancraft/environments/tags/wooden_slabs.json +13 -0
- plancraft/environments/tags/wooden_stairs.json +13 -0
- plancraft/environments/tags/wooden_trapdoors.json +13 -0
- plancraft/environments/tags/wool.json +21 -0
- plancraft/evaluator.py +273 -0
- plancraft/models/__init__.py +21 -0
- plancraft/models/act.py +184 -0
- plancraft/models/base.py +152 -0
- plancraft/models/bbox_model.py +492 -0
- plancraft/models/dummy.py +54 -0
- plancraft/models/few_shot_images/0.png +0 -0
- plancraft/models/few_shot_images/1.png +0 -0
- plancraft/models/few_shot_images/2.png +0 -0
- plancraft/models/few_shot_images/3.png +0 -0
- plancraft/models/few_shot_images/__init__.py +16 -0
- plancraft/models/generators.py +480 -0
- plancraft/models/oam.py +283 -0
- plancraft/models/oracle.py +265 -0
- plancraft/models/prompts.py +158 -0
- plancraft/models/react.py +93 -0
- plancraft/models/utils.py +289 -0
- plancraft/train/dataset.py +187 -0
- plancraft/utils.py +84 -0
- {plancraft-0.1.2.dist-info → plancraft-0.1.4.dist-info}/METADATA +1 -1
- plancraft-0.1.4.dist-info/RECORD +948 -0
- plancraft-0.1.4.dist-info/top_level.txt +1 -0
- plancraft-0.1.2.dist-info/RECORD +0 -5
- plancraft-0.1.2.dist-info/top_level.txt +0 -1
- {plancraft-0.1.2.dist-info → plancraft-0.1.4.dist-info}/LICENSE +0 -0
- {plancraft-0.1.2.dist-info → plancraft-0.1.4.dist-info}/WHEEL +0 -0
@@ -0,0 +1,316 @@
|
|
1
|
+
from typing import Sequence, Union
|
2
|
+
|
3
|
+
import numpy as np
|
4
|
+
import json
|
5
|
+
|
6
|
+
from loguru import logger
|
7
|
+
|
8
|
+
from plancraft.environments.actions import RealAction
|
9
|
+
|
10
|
+
try:
|
11
|
+
from minerl.env import _singleagent
|
12
|
+
from minerl.herobraine.env_specs.human_controls import HumanControlEnvSpec
|
13
|
+
from minerl.herobraine.hero import handlers, mc, spaces
|
14
|
+
from minerl.herobraine.hero.handler import Handler
|
15
|
+
from minerl.herobraine.hero.handlers.agent.action import Action
|
16
|
+
from minerl.herobraine.hero.handlers.agent.start import InventoryAgentStart
|
17
|
+
from minerl.herobraine.hero.handlers.translation import TranslationHandler
|
18
|
+
|
19
|
+
class InventoryCommandAction(Action):
|
20
|
+
"""
|
21
|
+
Handler which lets agents programmatically interact with an open container
|
22
|
+
|
23
|
+
Using this - agents can move a chosen quantity of items from one slot to another.
|
24
|
+
"""
|
25
|
+
|
26
|
+
def to_string(self):
|
27
|
+
return "inventory_command"
|
28
|
+
|
29
|
+
def xml_template(self) -> str:
|
30
|
+
return str("<InventoryCommands/>")
|
31
|
+
|
32
|
+
def __init__(self):
|
33
|
+
self._command = "inventory_command"
|
34
|
+
# first argument is the slot to take from
|
35
|
+
# second is the slot to put into
|
36
|
+
# third is the count to take
|
37
|
+
super().__init__(
|
38
|
+
self.command,
|
39
|
+
spaces.Tuple(
|
40
|
+
(
|
41
|
+
spaces.Discrete(46),
|
42
|
+
spaces.Discrete(46),
|
43
|
+
spaces.Discrete(64),
|
44
|
+
)
|
45
|
+
),
|
46
|
+
)
|
47
|
+
|
48
|
+
def from_universal(self, x):
|
49
|
+
return np.array([0, 0, 0], dtype=np.int32)
|
50
|
+
|
51
|
+
class SmeltCommandAction(Action):
|
52
|
+
"""
|
53
|
+
An action handler for smelting an item
|
54
|
+
We assume smelting is immediate.
|
55
|
+
@TODO: might be interesting to explore using the smelting time as an additional planning parameter.
|
56
|
+
|
57
|
+
Using this agents can smelt items in their inventory.
|
58
|
+
"""
|
59
|
+
|
60
|
+
def __init__(self):
|
61
|
+
self._command = "smelt"
|
62
|
+
# first argument is the slot to take from
|
63
|
+
# second is the slot to put into
|
64
|
+
# third is the count to smelt
|
65
|
+
super().__init__(
|
66
|
+
self.command,
|
67
|
+
spaces.Tuple(
|
68
|
+
(
|
69
|
+
spaces.Discrete(46),
|
70
|
+
spaces.Discrete(46),
|
71
|
+
spaces.Discrete(64),
|
72
|
+
)
|
73
|
+
),
|
74
|
+
)
|
75
|
+
|
76
|
+
def to_string(self):
|
77
|
+
return "smelt"
|
78
|
+
|
79
|
+
def xml_template(self) -> str:
|
80
|
+
return str("<SmeltCommands/>")
|
81
|
+
|
82
|
+
def from_universal(self, x):
|
83
|
+
return np.array([0, 0, 0], dtype=np.int32)
|
84
|
+
|
85
|
+
class InventoryResetAction(Action):
|
86
|
+
def __init__(self):
|
87
|
+
self._command = "inventory_reset"
|
88
|
+
super().__init__(self._command, spaces.Text([1]))
|
89
|
+
|
90
|
+
def to_string(self) -> str:
|
91
|
+
return "inventory_reset"
|
92
|
+
|
93
|
+
def to_hero(self, inventory_items: list[dict]):
|
94
|
+
return "{} {}".format(self._command, json.dumps(inventory_items))
|
95
|
+
|
96
|
+
def xml_template(self) -> str:
|
97
|
+
return "<InventoryResetCommands/>"
|
98
|
+
|
99
|
+
def from_universal(self, x):
|
100
|
+
return []
|
101
|
+
|
102
|
+
MINUTE = 20 * 60
|
103
|
+
|
104
|
+
class CustomInventoryAgentStart(InventoryAgentStart):
|
105
|
+
def __init__(self, inventory: list[dict[str, Union[str, int]]]):
|
106
|
+
super().__init__({item["slot"]: item for item in inventory})
|
107
|
+
|
108
|
+
class CraftingTableOnly(Handler):
|
109
|
+
def to_string(self):
|
110
|
+
return "start_with_crafting_table"
|
111
|
+
|
112
|
+
def xml_template(self) -> str:
|
113
|
+
return "<CraftingTableOnly>true</CraftingTableOnly>"
|
114
|
+
|
115
|
+
class InventoryObservation(TranslationHandler):
|
116
|
+
"""
|
117
|
+
Handles GUI Workbench Observations for selected items
|
118
|
+
"""
|
119
|
+
|
120
|
+
def to_string(self):
|
121
|
+
return "inventory"
|
122
|
+
|
123
|
+
def xml_template(self) -> str:
|
124
|
+
return str("""<ObservationFromFullInventory flat="false"/>""")
|
125
|
+
|
126
|
+
def __init__(self, item_list, _other="other"):
|
127
|
+
item_list = sorted(item_list)
|
128
|
+
super().__init__(
|
129
|
+
spaces.Dict(
|
130
|
+
spaces={
|
131
|
+
k: spaces.Box(
|
132
|
+
low=0,
|
133
|
+
high=2304,
|
134
|
+
shape=(),
|
135
|
+
dtype=np.int32,
|
136
|
+
normalizer_scale="log",
|
137
|
+
)
|
138
|
+
for k in item_list
|
139
|
+
}
|
140
|
+
)
|
141
|
+
)
|
142
|
+
self.num_items = len(item_list)
|
143
|
+
self.items = item_list
|
144
|
+
|
145
|
+
def add_to_mission_spec(self, mission_spec):
|
146
|
+
pass
|
147
|
+
|
148
|
+
def from_hero(self, info):
|
149
|
+
return info["inventory"]
|
150
|
+
|
151
|
+
def from_universal(self, obs):
|
152
|
+
raise NotImplementedError(
|
153
|
+
"from_universal not implemented in InventoryObservation"
|
154
|
+
)
|
155
|
+
|
156
|
+
class PlancraftBaseEnvSpec(HumanControlEnvSpec):
|
157
|
+
def __init__(
|
158
|
+
self,
|
159
|
+
symbolic_action_space=False,
|
160
|
+
symbolic_observation_space=False,
|
161
|
+
max_episode_steps=2 * MINUTE,
|
162
|
+
inventory: Sequence[dict] = (),
|
163
|
+
preferred_spawn_biome: str = "plains",
|
164
|
+
resolution=[260, 180],
|
165
|
+
):
|
166
|
+
self.inventory = inventory
|
167
|
+
self.preferred_spawn_biome = preferred_spawn_biome
|
168
|
+
self.symbolic_action_space = symbolic_action_space
|
169
|
+
self.symbolic_observation_space = symbolic_observation_space
|
170
|
+
|
171
|
+
mode = "real"
|
172
|
+
if symbolic_action_space:
|
173
|
+
mode += "-symbolic-act"
|
174
|
+
else:
|
175
|
+
mode += "-real-act"
|
176
|
+
|
177
|
+
if symbolic_observation_space:
|
178
|
+
mode += "-symbolic-obs"
|
179
|
+
|
180
|
+
if symbolic_action_space:
|
181
|
+
cursor_size = 1
|
182
|
+
else:
|
183
|
+
cursor_size = 16
|
184
|
+
|
185
|
+
name = f"plancraft-{mode}-v0"
|
186
|
+
super().__init__(
|
187
|
+
name=name,
|
188
|
+
max_episode_steps=max_episode_steps,
|
189
|
+
resolution=resolution,
|
190
|
+
cursor_size_range=[cursor_size, cursor_size],
|
191
|
+
)
|
192
|
+
|
193
|
+
def create_agent_start(self) -> list[Handler]:
|
194
|
+
base_agent_start_handlers = super().create_agent_start()
|
195
|
+
return base_agent_start_handlers + [
|
196
|
+
CustomInventoryAgentStart(self.inventory),
|
197
|
+
handlers.PreferredSpawnBiome(self.preferred_spawn_biome),
|
198
|
+
handlers.DoneOnDeath(),
|
199
|
+
CraftingTableOnly(),
|
200
|
+
]
|
201
|
+
|
202
|
+
def create_observables(self) -> list[TranslationHandler]:
|
203
|
+
if self.symbolic_observation_space:
|
204
|
+
return [
|
205
|
+
handlers.POVObservation(self.resolution),
|
206
|
+
InventoryObservation([item["slot"] for item in self.inventory]),
|
207
|
+
]
|
208
|
+
return [handlers.POVObservation(self.resolution)]
|
209
|
+
|
210
|
+
def create_server_world_generators(self) -> list[Handler]:
|
211
|
+
# TODO the original biome forced is not implemented yet. Use this for now.
|
212
|
+
return [handlers.DefaultWorldGenerator(force_reset=True)]
|
213
|
+
|
214
|
+
def create_server_quit_producers(self) -> list[Handler]:
|
215
|
+
return [
|
216
|
+
handlers.ServerQuitFromTimeUp(
|
217
|
+
(self.max_episode_steps * mc.MS_PER_STEP)
|
218
|
+
),
|
219
|
+
handlers.ServerQuitWhenAnyAgentFinishes(),
|
220
|
+
]
|
221
|
+
|
222
|
+
def create_server_initial_conditions(self) -> list[Handler]:
|
223
|
+
return [
|
224
|
+
handlers.TimeInitialCondition(allow_passage_of_time=False),
|
225
|
+
handlers.SpawningInitialCondition(allow_spawning=True),
|
226
|
+
]
|
227
|
+
|
228
|
+
def create_actionables(self) -> list[TranslationHandler]:
|
229
|
+
"""
|
230
|
+
Symbolic env can move items around in the inventory using function
|
231
|
+
Real env can use camera/keyboard
|
232
|
+
"""
|
233
|
+
# Camera and mouse
|
234
|
+
if self.symbolic_action_space:
|
235
|
+
return [
|
236
|
+
InventoryCommandAction(),
|
237
|
+
SmeltCommandAction(),
|
238
|
+
InventoryResetAction(),
|
239
|
+
]
|
240
|
+
return [
|
241
|
+
handlers.KeybasedCommandAction(v, v) for k, v in mc.KEYMAP.items()
|
242
|
+
] + [
|
243
|
+
handlers.CameraAction(),
|
244
|
+
SmeltCommandAction(),
|
245
|
+
InventoryResetAction(),
|
246
|
+
]
|
247
|
+
|
248
|
+
def is_from_folder(self, folder: str) -> bool:
|
249
|
+
return False
|
250
|
+
|
251
|
+
def create_agent_handlers(self) -> list[Handler]:
|
252
|
+
return []
|
253
|
+
|
254
|
+
def create_mission_handlers(self):
|
255
|
+
return []
|
256
|
+
|
257
|
+
def create_monitors(self):
|
258
|
+
return []
|
259
|
+
|
260
|
+
def create_rewardables(self):
|
261
|
+
return []
|
262
|
+
|
263
|
+
def create_server_decorators(self) -> list[Handler]:
|
264
|
+
return []
|
265
|
+
|
266
|
+
def determine_success_from_rewards(self, rewards: list) -> bool:
|
267
|
+
return False
|
268
|
+
|
269
|
+
def get_docstring(self):
|
270
|
+
return self.__class__.__doc__
|
271
|
+
|
272
|
+
class RealPlancraft(_singleagent._SingleAgentEnv):
|
273
|
+
def __init__(
|
274
|
+
self,
|
275
|
+
inventory: list[dict],
|
276
|
+
preferred_spawn_biome="plains",
|
277
|
+
symbolic_action_space=False,
|
278
|
+
symbolic_observation_space=True,
|
279
|
+
resolution=[512, 512],
|
280
|
+
crop=True,
|
281
|
+
):
|
282
|
+
# NOTE: crop is only supported for resolution 512x512 (default)
|
283
|
+
self.crop = crop
|
284
|
+
self.resolution = resolution
|
285
|
+
env_spec = PlancraftBaseEnvSpec(
|
286
|
+
symbolic_action_space=symbolic_action_space,
|
287
|
+
symbolic_observation_space=symbolic_observation_space,
|
288
|
+
preferred_spawn_biome=preferred_spawn_biome,
|
289
|
+
inventory=inventory,
|
290
|
+
resolution=resolution,
|
291
|
+
)
|
292
|
+
super(RealPlancraft, self).__init__(env_spec=env_spec)
|
293
|
+
self.reset()
|
294
|
+
|
295
|
+
def step(self, action: RealAction | dict):
|
296
|
+
if not isinstance(action, dict):
|
297
|
+
action = action.to_action_dict()
|
298
|
+
obs, rew, done, info = super().step(action)
|
299
|
+
if "pov" in obs and self.crop and self.resolution == [512, 512]:
|
300
|
+
# crop at position x=174, y=170 with width=164 and height=173
|
301
|
+
obs["pov"] = obs["pov"][174 : 174 + 164, 170 : 168 + 173]
|
302
|
+
return obs, rew, done, info
|
303
|
+
|
304
|
+
def fast_reset(self, new_inventory: list[dict]):
|
305
|
+
super().step({"inventory_reset": new_inventory})
|
306
|
+
|
307
|
+
|
308
|
+
except ImportError:
|
309
|
+
|
310
|
+
class RealPlancraft:
|
311
|
+
def __init__(self, *args, **kwargs):
|
312
|
+
logger.warning(
|
313
|
+
"The 'minerl' package is required to use RealPlancraft. "
|
314
|
+
"Please install it using 'pip install plancraft[full]' or 'pip install minerl'."
|
315
|
+
)
|
316
|
+
raise ImportError("minerl package not found")
|
@@ -0,0 +1,212 @@
|
|
1
|
+
from typing import Optional
|
2
|
+
|
3
|
+
from plancraft.environments.actions import SymbolicAction
|
4
|
+
from plancraft.environments.recipes import (
|
5
|
+
RECIPES,
|
6
|
+
ShapedRecipe,
|
7
|
+
ShapelessRecipe,
|
8
|
+
SmeltingRecipe,
|
9
|
+
convert_ingredients_to_table,
|
10
|
+
)
|
11
|
+
from plancraft.environments.sampler import MAX_STACK_SIZE
|
12
|
+
|
13
|
+
|
14
|
+
class PseudoActionSpace:
|
15
|
+
def no_op(self):
|
16
|
+
return {
|
17
|
+
"inventory_command": (0, 0, 0),
|
18
|
+
}
|
19
|
+
|
20
|
+
|
21
|
+
class SymbolicPlancraft:
|
22
|
+
def __init__(self, inventory: list[dict] = [], recipes=RECIPES, **kwargs):
|
23
|
+
self.inventory = inventory
|
24
|
+
self.reset_state()
|
25
|
+
self.table_indexes = list(range(1, 10))
|
26
|
+
self.output_index = 0
|
27
|
+
|
28
|
+
self.action_space = PseudoActionSpace()
|
29
|
+
|
30
|
+
self.recipes = recipes
|
31
|
+
|
32
|
+
self.smelting_recipes = []
|
33
|
+
|
34
|
+
self.crafting_recipes = []
|
35
|
+
|
36
|
+
for recipe_list in recipes.values():
|
37
|
+
for recipe in recipe_list:
|
38
|
+
if isinstance(recipe, SmeltingRecipe):
|
39
|
+
self.smelting_recipes.append(recipe)
|
40
|
+
elif isinstance(recipe, (ShapelessRecipe, ShapedRecipe)):
|
41
|
+
self.crafting_recipes.append(recipe)
|
42
|
+
|
43
|
+
def reset_state(self):
|
44
|
+
self.state = {i: {"type": "air", "quantity": 0} for i in range(46)}
|
45
|
+
# initialise inventory
|
46
|
+
for item in self.inventory:
|
47
|
+
self.state[item["slot"]] = {
|
48
|
+
"type": item["type"],
|
49
|
+
"quantity": item["quantity"],
|
50
|
+
}
|
51
|
+
|
52
|
+
def step(self, action: Optional[SymbolicAction | dict]):
|
53
|
+
if action is None:
|
54
|
+
state_list = [
|
55
|
+
{"type": item["type"], "quantity": item["quantity"], "index": idx}
|
56
|
+
for idx, item in self.state.items()
|
57
|
+
]
|
58
|
+
return {"inventory": state_list}, 0, False, {}
|
59
|
+
|
60
|
+
# action_dict = action.to_action_dict()
|
61
|
+
if not isinstance(action, dict):
|
62
|
+
action = action.to_action_dict()
|
63
|
+
|
64
|
+
if "inventory_command" in action:
|
65
|
+
# do inventory command (move)
|
66
|
+
slot, slot_to, quantity = action["inventory_command"]
|
67
|
+
self.move_item(slot, slot_to, quantity)
|
68
|
+
elif "smelt" in action:
|
69
|
+
# do smelt
|
70
|
+
slot, slot_to, quantity = action["smelt"]
|
71
|
+
self.smelt_item(slot, slot_to, quantity)
|
72
|
+
else:
|
73
|
+
raise ValueError("Invalid action")
|
74
|
+
# logger.warn("Cannot parse action for Symbolic action")
|
75
|
+
|
76
|
+
self.clean_state()
|
77
|
+
|
78
|
+
# convert to list for same format as minerl
|
79
|
+
state_list = [
|
80
|
+
{"type": item["type"], "quantity": item["quantity"], "index": idx}
|
81
|
+
for idx, item in self.state.items()
|
82
|
+
]
|
83
|
+
|
84
|
+
return {"inventory": state_list}, 0, False, {}
|
85
|
+
|
86
|
+
def clean_state(self):
|
87
|
+
# reset slot type if quantity is 0
|
88
|
+
for i in self.state.keys():
|
89
|
+
if self.state[i]["quantity"] == 0:
|
90
|
+
self.state[i]["type"] = "air"
|
91
|
+
|
92
|
+
def move_item(self, slot_from: int, slot_to: int, quantity: int):
|
93
|
+
if slot_from == slot_to or quantity < 1 or slot_to == 0:
|
94
|
+
return
|
95
|
+
# slot outside of inventory
|
96
|
+
if slot_from not in self.state or slot_to not in self.state:
|
97
|
+
return
|
98
|
+
# not enough
|
99
|
+
if self.state[slot_from]["quantity"] < quantity:
|
100
|
+
return
|
101
|
+
|
102
|
+
item = self.state[slot_from]
|
103
|
+
|
104
|
+
# slot to is not empty or is the same type as item
|
105
|
+
if (self.state[slot_to]["type"] == "air") or (
|
106
|
+
self.state[slot_to]["quantity"] <= 0
|
107
|
+
):
|
108
|
+
self.state[slot_to] = {"type": item["type"], "quantity": quantity}
|
109
|
+
self.state[slot_from]["quantity"] -= quantity
|
110
|
+
elif self.state[slot_to]["type"] == item["type"] and (
|
111
|
+
MAX_STACK_SIZE[item["type"]] >= self.state[slot_to]["quantity"] + quantity
|
112
|
+
):
|
113
|
+
# check if the quantity exceeds the max stack size
|
114
|
+
self.state[slot_to]["quantity"] += quantity
|
115
|
+
self.state[slot_from]["quantity"] -= quantity
|
116
|
+
else:
|
117
|
+
return
|
118
|
+
|
119
|
+
# reset slot if quantity is 0
|
120
|
+
if self.state[slot_from]["quantity"] == 0:
|
121
|
+
self.state[slot_from] = {"type": "air", "quantity": 0}
|
122
|
+
|
123
|
+
# use up ingredients
|
124
|
+
if slot_from == 0:
|
125
|
+
self.use_ingredients()
|
126
|
+
|
127
|
+
# populate craft slot if ingredients in crafting table have changed
|
128
|
+
if slot_to < 10 or slot_from < 10:
|
129
|
+
self.populate_craft_slot_craft_item()
|
130
|
+
|
131
|
+
def smelt_item(self, slot_from: int, slot_to: int, quantity: int):
|
132
|
+
if quantity < 1 or slot_to == 0 or slot_from == slot_to or slot_from == 0:
|
133
|
+
return # skip if quantity is less than 1
|
134
|
+
|
135
|
+
if slot_from not in self.state or slot_to not in self.state:
|
136
|
+
return # handle slot out of bounds or invalid slot numbers
|
137
|
+
|
138
|
+
item = self.state[slot_from]
|
139
|
+
if item["quantity"] < quantity or item["type"] == "air":
|
140
|
+
return # skip if the slot from is empty or does not have enough items
|
141
|
+
|
142
|
+
for recipe in self.smelting_recipes:
|
143
|
+
if output := recipe.smelt(item["type"]):
|
144
|
+
output_type = output.item
|
145
|
+
# Check if the destination slot is empty or has the same type of item as the output
|
146
|
+
if self.state[slot_to]["type"] == "air":
|
147
|
+
self.state[slot_to] = {"type": output_type, "quantity": quantity}
|
148
|
+
self.state[slot_from]["quantity"] -= quantity
|
149
|
+
break
|
150
|
+
elif self.state[slot_to]["type"] == output_type and (
|
151
|
+
MAX_STACK_SIZE[output_type]
|
152
|
+
>= self.state[slot_to]["quantity"] + quantity
|
153
|
+
): # assuming max stack size is 64
|
154
|
+
self.state[slot_to]["quantity"] += quantity
|
155
|
+
self.state[slot_from]["quantity"] -= quantity
|
156
|
+
break
|
157
|
+
else:
|
158
|
+
return # No space or type mismatch in slot_to
|
159
|
+
|
160
|
+
# Clean up if the source slot is depleted
|
161
|
+
if self.state[slot_from] == 0:
|
162
|
+
self.state[slot_from] = {"type": "air", "quantity": 0}
|
163
|
+
|
164
|
+
if slot_to < 10 or slot_from < 10:
|
165
|
+
self.populate_craft_slot_craft_item()
|
166
|
+
|
167
|
+
def populate_craft_slot_craft_item(self):
|
168
|
+
# get ingredients from crafting table
|
169
|
+
ingredients = []
|
170
|
+
for i in self.table_indexes:
|
171
|
+
if self.state[i]["type"] != "air" and self.state[i]["quantity"] > 0:
|
172
|
+
ingredients.append(self.state[i]["type"])
|
173
|
+
else:
|
174
|
+
ingredients.append(None)
|
175
|
+
table = convert_ingredients_to_table(ingredients)
|
176
|
+
|
177
|
+
# check if any of the crafting recipes match the ingredients
|
178
|
+
for recipe in self.crafting_recipes:
|
179
|
+
if result := recipe.craft(table):
|
180
|
+
result, indexes = result
|
181
|
+
self.ingredients_idxs = indexes
|
182
|
+
self.state[self.output_index] = {
|
183
|
+
"type": result.item,
|
184
|
+
"quantity": result.count,
|
185
|
+
}
|
186
|
+
return
|
187
|
+
|
188
|
+
self.ingredients_idxs = []
|
189
|
+
self.state[self.output_index] = {"type": "air", "quantity": 0}
|
190
|
+
|
191
|
+
def use_ingredients(self):
|
192
|
+
# remove used ingredients from crafting table
|
193
|
+
for idx in self.ingredients_idxs:
|
194
|
+
self.state[idx + 1]["quantity"] -= 1
|
195
|
+
if self.state[idx + 1]["quantity"] <= 0:
|
196
|
+
self.state[idx + 1] = {"type": "air", "quantity": 0}
|
197
|
+
self.ingredients_idxs = []
|
198
|
+
|
199
|
+
def reset(self):
|
200
|
+
self.reset_state()
|
201
|
+
return self.state
|
202
|
+
|
203
|
+
def fast_reset(self, new_inventory: list[dict]):
|
204
|
+
self.inventory = new_inventory
|
205
|
+
self.reset_state()
|
206
|
+
return self.state
|
207
|
+
|
208
|
+
def render(self):
|
209
|
+
print(f"state: {self.state}")
|
210
|
+
|
211
|
+
def close(self):
|
212
|
+
self.reset_state()
|
@@ -0,0 +1,109 @@
|
|
1
|
+
import time
|
2
|
+
|
3
|
+
import networkx as nx
|
4
|
+
|
5
|
+
from plancraft.environments.recipes import RECIPES, BaseRecipe
|
6
|
+
|
7
|
+
RECIPE_GRAPH = nx.DiGraph()
|
8
|
+
|
9
|
+
for item, recipes in RECIPES.items():
|
10
|
+
for recipe in recipes:
|
11
|
+
RECIPE_GRAPH.add_node(recipe.result.item)
|
12
|
+
for ingredient in recipe.inputs:
|
13
|
+
RECIPE_GRAPH.add_node(ingredient)
|
14
|
+
RECIPE_GRAPH.add_edge(ingredient, recipe.result.item)
|
15
|
+
|
16
|
+
|
17
|
+
def get_ancestors(target: str):
|
18
|
+
return list(nx.ancestors(RECIPE_GRAPH, source=target))
|
19
|
+
|
20
|
+
|
21
|
+
def optimal_planner(
|
22
|
+
target: str,
|
23
|
+
inventory: dict[str, int],
|
24
|
+
steps=[],
|
25
|
+
best_steps=None,
|
26
|
+
max_steps=40,
|
27
|
+
timeout=30,
|
28
|
+
) -> list[tuple[BaseRecipe, dict[str, int]]]:
|
29
|
+
"""
|
30
|
+
Optimal planner for crafting the target item from the given inventory.
|
31
|
+
|
32
|
+
Uses depth-first search with memoization to find the shortest path of crafting steps.
|
33
|
+
|
34
|
+
Args:
|
35
|
+
target: The target item to craft.
|
36
|
+
inventory: The current inventory.
|
37
|
+
steps: The current path of crafting steps.
|
38
|
+
best_steps: The best path of crafting steps found so far.
|
39
|
+
max_steps: The maximum number of steps to take.
|
40
|
+
timeout: The maximum time to spend searching for a solution.
|
41
|
+
|
42
|
+
Returns:
|
43
|
+
list of tuples of (recipe, inventory) for each step in the optimal path.
|
44
|
+
"""
|
45
|
+
|
46
|
+
memo = {}
|
47
|
+
# only look at recipes that are ancestors of the target
|
48
|
+
ancestors = get_ancestors(target)
|
49
|
+
# sort to put the closest ancestors first
|
50
|
+
ancestors = sorted(
|
51
|
+
ancestors,
|
52
|
+
key=lambda x: nx.shortest_path_length(RECIPE_GRAPH, source=x, target=target),
|
53
|
+
)
|
54
|
+
|
55
|
+
time_now = time.time()
|
56
|
+
|
57
|
+
def dfs(starting_inventory, steps, best_steps):
|
58
|
+
# If we have exceeded the timeout, return the best known path so far.
|
59
|
+
if time.time() - time_now > timeout:
|
60
|
+
raise TimeoutError("Timeout exceeded")
|
61
|
+
|
62
|
+
memo_key = (frozenset(starting_inventory.items()), len(steps))
|
63
|
+
if memo_key in memo:
|
64
|
+
return memo[memo_key]
|
65
|
+
|
66
|
+
if best_steps is not None and len(steps) >= len(best_steps):
|
67
|
+
# If we already have a shorter or equally short solution, do not proceed further.
|
68
|
+
return best_steps
|
69
|
+
|
70
|
+
if len(steps) > max_steps:
|
71
|
+
# If we have already exceeded the maximum number of steps, do not proceed further.
|
72
|
+
return best_steps
|
73
|
+
|
74
|
+
if target in starting_inventory and starting_inventory[target] > 0:
|
75
|
+
# If the target item is already in the inventory in the required amount, return the current path.
|
76
|
+
if best_steps is None or len(steps) < len(best_steps):
|
77
|
+
return steps
|
78
|
+
return best_steps
|
79
|
+
|
80
|
+
for recipe_name in [target] + ancestors:
|
81
|
+
# skip if already have 9 of the item
|
82
|
+
if starting_inventory.get(recipe_name, 0) >= 9:
|
83
|
+
continue
|
84
|
+
# TODO prevent looping between equivalent recipes (coal <-> coal_block)
|
85
|
+
for recipe in RECIPES[recipe_name]:
|
86
|
+
if recipe.can_craft_from_inventory(starting_inventory):
|
87
|
+
# Craft this item and update the inventory.
|
88
|
+
new_inventory = recipe.craft_from_inventory(starting_inventory)
|
89
|
+
# Add this step to the path.
|
90
|
+
new_steps = steps + [(recipe, new_inventory)]
|
91
|
+
|
92
|
+
# Recursively try to craft the target item with the updated inventory.
|
93
|
+
candidate_steps = dfs(new_inventory, new_steps, best_steps)
|
94
|
+
|
95
|
+
# Update the best known path if the candidate path is better.
|
96
|
+
if candidate_steps is not None and (
|
97
|
+
best_steps is None or len(candidate_steps) < len(best_steps)
|
98
|
+
):
|
99
|
+
best_steps = candidate_steps
|
100
|
+
|
101
|
+
memo[memo_key] = best_steps
|
102
|
+
return best_steps
|
103
|
+
|
104
|
+
try:
|
105
|
+
path = dfs(inventory, steps, best_steps)
|
106
|
+
return path
|
107
|
+
|
108
|
+
except TimeoutError:
|
109
|
+
return None
|
@@ -0,0 +1,18 @@
|
|
1
|
+
{
|
2
|
+
"type": "minecraft:crafting_shaped",
|
3
|
+
"group": "wooden_door",
|
4
|
+
"pattern": [
|
5
|
+
"##",
|
6
|
+
"##",
|
7
|
+
"##"
|
8
|
+
],
|
9
|
+
"key": {
|
10
|
+
"#": {
|
11
|
+
"item": "minecraft:acacia_planks"
|
12
|
+
}
|
13
|
+
},
|
14
|
+
"result": {
|
15
|
+
"item": "minecraft:acacia_door",
|
16
|
+
"count": 3
|
17
|
+
}
|
18
|
+
}
|