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
plancraft/models/oam.py
ADDED
@@ -0,0 +1,283 @@
|
|
1
|
+
from typing import Optional
|
2
|
+
|
3
|
+
from loguru import logger
|
4
|
+
|
5
|
+
import torch
|
6
|
+
import torch.nn as nn
|
7
|
+
import torchvision.transforms.v2 as v2
|
8
|
+
from transformers import (
|
9
|
+
AutoConfig,
|
10
|
+
AutoModelForCausalLM,
|
11
|
+
AutoTokenizer,
|
12
|
+
PretrainedConfig,
|
13
|
+
PreTrainedModel,
|
14
|
+
)
|
15
|
+
|
16
|
+
from plancraft.models.bbox_model import IntegratedBoundingBoxModel
|
17
|
+
|
18
|
+
|
19
|
+
class PlancraftOAMConfig(PretrainedConfig):
|
20
|
+
model_type = "plancraft-aom"
|
21
|
+
is_composition = True
|
22
|
+
|
23
|
+
def __init__(
|
24
|
+
self,
|
25
|
+
from_llama=False,
|
26
|
+
**kwargs,
|
27
|
+
):
|
28
|
+
self.from_llama = from_llama
|
29
|
+
super().__init__(**kwargs)
|
30
|
+
|
31
|
+
|
32
|
+
class PlancraftOAM(PreTrainedModel):
|
33
|
+
config_class = PlancraftOAMConfig
|
34
|
+
|
35
|
+
def __init__(self, config: PlancraftOAMConfig):
|
36
|
+
super().__init__(config)
|
37
|
+
|
38
|
+
self.config = config
|
39
|
+
# load text model
|
40
|
+
if self.config.from_llama:
|
41
|
+
self.text_model = AutoModelForCausalLM.from_pretrained(
|
42
|
+
"meta-llama/Meta-Llama-3.1-8B-Instruct",
|
43
|
+
)
|
44
|
+
else:
|
45
|
+
text_model_config = AutoConfig.from_pretrained(
|
46
|
+
"meta-llama/Meta-Llama-3.1-8B-Instruct",
|
47
|
+
)
|
48
|
+
self.text_model = AutoModelForCausalLM.from_config(text_model_config)
|
49
|
+
|
50
|
+
# load vision model
|
51
|
+
self.vision_model = IntegratedBoundingBoxModel.from_pretrained(
|
52
|
+
"gautierdag/plancraft-maskrcnn"
|
53
|
+
)
|
54
|
+
self.vision_model.eval()
|
55
|
+
|
56
|
+
# convert vision features to text embedding
|
57
|
+
self.vision_to_text_embedding = nn.Linear(
|
58
|
+
1024, self.text_model.config.hidden_size
|
59
|
+
)
|
60
|
+
self.tokenizer = AutoTokenizer.from_pretrained(
|
61
|
+
"meta-llama/Meta-Llama-3.1-8B-Instruct",
|
62
|
+
trust_remote=True,
|
63
|
+
)
|
64
|
+
# add special tokens
|
65
|
+
self.tokenizer.add_special_tokens(
|
66
|
+
{
|
67
|
+
"additional_special_tokens": [
|
68
|
+
"<|inventory|>",
|
69
|
+
]
|
70
|
+
}
|
71
|
+
)
|
72
|
+
self.tokenizer.pad_token = self.tokenizer.eos_token
|
73
|
+
self.inventory_idx = self.tokenizer.convert_tokens_to_ids("<|inventory|>")
|
74
|
+
|
75
|
+
# resize token embeddings
|
76
|
+
self.text_model.resize_token_embeddings(len(self.tokenizer))
|
77
|
+
# image transforms
|
78
|
+
self.transforms = v2.Compose(
|
79
|
+
[v2.ToImage(), v2.ToDtype(torch.float32, scale=True)]
|
80
|
+
)
|
81
|
+
|
82
|
+
@torch.no_grad()
|
83
|
+
def extract_bboxes(self, images: list) -> list[dict]:
|
84
|
+
if len(images) == 0:
|
85
|
+
return []
|
86
|
+
img_tensors = torch.stack([self.transforms(img) for img in images])
|
87
|
+
img_tensors = img_tensors.cuda()
|
88
|
+
# disable gradients
|
89
|
+
self.vision_model.freeze()
|
90
|
+
# get bounding box predictions
|
91
|
+
bbox_preds = self.vision_model(img_tensors)
|
92
|
+
return bbox_preds
|
93
|
+
|
94
|
+
def prepare_messages(self, messages: list, bboxes: list[dict]) -> str:
|
95
|
+
# no bounding boxes
|
96
|
+
if len(bboxes) == 0:
|
97
|
+
text = self.tokenizer.apply_chat_template(
|
98
|
+
messages, add_generation_prompt=not self.training, tokenize=False
|
99
|
+
)
|
100
|
+
text = text.replace("<|begin_of_text|>", "")
|
101
|
+
return text
|
102
|
+
|
103
|
+
# expand <|inventory|> tokens into N tokens (N = number of bounding boxes)
|
104
|
+
new_messages = []
|
105
|
+
i_pred = 0
|
106
|
+
for m in messages:
|
107
|
+
new_message = m.copy()
|
108
|
+
if new_message["role"] == "user" and new_message["content"].endswith(
|
109
|
+
"<|inventory|>"
|
110
|
+
):
|
111
|
+
# add inventory tokens for each bounding box
|
112
|
+
new_message["content"] = new_message["content"].replace(
|
113
|
+
"<|inventory|>",
|
114
|
+
"<|inventory|>" * (bboxes[i_pred]["features"].shape[0]),
|
115
|
+
)
|
116
|
+
i_pred += 1
|
117
|
+
new_messages.append(new_message)
|
118
|
+
|
119
|
+
assert i_pred == len(
|
120
|
+
bboxes
|
121
|
+
), "Number of inventory tokens does not match number of images"
|
122
|
+
# add special tokens
|
123
|
+
|
124
|
+
text = self.tokenizer.apply_chat_template(
|
125
|
+
new_messages, add_generation_prompt=not self.training, tokenize=False
|
126
|
+
)
|
127
|
+
text = text.replace("<|begin_of_text|>", "")
|
128
|
+
return text
|
129
|
+
|
130
|
+
def inputs_merger(
|
131
|
+
self,
|
132
|
+
input_ids: torch.LongTensor,
|
133
|
+
inputs_embeds: Optional[torch.Tensor],
|
134
|
+
image_hidden_states: Optional[torch.Tensor],
|
135
|
+
):
|
136
|
+
# along batch dimension
|
137
|
+
for i in range(len(image_hidden_states)):
|
138
|
+
if len(image_hidden_states[i]) == 0:
|
139
|
+
assert (
|
140
|
+
input_ids[i] == self.inventory_idx
|
141
|
+
).sum() == 0, "No images but inventory token is still present"
|
142
|
+
continue
|
143
|
+
|
144
|
+
# count the number of inventory tokens
|
145
|
+
n_inventory_tokens = (input_ids[i] == self.inventory_idx).sum()
|
146
|
+
if n_inventory_tokens != image_hidden_states[i].shape[0]:
|
147
|
+
logger.warning(
|
148
|
+
f"Number of inventory tokens ({n_inventory_tokens}) does not match number of bounding boxes ({image_hidden_states[i].shape[0]}). Possible truncation."
|
149
|
+
)
|
150
|
+
# truncated from the start
|
151
|
+
image_hidden_states[i] = image_hidden_states[i][-n_inventory_tokens:]
|
152
|
+
|
153
|
+
# replace inventory tokens with bbox features
|
154
|
+
inputs_embeds[i, input_ids[i] == self.inventory_idx] = image_hidden_states[
|
155
|
+
i
|
156
|
+
]
|
157
|
+
return inputs_embeds
|
158
|
+
|
159
|
+
def process_inputs(
|
160
|
+
self,
|
161
|
+
batch_messages: list[list[dict]] = [], # list of list of messages (untokenized)
|
162
|
+
batch_images: list[list] = [], # list of list of images (unprocessed)
|
163
|
+
) -> tuple[dict[str, torch.FloatTensor], list[torch.FloatTensor], int]:
|
164
|
+
"""
|
165
|
+
Converts raw images and messages into model inputs
|
166
|
+
"""
|
167
|
+
assert len(batch_images) == len(
|
168
|
+
batch_messages
|
169
|
+
), "Number of images and messages should match in the batch dim"
|
170
|
+
# initial forward pass
|
171
|
+
texts_batch = []
|
172
|
+
image_hidden_states = []
|
173
|
+
total_boxes = 0
|
174
|
+
for images, messages in zip(batch_images, batch_messages):
|
175
|
+
# process images
|
176
|
+
bboxes = self.extract_bboxes(images)
|
177
|
+
if len(bboxes) > 0:
|
178
|
+
# get bbox features
|
179
|
+
features = torch.concat([p["features"] for p in bboxes], dim=0)
|
180
|
+
# upscale to text embedding size
|
181
|
+
features_embeds = self.vision_to_text_embedding(features)
|
182
|
+
image_hidden_states.append(features_embeds)
|
183
|
+
# count bboxes total
|
184
|
+
total_boxes += features.shape[0]
|
185
|
+
else:
|
186
|
+
image_hidden_states.append([])
|
187
|
+
|
188
|
+
# process messages
|
189
|
+
text = self.prepare_messages(messages, bboxes)
|
190
|
+
texts_batch.append(text)
|
191
|
+
|
192
|
+
# tokenize text
|
193
|
+
# @NOTE: truncation could cause issues with inventory tokens not matching number of boxes
|
194
|
+
# in that case, we will truncate the boxes from the end, and issue a warning
|
195
|
+
batch = self.tokenizer(
|
196
|
+
texts_batch,
|
197
|
+
truncation=True,
|
198
|
+
padding=True,
|
199
|
+
max_length=16384,
|
200
|
+
return_tensors="pt",
|
201
|
+
)
|
202
|
+
return batch, image_hidden_states, total_boxes
|
203
|
+
|
204
|
+
def forward(
|
205
|
+
self,
|
206
|
+
batch_messages: list[list[dict]] = [], # list of list of messages (untokenized)
|
207
|
+
batch_images: list[list] = [], # list of list of images (unprocessed)
|
208
|
+
**kwargs,
|
209
|
+
):
|
210
|
+
labels = None
|
211
|
+
batch, image_hidden_states, total_boxes = self.process_inputs(
|
212
|
+
batch_messages, batch_images
|
213
|
+
)
|
214
|
+
# move to cuda
|
215
|
+
batch = {k: v.cuda() for k, v in batch.items()}
|
216
|
+
attention_mask = batch["attention_mask"]
|
217
|
+
input_ids = batch["input_ids"]
|
218
|
+
|
219
|
+
labels = input_ids.clone()
|
220
|
+
# remove inventory tokens from labels
|
221
|
+
labels[labels == self.inventory_idx] = -100
|
222
|
+
# sanity check: should have same number of boxes as inventory tokens
|
223
|
+
assert (labels == -100).sum() == total_boxes
|
224
|
+
|
225
|
+
# get text embeddings
|
226
|
+
inputs_embeds = self.text_model.get_input_embeddings()(input_ids)
|
227
|
+
inputs_embeds = self.inputs_merger(
|
228
|
+
input_ids, inputs_embeds, image_hidden_states
|
229
|
+
)
|
230
|
+
# forward pass
|
231
|
+
return self.text_model(
|
232
|
+
inputs_embeds=inputs_embeds,
|
233
|
+
attention_mask=attention_mask,
|
234
|
+
labels=labels,
|
235
|
+
return_dict=True,
|
236
|
+
)
|
237
|
+
|
238
|
+
@torch.no_grad()
|
239
|
+
def generate(
|
240
|
+
self,
|
241
|
+
batch_messages: list[list[dict]],
|
242
|
+
batch_images: list[list],
|
243
|
+
do_sample=True,
|
244
|
+
temperature=0.6,
|
245
|
+
max_new_tokens=32,
|
246
|
+
):
|
247
|
+
self.tokenizer.padding_side = "left"
|
248
|
+
|
249
|
+
batch, image_hidden_states, _ = self.process_inputs(
|
250
|
+
batch_messages, batch_images
|
251
|
+
)
|
252
|
+
batch = {k: v.cuda() for k, v in batch.items()}
|
253
|
+
attention_mask = batch["attention_mask"]
|
254
|
+
input_ids = batch["input_ids"]
|
255
|
+
|
256
|
+
inputs_embeds = self.text_model.get_input_embeddings()(input_ids)
|
257
|
+
inputs_embeds = self.inputs_merger(
|
258
|
+
input_ids, inputs_embeds, image_hidden_states
|
259
|
+
)
|
260
|
+
|
261
|
+
generated_sequences = self.text_model.generate(
|
262
|
+
inputs_embeds=inputs_embeds,
|
263
|
+
attention_mask=attention_mask,
|
264
|
+
do_sample=do_sample,
|
265
|
+
temperature=temperature,
|
266
|
+
max_new_tokens=max_new_tokens,
|
267
|
+
pad_token_id=self.tokenizer.eos_token_id,
|
268
|
+
)
|
269
|
+
|
270
|
+
# Decode the output
|
271
|
+
text_responses = self.tokenizer.batch_decode(
|
272
|
+
generated_sequences,
|
273
|
+
# generated_sequences[:, prompt_tokens:],
|
274
|
+
skip_special_tokens=False,
|
275
|
+
)
|
276
|
+
|
277
|
+
# remove <|eot_id|> tokens
|
278
|
+
text_responses = [
|
279
|
+
text_response.replace("<|eot_id|>", "") for text_response in text_responses
|
280
|
+
]
|
281
|
+
|
282
|
+
_, total_tokens_used = generated_sequences.shape
|
283
|
+
return text_responses, total_tokens_used
|
@@ -0,0 +1,265 @@
|
|
1
|
+
import copy
|
2
|
+
from collections import Counter
|
3
|
+
|
4
|
+
from plancraft.config import EvalConfig
|
5
|
+
from plancraft.environments.actions import (
|
6
|
+
RealActionInteraction,
|
7
|
+
StopAction,
|
8
|
+
SymbolicMoveAction,
|
9
|
+
SymbolicSmeltAction,
|
10
|
+
)
|
11
|
+
from plancraft.environments.planner import optimal_planner
|
12
|
+
from plancraft.environments.recipes import (
|
13
|
+
ShapedRecipe,
|
14
|
+
ShapelessRecipe,
|
15
|
+
SmeltingRecipe,
|
16
|
+
id_to_item,
|
17
|
+
)
|
18
|
+
from plancraft.environments.sampler import MAX_STACK_SIZE
|
19
|
+
from plancraft.models.base import ABCModel, History
|
20
|
+
|
21
|
+
|
22
|
+
def item_set_id_to_type(item_set_ids: set[int]):
|
23
|
+
return set(id_to_item(i) for i in item_set_ids)
|
24
|
+
|
25
|
+
|
26
|
+
def find_free_inventory_slot(inventory: list[dict], from_slot: int) -> int:
|
27
|
+
# find a free slot in the inventory for the item in from_slot
|
28
|
+
from_item_type, from_item_quantity = None, None
|
29
|
+
|
30
|
+
type_to_slot = {}
|
31
|
+
slot_to_quantity = {}
|
32
|
+
for item in inventory:
|
33
|
+
if ("slot" in item and item["slot"] == from_slot) or (
|
34
|
+
"index" in item and item["index"] == from_slot
|
35
|
+
):
|
36
|
+
from_item_quantity = item["quantity"]
|
37
|
+
from_item_type = item["type"]
|
38
|
+
# break
|
39
|
+
item_type = item["type"]
|
40
|
+
quantity = item["quantity"]
|
41
|
+
if quantity == 0:
|
42
|
+
item_type = "air"
|
43
|
+
|
44
|
+
if "slot" in item:
|
45
|
+
item_slot = item["slot"]
|
46
|
+
else:
|
47
|
+
item_slot = item["index"]
|
48
|
+
|
49
|
+
if item_type not in type_to_slot:
|
50
|
+
type_to_slot[item_type] = [item_slot]
|
51
|
+
else:
|
52
|
+
type_to_slot[item_type].append(item_slot)
|
53
|
+
|
54
|
+
if item_slot not in slot_to_quantity:
|
55
|
+
slot_to_quantity[item_slot] = quantity
|
56
|
+
else:
|
57
|
+
slot_to_quantity[item_slot] += quantity
|
58
|
+
|
59
|
+
assert from_item_type is not None, f"Item not found in slot {from_slot}"
|
60
|
+
|
61
|
+
# if there is a free slot with the same item type
|
62
|
+
if from_item_type in type_to_slot:
|
63
|
+
for slot in type_to_slot[from_item_type]:
|
64
|
+
if (
|
65
|
+
slot != from_slot
|
66
|
+
and slot_to_quantity[slot] + from_item_quantity
|
67
|
+
<= MAX_STACK_SIZE[from_item_type]
|
68
|
+
):
|
69
|
+
return slot
|
70
|
+
|
71
|
+
# if there is a free slot with air
|
72
|
+
for slot in type_to_slot["air"]:
|
73
|
+
if slot != from_slot and slot > 10:
|
74
|
+
return slot
|
75
|
+
|
76
|
+
raise ValueError("No free slot found")
|
77
|
+
|
78
|
+
|
79
|
+
def find_item_in_inventory(target: str, inventory: list[dict]) -> int:
|
80
|
+
for item in inventory:
|
81
|
+
if item["type"] == target and item["quantity"] > 0:
|
82
|
+
if "slot" in item:
|
83
|
+
return item["slot"]
|
84
|
+
elif "index" in item:
|
85
|
+
return item["index"]
|
86
|
+
raise ValueError("Neither slot or index is set")
|
87
|
+
|
88
|
+
|
89
|
+
def get_inventory_counter(inventory: list[dict]) -> Counter:
|
90
|
+
counter = Counter()
|
91
|
+
for item in inventory:
|
92
|
+
if "slot" in item and item["slot"] == 0:
|
93
|
+
continue
|
94
|
+
if "index" in item and item["index"] == 0:
|
95
|
+
continue
|
96
|
+
if item["type"] == "air":
|
97
|
+
continue
|
98
|
+
counter[item["type"]] += item["quantity"]
|
99
|
+
return counter
|
100
|
+
|
101
|
+
|
102
|
+
def get_crafting_slot_item(inventory: list[dict]) -> dict:
|
103
|
+
for item in inventory:
|
104
|
+
if "slot" in item and item["slot"] == 0 and item["quantity"] > 0:
|
105
|
+
return item
|
106
|
+
if "index" in item and item["index"] == 0 and item["quantity"] > 0:
|
107
|
+
return item
|
108
|
+
return None
|
109
|
+
|
110
|
+
|
111
|
+
def update_inventory(
|
112
|
+
inventory: list[dict], slot_from: int, slot_to: int, quantity: int
|
113
|
+
) -> list[dict]:
|
114
|
+
"""
|
115
|
+
decrements quantity of item in slot_from
|
116
|
+
NOTE: we don't care about incrementing the items in slot_to
|
117
|
+
|
118
|
+
"""
|
119
|
+
new_inventory = []
|
120
|
+
for item in inventory:
|
121
|
+
if "slot" in item and item["slot"] == slot_from:
|
122
|
+
item["quantity"] -= quantity
|
123
|
+
elif "index" in item and item["index"] == slot_from:
|
124
|
+
item["quantity"] -= quantity
|
125
|
+
new_inventory.append(item)
|
126
|
+
return new_inventory
|
127
|
+
|
128
|
+
|
129
|
+
class OracleModel(ABCModel):
|
130
|
+
"""
|
131
|
+
Oracle model returns actions that solve the task optimally
|
132
|
+
"""
|
133
|
+
|
134
|
+
def __init__(self, cfg: EvalConfig):
|
135
|
+
assert (
|
136
|
+
cfg.plancraft.environment.symbolic_action_space
|
137
|
+
), "Only symbolic actions are supported for oracle"
|
138
|
+
self.history = History(objective="")
|
139
|
+
self.plans = []
|
140
|
+
self.subplans = []
|
141
|
+
|
142
|
+
def reset_history(self, objective: str = ""):
|
143
|
+
self.history.reset(objective=objective)
|
144
|
+
self.plans = []
|
145
|
+
self.subplans = []
|
146
|
+
|
147
|
+
def get_plan(self, observation: dict):
|
148
|
+
# objective="Craft an item of type: ...."
|
149
|
+
# this simply recovering the target item to craft
|
150
|
+
target = self.history.objective.split(": ")[-1]
|
151
|
+
inventory_counter = get_inventory_counter(observation["inventory"])
|
152
|
+
self.plans = optimal_planner(target=target, inventory=inventory_counter)
|
153
|
+
|
154
|
+
def get_next_action(
|
155
|
+
self, observation: dict
|
156
|
+
) -> SymbolicMoveAction | SymbolicSmeltAction:
|
157
|
+
if len(self.subplans) > 0:
|
158
|
+
return self.subplans.pop(0)
|
159
|
+
if len(self.plans) == 0:
|
160
|
+
raise ValueError("No more steps in plan")
|
161
|
+
|
162
|
+
observed_inventory = copy.deepcopy(observation["inventory"])
|
163
|
+
|
164
|
+
# take item from crafting slot
|
165
|
+
if slot_item := get_crafting_slot_item(observed_inventory):
|
166
|
+
# move item from crafting slot to inventory
|
167
|
+
free_slot = find_free_inventory_slot(observed_inventory, from_slot=0)
|
168
|
+
return SymbolicMoveAction(
|
169
|
+
slot_from=0, slot_to=free_slot, quantity=slot_item["quantity"]
|
170
|
+
)
|
171
|
+
|
172
|
+
plan_recipe, new_inventory = self.plans.pop(0)
|
173
|
+
self.subplans = []
|
174
|
+
new_inventory_counter = Counter(new_inventory)
|
175
|
+
current_inventory = observed_inventory
|
176
|
+
current_inventory_counter = get_inventory_counter(current_inventory)
|
177
|
+
items_to_use_counter = current_inventory_counter - new_inventory_counter
|
178
|
+
new_items = new_inventory_counter - current_inventory_counter
|
179
|
+
assert len(new_items) == 1
|
180
|
+
|
181
|
+
if isinstance(plan_recipe, ShapelessRecipe):
|
182
|
+
crafting_slot = 1
|
183
|
+
|
184
|
+
# add each item to crafting slots
|
185
|
+
for item, quantity in items_to_use_counter.items():
|
186
|
+
n = 0
|
187
|
+
while n < quantity:
|
188
|
+
from_slot = find_item_in_inventory(item, current_inventory)
|
189
|
+
|
190
|
+
# skip if from_slot is the crafting slot
|
191
|
+
if from_slot == crafting_slot:
|
192
|
+
crafting_slot += 1
|
193
|
+
n += 1
|
194
|
+
continue
|
195
|
+
|
196
|
+
# low_level_plan.append(("move", item, from_slot, crafting_slot, 1))
|
197
|
+
action = SymbolicMoveAction(
|
198
|
+
slot_from=from_slot, slot_to=crafting_slot, quantity=1
|
199
|
+
)
|
200
|
+
# update state of inventory
|
201
|
+
current_inventory = update_inventory(
|
202
|
+
current_inventory, from_slot, crafting_slot, 1
|
203
|
+
)
|
204
|
+
self.subplans.append(action)
|
205
|
+
|
206
|
+
crafting_slot += 1
|
207
|
+
n += 1
|
208
|
+
|
209
|
+
# if plan_recipe is a smelting recipe
|
210
|
+
elif isinstance(plan_recipe, SmeltingRecipe):
|
211
|
+
assert len(items_to_use_counter) == 1, "smelting only supports one item"
|
212
|
+
for item, quantity in items_to_use_counter.items():
|
213
|
+
from_slot = find_item_in_inventory(item, current_inventory)
|
214
|
+
free_slot = find_free_inventory_slot(
|
215
|
+
current_inventory, from_slot=from_slot
|
216
|
+
)
|
217
|
+
action = SymbolicSmeltAction(
|
218
|
+
slot_from=from_slot, slot_to=free_slot, quantity=quantity
|
219
|
+
)
|
220
|
+
self.subplans.append(action)
|
221
|
+
|
222
|
+
# if plan_recipe is a shaped recipe
|
223
|
+
elif isinstance(plan_recipe, ShapedRecipe):
|
224
|
+
for i, row in enumerate(plan_recipe.kernel):
|
225
|
+
for j, item_set in enumerate(row):
|
226
|
+
inventory_position = (i * 3) + j + 1
|
227
|
+
valid_items = item_set_id_to_type(item_set)
|
228
|
+
for item in valid_items:
|
229
|
+
if items_to_use_counter[item] > 0:
|
230
|
+
from_slot = find_item_in_inventory(item, current_inventory)
|
231
|
+
action = SymbolicMoveAction(
|
232
|
+
slot_from=from_slot,
|
233
|
+
slot_to=inventory_position,
|
234
|
+
quantity=1,
|
235
|
+
)
|
236
|
+
items_to_use_counter[item] -= 1
|
237
|
+
# update state of inventory
|
238
|
+
current_inventory = update_inventory(
|
239
|
+
current_inventory, from_slot, inventory_position, 1
|
240
|
+
)
|
241
|
+
self.subplans.append(action)
|
242
|
+
break
|
243
|
+
else:
|
244
|
+
raise NotImplementedError(f"Recipe type {type(plan_recipe)} not supported")
|
245
|
+
|
246
|
+
return self.subplans.pop(0)
|
247
|
+
|
248
|
+
def step(
|
249
|
+
self, observation: dict
|
250
|
+
) -> list[SymbolicMoveAction | RealActionInteraction | SymbolicSmeltAction]:
|
251
|
+
# add observation to history
|
252
|
+
self.history.add_observation_to_history(observation)
|
253
|
+
|
254
|
+
# get action
|
255
|
+
if len(self.plans) == 0:
|
256
|
+
self.get_plan(observation)
|
257
|
+
if self.plans is None:
|
258
|
+
self.plans = []
|
259
|
+
return StopAction()
|
260
|
+
|
261
|
+
action = self.get_next_action(observation)
|
262
|
+
|
263
|
+
# add action to history
|
264
|
+
self.history.add_action_to_history(action)
|
265
|
+
return action
|