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,492 @@
|
|
1
|
+
import einops
|
2
|
+
import torch
|
3
|
+
import torch.nn as nn
|
4
|
+
import torch.nn.functional as F
|
5
|
+
import torchvision.transforms.v2 as v2
|
6
|
+
from huggingface_hub import PyTorchModelHubMixin
|
7
|
+
from plancraft.environments.items import ALL_ITEMS
|
8
|
+
from torchvision.models.detection.faster_rcnn import (
|
9
|
+
fasterrcnn_resnet50_fpn_v2,
|
10
|
+
ResNet50_Weights,
|
11
|
+
)
|
12
|
+
from torchvision.models.detection.roi_heads import (
|
13
|
+
fastrcnn_loss,
|
14
|
+
keypointrcnn_inference,
|
15
|
+
keypointrcnn_loss,
|
16
|
+
maskrcnn_inference,
|
17
|
+
maskrcnn_loss,
|
18
|
+
)
|
19
|
+
from torchvision.ops import boxes as box_ops
|
20
|
+
|
21
|
+
|
22
|
+
def slot_to_bbox(slot: int):
|
23
|
+
# crafting slot
|
24
|
+
if slot == 0:
|
25
|
+
# slot size: 25x25
|
26
|
+
# top left corner: (x= 118, y=30)
|
27
|
+
box_size = 25
|
28
|
+
left_x = 117
|
29
|
+
top_y = 29
|
30
|
+
# crafting grid
|
31
|
+
elif slot < 10:
|
32
|
+
# slot size: 18x18
|
33
|
+
# top left corner: (x = 28 + 18 * col, y = 16 + 18 * row)
|
34
|
+
box_size = 18
|
35
|
+
row = (slot - 1) // 3
|
36
|
+
col = (slot - 1) % 3
|
37
|
+
left_x = 27 + (box_size * col)
|
38
|
+
top_y = 15 + (box_size * row)
|
39
|
+
# inventory
|
40
|
+
elif slot < 37:
|
41
|
+
# slot size: 18x18
|
42
|
+
# top left corner: (x= 6 + 18 * col, y=83 + 18 * row)
|
43
|
+
box_size = 18
|
44
|
+
row = (slot - 10) // 9
|
45
|
+
col = (slot - 10) % 9
|
46
|
+
left_x = 5 + (box_size * col)
|
47
|
+
top_y = 82 + (box_size * row)
|
48
|
+
# hotbar
|
49
|
+
else:
|
50
|
+
# slot size: 18x18
|
51
|
+
# top left corner: (x= 6 + 18 * col, y=141)
|
52
|
+
box_size = 18
|
53
|
+
col = (slot - 37) % 9
|
54
|
+
left_x = 5 + (box_size * col)
|
55
|
+
top_y = 140
|
56
|
+
return [left_x, top_y, left_x + box_size, top_y + box_size]
|
57
|
+
|
58
|
+
|
59
|
+
def precompute_slot_bboxes():
|
60
|
+
"""Precompute the bounding boxes for all slots."""
|
61
|
+
slot_bboxes = {}
|
62
|
+
for slot in range(46): # Assuming slot indices range from 0 to 45
|
63
|
+
slot_bboxes[slot] = slot_to_bbox(slot)
|
64
|
+
return slot_bboxes
|
65
|
+
|
66
|
+
|
67
|
+
# Precompute all slot bounding boxes
|
68
|
+
IDX_TO_BBOX = precompute_slot_bboxes()
|
69
|
+
|
70
|
+
|
71
|
+
def postprocess_detections_custom(
|
72
|
+
self,
|
73
|
+
class_logits,
|
74
|
+
quantity_logits,
|
75
|
+
box_features,
|
76
|
+
box_regression,
|
77
|
+
proposals,
|
78
|
+
image_shapes,
|
79
|
+
):
|
80
|
+
device = class_logits.device
|
81
|
+
num_classes = class_logits.shape[-1]
|
82
|
+
|
83
|
+
boxes_per_image = [boxes_in_image.shape[0] for boxes_in_image in proposals]
|
84
|
+
pred_boxes = self.box_coder.decode(box_regression, proposals)
|
85
|
+
|
86
|
+
pred_scores = F.softmax(class_logits, -1)
|
87
|
+
|
88
|
+
pred_quantity = F.softmax(quantity_logits, -1).argmax(dim=-1)
|
89
|
+
# repeat the quantities, once for each class
|
90
|
+
pred_quantity = einops.repeat(
|
91
|
+
pred_quantity, "n -> n c", c=num_classes, n=pred_quantity.shape[0]
|
92
|
+
)
|
93
|
+
|
94
|
+
pred_boxes_list = pred_boxes.split(boxes_per_image, 0)
|
95
|
+
pred_scores_list = pred_scores.split(boxes_per_image, 0)
|
96
|
+
pred_quantity_list = pred_quantity.split(boxes_per_image, 0)
|
97
|
+
pred_features_list = box_features.split(boxes_per_image, 0)
|
98
|
+
|
99
|
+
all_boxes = []
|
100
|
+
all_scores = []
|
101
|
+
all_labels = []
|
102
|
+
all_quantity_labels = []
|
103
|
+
all_features = []
|
104
|
+
|
105
|
+
for boxes, scores, quantities, features, image_shape in zip(
|
106
|
+
pred_boxes_list,
|
107
|
+
pred_scores_list,
|
108
|
+
pred_quantity_list,
|
109
|
+
pred_features_list,
|
110
|
+
image_shapes,
|
111
|
+
):
|
112
|
+
boxes = box_ops.clip_boxes_to_image(boxes, image_shape)
|
113
|
+
|
114
|
+
# create labels for each prediction
|
115
|
+
labels = torch.arange(num_classes, device=device)
|
116
|
+
labels = labels.view(1, -1).expand_as(scores)
|
117
|
+
|
118
|
+
box_idxs = (
|
119
|
+
torch.arange(boxes.size(0), device=device).view(-1, 1).expand_as(labels)
|
120
|
+
)
|
121
|
+
|
122
|
+
# remove predictions with the background label
|
123
|
+
boxes = boxes[:, 1:]
|
124
|
+
scores = scores[:, 1:]
|
125
|
+
labels = labels[:, 1:]
|
126
|
+
quantities = quantities[:, 1:]
|
127
|
+
box_idxs = box_idxs[:, 1:]
|
128
|
+
|
129
|
+
# batch everything, by making every class prediction be a separate instance
|
130
|
+
boxes = boxes.reshape(-1, 4)
|
131
|
+
scores = scores.reshape(-1)
|
132
|
+
labels = labels.reshape(-1)
|
133
|
+
quantities = quantities.reshape(-1)
|
134
|
+
box_idxs = box_idxs.reshape(-1)
|
135
|
+
|
136
|
+
# remove low scoring boxes
|
137
|
+
inds = torch.where(scores > self.score_thresh)[0]
|
138
|
+
boxes, scores, labels, quantities, box_idxs = (
|
139
|
+
boxes[inds],
|
140
|
+
scores[inds],
|
141
|
+
labels[inds],
|
142
|
+
quantities[inds],
|
143
|
+
box_idxs[inds],
|
144
|
+
)
|
145
|
+
|
146
|
+
# remove empty boxes
|
147
|
+
keep = box_ops.remove_small_boxes(boxes, min_size=1e-2)
|
148
|
+
boxes, scores, labels, quantities, box_idxs = (
|
149
|
+
boxes[keep],
|
150
|
+
scores[keep],
|
151
|
+
labels[keep],
|
152
|
+
quantities[keep],
|
153
|
+
box_idxs[keep],
|
154
|
+
)
|
155
|
+
|
156
|
+
# non-maximum suppression, independently done per class
|
157
|
+
keep = box_ops.batched_nms(boxes, scores, labels, self.nms_thresh)
|
158
|
+
# keep only topk scoring predictions
|
159
|
+
keep = keep[: self.detections_per_img]
|
160
|
+
boxes, scores, labels, quantities, box_idxs = (
|
161
|
+
boxes[keep],
|
162
|
+
scores[keep],
|
163
|
+
labels[keep],
|
164
|
+
quantities[keep],
|
165
|
+
box_idxs[keep],
|
166
|
+
)
|
167
|
+
|
168
|
+
all_boxes.append(boxes)
|
169
|
+
all_scores.append(scores)
|
170
|
+
all_labels.append(labels)
|
171
|
+
all_quantity_labels.append(quantities)
|
172
|
+
all_features.append(features[box_idxs])
|
173
|
+
|
174
|
+
return all_boxes, all_scores, all_labels, all_quantity_labels, all_features
|
175
|
+
|
176
|
+
|
177
|
+
def forward_custom(
|
178
|
+
self,
|
179
|
+
features,
|
180
|
+
proposals,
|
181
|
+
image_shapes,
|
182
|
+
targets=None,
|
183
|
+
):
|
184
|
+
training = False
|
185
|
+
if targets is not None:
|
186
|
+
training = True
|
187
|
+
for t in targets:
|
188
|
+
floating_point_types = (torch.float, torch.double, torch.half)
|
189
|
+
if t["boxes"].dtype not in floating_point_types:
|
190
|
+
raise TypeError(
|
191
|
+
f"target boxes must of float type, instead got {t['boxes'].dtype}"
|
192
|
+
)
|
193
|
+
if not t["labels"].dtype == torch.int64:
|
194
|
+
raise TypeError(
|
195
|
+
f"target labels must of int64 type, instead got {t['labels'].dtype}"
|
196
|
+
)
|
197
|
+
if self.has_keypoint():
|
198
|
+
if not t["keypoints"].dtype == torch.float32:
|
199
|
+
raise TypeError(
|
200
|
+
f"target keypoints must of float type, instead got {t['keypoints'].dtype}"
|
201
|
+
)
|
202
|
+
|
203
|
+
if training:
|
204
|
+
proposals, matched_idxs, labels, regression_targets = (
|
205
|
+
self.select_training_samples(proposals, targets)
|
206
|
+
)
|
207
|
+
else:
|
208
|
+
labels = None
|
209
|
+
regression_targets = None
|
210
|
+
matched_idxs = None
|
211
|
+
|
212
|
+
box_features = self.box_roi_pool(features, proposals, image_shapes)
|
213
|
+
box_features = self.box_head(box_features)
|
214
|
+
class_logits, box_regression = self.box_predictor(box_features)
|
215
|
+
|
216
|
+
result = []
|
217
|
+
losses = {}
|
218
|
+
if training:
|
219
|
+
if labels is None:
|
220
|
+
raise ValueError("labels cannot be None")
|
221
|
+
if regression_targets is None:
|
222
|
+
raise ValueError("regression_targets cannot be None")
|
223
|
+
loss_classifier, loss_box_reg = fastrcnn_loss(
|
224
|
+
class_logits, box_regression, labels, regression_targets
|
225
|
+
)
|
226
|
+
|
227
|
+
# custom addition to calculate quantity loss
|
228
|
+
dtype = proposals[0].dtype
|
229
|
+
gt_boxes = [t["boxes"].to(dtype) for t in targets]
|
230
|
+
gt_labels = [t["quantity_labels"] for t in targets]
|
231
|
+
_, quantity_labels = self.assign_targets_to_proposals(
|
232
|
+
proposals, gt_boxes, gt_labels
|
233
|
+
)
|
234
|
+
quantity_labels = torch.cat(quantity_labels, dim=0)
|
235
|
+
# needs quantity_prediction layer to be added to class
|
236
|
+
quantity_preds = self.quantity_prediction(box_features)
|
237
|
+
loss_classsifier_quantity = F.cross_entropy(
|
238
|
+
quantity_preds,
|
239
|
+
quantity_labels,
|
240
|
+
)
|
241
|
+
losses = {
|
242
|
+
"loss_classifier": loss_classifier,
|
243
|
+
"loss_box_reg": loss_box_reg,
|
244
|
+
"loss_classifier_quantity": loss_classsifier_quantity,
|
245
|
+
}
|
246
|
+
else:
|
247
|
+
quantity_logits = self.quantity_prediction(box_features)
|
248
|
+
|
249
|
+
boxes, scores, labels, quantities, features = postprocess_detections_custom(
|
250
|
+
self,
|
251
|
+
class_logits,
|
252
|
+
quantity_logits,
|
253
|
+
box_features,
|
254
|
+
box_regression,
|
255
|
+
proposals,
|
256
|
+
image_shapes,
|
257
|
+
)
|
258
|
+
num_images = len(boxes)
|
259
|
+
for i in range(num_images):
|
260
|
+
result.append(
|
261
|
+
{
|
262
|
+
"boxes": boxes[i],
|
263
|
+
"labels": labels[i],
|
264
|
+
"scores": scores[i],
|
265
|
+
"quantities": quantities[i],
|
266
|
+
"features": features[i],
|
267
|
+
}
|
268
|
+
)
|
269
|
+
|
270
|
+
if self.has_mask():
|
271
|
+
mask_proposals = [p["boxes"] for p in result]
|
272
|
+
if training:
|
273
|
+
if matched_idxs is None:
|
274
|
+
raise ValueError("if in training, matched_idxs should not be None")
|
275
|
+
|
276
|
+
# during training, only focus on positive boxes
|
277
|
+
num_images = len(proposals)
|
278
|
+
mask_proposals = []
|
279
|
+
pos_matched_idxs = []
|
280
|
+
for img_id in range(num_images):
|
281
|
+
pos = torch.where(labels[img_id] > 0)[0]
|
282
|
+
mask_proposals.append(proposals[img_id][pos])
|
283
|
+
pos_matched_idxs.append(matched_idxs[img_id][pos])
|
284
|
+
else:
|
285
|
+
pos_matched_idxs = None
|
286
|
+
|
287
|
+
if self.mask_roi_pool is not None:
|
288
|
+
mask_features = self.mask_roi_pool(features, mask_proposals, image_shapes)
|
289
|
+
mask_features = self.mask_head(mask_features)
|
290
|
+
mask_logits = self.mask_predictor(mask_features)
|
291
|
+
else:
|
292
|
+
raise Exception("Expected mask_roi_pool to be not None")
|
293
|
+
|
294
|
+
loss_mask = {}
|
295
|
+
if training:
|
296
|
+
if targets is None or pos_matched_idxs is None or mask_logits is None:
|
297
|
+
raise ValueError(
|
298
|
+
"targets, pos_matched_idxs, mask_logits cannot be None when training"
|
299
|
+
)
|
300
|
+
|
301
|
+
gt_masks = [t["masks"] for t in targets]
|
302
|
+
gt_labels = [t["labels"] for t in targets]
|
303
|
+
rcnn_loss_mask = maskrcnn_loss(
|
304
|
+
mask_logits, mask_proposals, gt_masks, gt_labels, pos_matched_idxs
|
305
|
+
)
|
306
|
+
loss_mask = {"loss_mask": rcnn_loss_mask}
|
307
|
+
else:
|
308
|
+
labels = [r["labels"] for r in result]
|
309
|
+
masks_probs = maskrcnn_inference(mask_logits, labels)
|
310
|
+
for mask_prob, r in zip(masks_probs, result):
|
311
|
+
r["masks"] = mask_prob
|
312
|
+
|
313
|
+
losses.update(loss_mask)
|
314
|
+
|
315
|
+
# keep none checks in if conditional so torchscript will conditionally
|
316
|
+
# compile each branch
|
317
|
+
if (
|
318
|
+
self.keypoint_roi_pool is not None
|
319
|
+
and self.keypoint_head is not None
|
320
|
+
and self.keypoint_predictor is not None
|
321
|
+
):
|
322
|
+
keypoint_proposals = [p["boxes"] for p in result]
|
323
|
+
if training:
|
324
|
+
# during training, only focus on positive boxes
|
325
|
+
num_images = len(proposals)
|
326
|
+
keypoint_proposals = []
|
327
|
+
pos_matched_idxs = []
|
328
|
+
if matched_idxs is None:
|
329
|
+
raise ValueError("if in trainning, matched_idxs should not be None")
|
330
|
+
|
331
|
+
for img_id in range(num_images):
|
332
|
+
pos = torch.where(labels[img_id] > 0)[0]
|
333
|
+
keypoint_proposals.append(proposals[img_id][pos])
|
334
|
+
pos_matched_idxs.append(matched_idxs[img_id][pos])
|
335
|
+
else:
|
336
|
+
pos_matched_idxs = None
|
337
|
+
|
338
|
+
keypoint_features = self.keypoint_roi_pool(
|
339
|
+
features, keypoint_proposals, image_shapes
|
340
|
+
)
|
341
|
+
keypoint_features = self.keypoint_head(keypoint_features)
|
342
|
+
keypoint_logits = self.keypoint_predictor(keypoint_features)
|
343
|
+
|
344
|
+
loss_keypoint = {}
|
345
|
+
if training:
|
346
|
+
if targets is None or pos_matched_idxs is None:
|
347
|
+
raise ValueError(
|
348
|
+
"both targets and pos_matched_idxs should not be None when in training mode"
|
349
|
+
)
|
350
|
+
|
351
|
+
gt_keypoints = [t["keypoints"] for t in targets]
|
352
|
+
rcnn_loss_keypoint = keypointrcnn_loss(
|
353
|
+
keypoint_logits, keypoint_proposals, gt_keypoints, pos_matched_idxs
|
354
|
+
)
|
355
|
+
loss_keypoint = {"loss_keypoint": rcnn_loss_keypoint}
|
356
|
+
else:
|
357
|
+
if keypoint_logits is None or keypoint_proposals is None:
|
358
|
+
raise ValueError(
|
359
|
+
"both keypoint_logits and keypoint_proposals should not be None when not in training mode"
|
360
|
+
)
|
361
|
+
|
362
|
+
keypoints_probs, kp_scores = keypointrcnn_inference(
|
363
|
+
keypoint_logits, keypoint_proposals
|
364
|
+
)
|
365
|
+
for keypoint_prob, kps, r in zip(keypoints_probs, kp_scores, result):
|
366
|
+
r["keypoints"] = keypoint_prob
|
367
|
+
r["keypoints_scores"] = kps
|
368
|
+
losses.update(loss_keypoint)
|
369
|
+
|
370
|
+
return result, losses
|
371
|
+
|
372
|
+
|
373
|
+
def calculate_iou(boxA, boxB):
|
374
|
+
"""Calculate Intersection over Union (IoU) between two bounding boxes."""
|
375
|
+
# Determine the coordinates of the intersection rectangle
|
376
|
+
xA = max(boxA[0], boxB[0])
|
377
|
+
yA = max(boxA[1], boxB[1])
|
378
|
+
xB = min(boxA[2], boxB[2])
|
379
|
+
yB = min(boxA[3], boxB[3])
|
380
|
+
|
381
|
+
# Compute the area of intersection
|
382
|
+
interArea = max(0, xB - xA) * max(0, yB - yA)
|
383
|
+
|
384
|
+
# Compute the area of both the bounding boxes
|
385
|
+
boxAArea = (boxA[2] - boxA[0]) * (boxA[3] - boxA[1])
|
386
|
+
boxBArea = (boxB[2] - boxB[0]) * (boxB[3] - boxB[1])
|
387
|
+
|
388
|
+
# Compute the IoU
|
389
|
+
iou = interArea / float(boxAArea + boxBArea - interArea)
|
390
|
+
|
391
|
+
return iou
|
392
|
+
|
393
|
+
|
394
|
+
def bbox_to_slot_index_iou(bbox: tuple[int, int, int, int]) -> int:
|
395
|
+
"""Assign the given bounding box to the slot with the highest IoU."""
|
396
|
+
best_slot = None
|
397
|
+
best_iou = -1
|
398
|
+
# Iterate through all precomputed slot bounding boxes
|
399
|
+
for slot, slot_bbox in IDX_TO_BBOX.items():
|
400
|
+
iou = calculate_iou(bbox, slot_bbox)
|
401
|
+
if iou > best_iou:
|
402
|
+
best_iou = iou
|
403
|
+
best_slot = slot
|
404
|
+
return best_slot
|
405
|
+
|
406
|
+
|
407
|
+
class IntegratedBoundingBoxModel(nn.Module, PyTorchModelHubMixin):
|
408
|
+
"""
|
409
|
+
Custom mask rcnn model with quantity prediction
|
410
|
+
|
411
|
+
Also returns the feature vectors of the detected boxes
|
412
|
+
"""
|
413
|
+
|
414
|
+
def __init__(self, load_resnet_weights=False):
|
415
|
+
super(IntegratedBoundingBoxModel, self).__init__()
|
416
|
+
weights = None
|
417
|
+
if load_resnet_weights:
|
418
|
+
weights = ResNet50_Weights.DEFAULT
|
419
|
+
|
420
|
+
self.model = fasterrcnn_resnet50_fpn_v2(
|
421
|
+
weights_backbone=weights,
|
422
|
+
image_mean=[0.63, 0.63, 0.63],
|
423
|
+
image_std=[0.21, 0.21, 0.21],
|
424
|
+
min_size=128,
|
425
|
+
max_size=256,
|
426
|
+
num_classes=len(ALL_ITEMS),
|
427
|
+
box_score_thresh=0.05,
|
428
|
+
rpn_batch_size_per_image=64,
|
429
|
+
box_detections_per_img=64,
|
430
|
+
box_batch_size_per_image=128,
|
431
|
+
)
|
432
|
+
self.model.roi_heads.quantity_prediction = nn.Linear(1024, 65)
|
433
|
+
|
434
|
+
# replace the head with leaky activations
|
435
|
+
self.model.roi_heads.forward = forward_custom.__get__(
|
436
|
+
self.model.roi_heads, type(self.model.roi_heads)
|
437
|
+
)
|
438
|
+
|
439
|
+
self.transform = v2.Compose(
|
440
|
+
[v2.ToImage(), v2.ToDtype(torch.float32, scale=True)]
|
441
|
+
)
|
442
|
+
|
443
|
+
def forward(self, x, targets=None):
|
444
|
+
if self.training:
|
445
|
+
# normal forward pass
|
446
|
+
loss_dict = self.model(x, targets)
|
447
|
+
return loss_dict
|
448
|
+
else:
|
449
|
+
preds = self.model(x)
|
450
|
+
return preds
|
451
|
+
|
452
|
+
def get_inventory(self, pil_image):
|
453
|
+
"""
|
454
|
+
Predict boxes and quantities
|
455
|
+
"""
|
456
|
+
img_tensor = self.transform(pil_image)
|
457
|
+
if next(self.model.parameters()).is_cuda:
|
458
|
+
img_tensor = img_tensor.cuda()
|
459
|
+
with torch.no_grad():
|
460
|
+
predictions = self.model(img_tensor.unsqueeze(0))
|
461
|
+
return self.prediction_to_inventory(predictions[0])
|
462
|
+
|
463
|
+
@staticmethod
|
464
|
+
def prediction_to_inventory(prediction, threshold=0.9) -> list[dict]:
|
465
|
+
inventory = []
|
466
|
+
seen_slots = set()
|
467
|
+
for i in range(len(prediction["boxes"])):
|
468
|
+
slot = bbox_to_slot_index_iou(prediction["boxes"][i])
|
469
|
+
score = prediction["scores"][i]
|
470
|
+
label_idx = prediction["labels"][i].item()
|
471
|
+
label = ALL_ITEMS[label_idx]
|
472
|
+
quantity = prediction["quantities"][i].item()
|
473
|
+
if score > threshold:
|
474
|
+
if slot in seen_slots:
|
475
|
+
continue
|
476
|
+
inventory.append({"slot": slot, "type": label, "quantity": quantity})
|
477
|
+
return inventory
|
478
|
+
|
479
|
+
def freeze(self):
|
480
|
+
# NOTE: this might seem excessive
|
481
|
+
# but transformers trainer is really good at enabling gradients against my will
|
482
|
+
self.eval()
|
483
|
+
self.model.eval()
|
484
|
+
self.training = False
|
485
|
+
for param in self.model.parameters():
|
486
|
+
param.requires_grad = False
|
487
|
+
self.model.training = False
|
488
|
+
self.model.roi_heads.training = False
|
489
|
+
self.model.rpn.training = False
|
490
|
+
|
491
|
+
def save(self, path: str):
|
492
|
+
torch.save(self.state_dict(), path)
|
@@ -0,0 +1,54 @@
|
|
1
|
+
import random
|
2
|
+
|
3
|
+
from plancraft.config import EvalConfig
|
4
|
+
from plancraft.environments.actions import (
|
5
|
+
RealActionInteraction,
|
6
|
+
SymbolicMoveAction,
|
7
|
+
SymbolicSmeltAction,
|
8
|
+
)
|
9
|
+
from plancraft.models.base import ABCModel, History
|
10
|
+
|
11
|
+
|
12
|
+
class DummyModel(ABCModel):
|
13
|
+
"""
|
14
|
+
Dummy model returns actions that do random action
|
15
|
+
"""
|
16
|
+
|
17
|
+
def __init__(self, cfg: EvalConfig):
|
18
|
+
self.symbolic_move_action = cfg.plancraft.environment.symbolic_action_space
|
19
|
+
self.history = History(objective="")
|
20
|
+
|
21
|
+
def random_select(self, observation):
|
22
|
+
if observation is None or "inventory" not in observation:
|
23
|
+
return SymbolicMoveAction(slot_from=0, slot_to=0, quantity=1)
|
24
|
+
# randomly pick an item from the inventory
|
25
|
+
item_indices = set()
|
26
|
+
for item in observation["inventory"]:
|
27
|
+
if item["quantity"] > 0:
|
28
|
+
item_indices.add(item["index"])
|
29
|
+
all_slots_to = set(range(1, 46))
|
30
|
+
empty_slots = all_slots_to - item_indices
|
31
|
+
|
32
|
+
random_slot_from = random.choice(list(item_indices))
|
33
|
+
random_slot_to = random.choice(list(empty_slots))
|
34
|
+
|
35
|
+
return SymbolicMoveAction(
|
36
|
+
slot_from=random_slot_from, slot_to=random_slot_to, quantity=1
|
37
|
+
)
|
38
|
+
|
39
|
+
def step(
|
40
|
+
self, observation: dict
|
41
|
+
) -> list[SymbolicMoveAction | RealActionInteraction | SymbolicSmeltAction]:
|
42
|
+
# add observation to history
|
43
|
+
self.history.add_observation_to_history(observation)
|
44
|
+
|
45
|
+
# get action
|
46
|
+
if self.symbolic_move_action:
|
47
|
+
action = self.random_select(observation)
|
48
|
+
else:
|
49
|
+
action = RealActionInteraction()
|
50
|
+
|
51
|
+
# add action to history
|
52
|
+
self.history.add_action_to_history(action)
|
53
|
+
|
54
|
+
return action
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import os
|
2
|
+
import glob
|
3
|
+
|
4
|
+
import numpy as np
|
5
|
+
import imageio
|
6
|
+
|
7
|
+
|
8
|
+
def get_few_shot_images_path():
|
9
|
+
return os.path.dirname(__file__)
|
10
|
+
|
11
|
+
|
12
|
+
def load_prompt_images() -> list[np.ndarray]:
|
13
|
+
current_dir = get_few_shot_images_path()
|
14
|
+
files = glob.glob(os.path.join(current_dir, "*.png"))
|
15
|
+
images = [imageio.imread(file) for file in files]
|
16
|
+
return images
|