2928 lines
61 KiB
JavaScript
2928 lines
61 KiB
JavaScript
const items = [
|
|
{
|
|
"id": "air",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "iron_shovel",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "iron_pickaxe",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "iron_axe",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "flint_and_steel",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "apple",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "bow",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "arrow",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "coal",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "diamond",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "iron_ingot",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "gold_ingot",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "iron_sword",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "wooden_sword",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "wooden_shovel",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "wooden_pickaxe",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "wooden_axe",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "stone_sword",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "stone_shovel",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "stone_pickaxe",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "stone_axe",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "diamond_sword",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "diamond_shovel",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "diamond_pickaxe",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "diamond_axe",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "stick",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "bowl",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "mushroom_stew",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "golden_sword",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "golden_shovel",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "golden_pickaxe",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "golden_axe",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "string",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "feather",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "gunpowder",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "wooden_hoe",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "stone_hoe",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "iron_hoe",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "diamond_hoe",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "golden_hoe",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "wheat_seeds",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "wheat",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "bread",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "leather_helmet",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "leather_chestplate",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "leather_leggings",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "leather_boots",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "chainmail_helmet",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "chainmail_chestplate",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "chainmail_leggings",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "chainmail_boots",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "iron_helmet",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "iron_chestplate",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "iron_leggings",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "iron_boots",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "diamond_helmet",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "diamond_chestplate",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "diamond_leggings",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "diamond_boots",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "golden_helmet",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "golden_chestplate",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "golden_leggings",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "golden_boots",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "flint",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "porkchop",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "cooked_porkchop",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "painting",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "golden_apple",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "sign",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "oak_door",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "spruce_door",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "birch_door",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "jungle_door",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "acacia_door",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "dark_oak_door",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "bucket",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "water_bucket",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "lava_bucket",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "minecart",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "saddle",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "iron_door",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "redstone",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "snowball",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "boat",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "leather",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "milk_bucket",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "brick",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "clay_ball",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "reeds",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "paper",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "book",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "slime_ball",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "chest_minecart",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "furnace_minecart",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "egg",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "compass",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "fishing_rod",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "clock",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "glowstone_dust",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "fish",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "cooked_fish",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "dye",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "bone",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "sugar",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "cake",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "bed",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "repeater",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "cookie",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "filled_map",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "shears",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "melon",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "pumpkin_seeds",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "melon_seeds",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "beef",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "cooked_beef",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "chicken",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "cooked_chicken",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "mutton",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "cooked_mutton",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "rabbit",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "cooked_rabbit",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "rabbit_stew",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "rabbit_foot",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "rabbit_hide",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "rotten_flesh",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "ender_pearl",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "blaze_rod",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "ghast_tear",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "gold_nugget",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "nether_wart",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "potionitem",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "glass_bottle",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "spider_eye",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "fermented_spider_eye",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "blaze_powder",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "magma_cream",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "brewing_stand",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "cauldron",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "ender_eye",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "speckled_melon",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "spawn_egg",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "experience_bottle",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "fire_charge",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "writable_book",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "written_book",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "emerald",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "item_frame",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "flower_pot",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "carrot",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "potato",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "baked_potato",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "poisonous_potato",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "map",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "golden_carrot",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "skull",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "carrot_on_a_stick",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "nether_star",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "pumpkin_pie",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "fireworks",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "firework_charge",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "enchanted_book",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "comparator",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "netherbrick",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "quartz",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "tnt_minecart",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "hopper_minecart",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "armor_stand",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "iron_horse_armor",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "golden_horse_armor",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "diamond_horse_armor",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "lead",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "name_tag",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "command_block_minecart",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "record_13",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "record_cat",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "record_blocks",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "record_chirp",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "record_far",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "record_mall",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "record_mellohi",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "record_stal",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "record_strad",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "record_ward",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "record_11",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "record_wait",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "prismarine_shard",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "prismarine_crystals",
|
|
"type": "item"
|
|
},
|
|
{
|
|
"id": "banner",
|
|
"type": "item"
|
|
}
|
|
];
|
|
const blocks = [
|
|
{
|
|
"name": "stone",
|
|
"meta": 0,
|
|
"id": "stone",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "granite",
|
|
"meta": 1,
|
|
"id": "stone",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "graniteSmooth",
|
|
"meta": 2,
|
|
"id": "stone",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "diorite",
|
|
"meta": 3,
|
|
"id": "stone",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "dioriteSmooth",
|
|
"meta": 4,
|
|
"id": "stone",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "andesite",
|
|
"meta": 5,
|
|
"id": "stone",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "andesiteSmooth",
|
|
"meta": 6,
|
|
"id": "stone",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "grass",
|
|
"meta": 0,
|
|
"id": "grass",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "default",
|
|
"meta": 0,
|
|
"id": "dirt",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "coarse",
|
|
"meta": 1,
|
|
"id": "dirt",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "podzol",
|
|
"meta": 2,
|
|
"id": "dirt",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "stonebrick",
|
|
"meta": 0,
|
|
"id": "cobblestone",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "oak",
|
|
"meta": 0,
|
|
"id": "planks",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "spruce",
|
|
"meta": 1,
|
|
"id": "planks",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "birch",
|
|
"meta": 2,
|
|
"id": "planks",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "jungle",
|
|
"meta": 3,
|
|
"id": "planks",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "acacia",
|
|
"meta": 4,
|
|
"id": "planks",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "big_oak",
|
|
"meta": 5,
|
|
"id": "planks",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "oak",
|
|
"meta": 0,
|
|
"id": "sapling",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "spruce",
|
|
"meta": 1,
|
|
"id": "sapling",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "birch",
|
|
"meta": 2,
|
|
"id": "sapling",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "jungle",
|
|
"meta": 3,
|
|
"id": "sapling",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "acacia",
|
|
"meta": 4,
|
|
"id": "sapling",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "big_oak",
|
|
"meta": 5,
|
|
"id": "sapling",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "bedrock",
|
|
"meta": 0,
|
|
"id": "bedrock",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "default",
|
|
"meta": 0,
|
|
"id": "sand",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "red",
|
|
"meta": 1,
|
|
"id": "sand",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "gravel",
|
|
"meta": 0,
|
|
"id": "gravel",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "oreGold",
|
|
"meta": 0,
|
|
"id": "gold_ore",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "oreIron",
|
|
"meta": 0,
|
|
"id": "iron_ore",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "oreCoal",
|
|
"meta": 0,
|
|
"id": "coal_ore",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "oak",
|
|
"meta": 0,
|
|
"id": "log",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "spruce",
|
|
"meta": 1,
|
|
"id": "log",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "birch",
|
|
"meta": 2,
|
|
"id": "log",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "jungle",
|
|
"meta": 3,
|
|
"id": "log",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "acacia",
|
|
"meta": 0,
|
|
"id": "log2",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "big_oak",
|
|
"meta": 1,
|
|
"id": "log2",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "oak",
|
|
"meta": 0,
|
|
"id": "leaves",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "spruce",
|
|
"meta": 1,
|
|
"id": "leaves",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "birch",
|
|
"meta": 2,
|
|
"id": "leaves",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "jungle",
|
|
"meta": 3,
|
|
"id": "leaves",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "acacia",
|
|
"meta": 0,
|
|
"id": "leaves2",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "big_oak",
|
|
"meta": 1,
|
|
"id": "leaves2",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "dry",
|
|
"meta": 0,
|
|
"id": "sponge",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "wet",
|
|
"meta": 1,
|
|
"id": "sponge",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "glass",
|
|
"meta": 0,
|
|
"id": "glass",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "oreLapis",
|
|
"meta": 0,
|
|
"id": "lapis_ore",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "blockLapis",
|
|
"meta": 0,
|
|
"id": "lapis_block",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "dispenser",
|
|
"meta": 0,
|
|
"id": "dispenser",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "default",
|
|
"meta": 0,
|
|
"id": "sandstone",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "chiseled",
|
|
"meta": 1,
|
|
"id": "sandstone",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "smooth",
|
|
"meta": 2,
|
|
"id": "sandstone",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "musicBlock",
|
|
"meta": 0,
|
|
"id": "noteblock",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "goldenRail",
|
|
"meta": 0,
|
|
"id": "golden_rail",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "detectorRail",
|
|
"meta": 0,
|
|
"id": "detector_rail",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "pistonStickyBase",
|
|
"meta": 0,
|
|
"id": "sticky_piston",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "web",
|
|
"meta": 0,
|
|
"id": "web",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "grass",
|
|
"meta": 1,
|
|
"id": "tallgrass",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "fern",
|
|
"meta": 2,
|
|
"id": "tallgrass",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "deadbush",
|
|
"meta": 0,
|
|
"id": "deadbush",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "pistonBase",
|
|
"meta": 0,
|
|
"id": "piston",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "white",
|
|
"meta": 0,
|
|
"id": "wool",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "orange",
|
|
"meta": 1,
|
|
"id": "wool",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "magenta",
|
|
"meta": 2,
|
|
"id": "wool",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "lightBlue",
|
|
"meta": 3,
|
|
"id": "wool",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "yellow",
|
|
"meta": 4,
|
|
"id": "wool",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "lime",
|
|
"meta": 5,
|
|
"id": "wool",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "pink",
|
|
"meta": 6,
|
|
"id": "wool",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "gray",
|
|
"meta": 7,
|
|
"id": "wool",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "silver",
|
|
"meta": 8,
|
|
"id": "wool",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "cyan",
|
|
"meta": 9,
|
|
"id": "wool",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "purple",
|
|
"meta": 10,
|
|
"id": "wool",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "blue",
|
|
"meta": 11,
|
|
"id": "wool",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "brown",
|
|
"meta": 12,
|
|
"id": "wool",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "green",
|
|
"meta": 13,
|
|
"id": "wool",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "red",
|
|
"meta": 14,
|
|
"id": "wool",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "black",
|
|
"meta": 15,
|
|
"id": "wool",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "dandelion",
|
|
"meta": 0,
|
|
"id": "yellow_flower",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "poppy",
|
|
"meta": 0,
|
|
"id": "red_flower",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "blueOrchid",
|
|
"meta": 1,
|
|
"id": "red_flower",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "allium",
|
|
"meta": 2,
|
|
"id": "red_flower",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "houstonia",
|
|
"meta": 3,
|
|
"id": "red_flower",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "tulipRed",
|
|
"meta": 4,
|
|
"id": "red_flower",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "tulipOrange",
|
|
"meta": 5,
|
|
"id": "red_flower",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "tulipWhite",
|
|
"meta": 6,
|
|
"id": "red_flower",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "tulipPink",
|
|
"meta": 7,
|
|
"id": "red_flower",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "oxeyeDaisy",
|
|
"meta": 8,
|
|
"id": "red_flower",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "mushroom",
|
|
"meta": 0,
|
|
"id": "brown_mushroom",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "mushroom",
|
|
"meta": 0,
|
|
"id": "red_mushroom",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "blockGold",
|
|
"meta": 0,
|
|
"id": "gold_block",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "blockIron",
|
|
"meta": 0,
|
|
"id": "iron_block",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "stone",
|
|
"meta": 0,
|
|
"id": "stone_slab",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "sand",
|
|
"meta": 1,
|
|
"id": "stone_slab",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "cobble",
|
|
"meta": 3,
|
|
"id": "stone_slab",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "brick",
|
|
"meta": 4,
|
|
"id": "stone_slab",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "smoothStoneBrick",
|
|
"meta": 5,
|
|
"id": "stone_slab",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "netherBrick",
|
|
"meta": 6,
|
|
"id": "stone_slab",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "quartz",
|
|
"meta": 7,
|
|
"id": "stone_slab",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "brick",
|
|
"meta": 0,
|
|
"id": "brick_block",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "tnt",
|
|
"meta": 0,
|
|
"id": "tnt",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "bookshelf",
|
|
"meta": 0,
|
|
"id": "bookshelf",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "stoneMoss",
|
|
"meta": 0,
|
|
"id": "mossy_cobblestone",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "obsidian",
|
|
"meta": 0,
|
|
"id": "obsidian",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "torch",
|
|
"meta": 0,
|
|
"id": "torch",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "mobSpawner",
|
|
"meta": 0,
|
|
"id": "mob_spawner",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "stairsWood",
|
|
"meta": 0,
|
|
"id": "oak_stairs",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "chest",
|
|
"meta": 0,
|
|
"id": "chest",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "oreDiamond",
|
|
"meta": 0,
|
|
"id": "diamond_ore",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "blockDiamond",
|
|
"meta": 0,
|
|
"id": "diamond_block",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "workbench",
|
|
"meta": 0,
|
|
"id": "crafting_table",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "farmland",
|
|
"meta": 0,
|
|
"id": "farmland",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "furnace",
|
|
"meta": 0,
|
|
"id": "furnace",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "furnace",
|
|
"meta": 0,
|
|
"id": "lit_furnace",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "ladder",
|
|
"meta": 0,
|
|
"id": "ladder",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "rail",
|
|
"meta": 0,
|
|
"id": "rail",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "stairsStone",
|
|
"meta": 0,
|
|
"id": "stone_stairs",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "lever",
|
|
"meta": 0,
|
|
"id": "lever",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "pressurePlateStone",
|
|
"meta": 0,
|
|
"id": "stone_pressure_plate",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "pressurePlateWood",
|
|
"meta": 0,
|
|
"id": "wooden_pressure_plate",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "oreRedstone",
|
|
"meta": 0,
|
|
"id": "redstone_ore",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "notGate",
|
|
"meta": 0,
|
|
"id": "redstone_torch",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "button",
|
|
"meta": 0,
|
|
"id": "stone_button",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "snow",
|
|
"meta": 0,
|
|
"id": "snow_layer",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "ice",
|
|
"meta": 0,
|
|
"id": "ice",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "snow",
|
|
"meta": 0,
|
|
"id": "snow",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "cactus",
|
|
"meta": 0,
|
|
"id": "cactus",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "clay",
|
|
"meta": 0,
|
|
"id": "clay",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "jukebox",
|
|
"meta": 0,
|
|
"id": "jukebox",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "fence",
|
|
"meta": 0,
|
|
"id": "oak_fence",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "spruceFence",
|
|
"meta": 0,
|
|
"id": "spruce_fence",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "birchFence",
|
|
"meta": 0,
|
|
"id": "birch_fence",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "jungleFence",
|
|
"meta": 0,
|
|
"id": "jungle_fence",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "darkOakFence",
|
|
"meta": 0,
|
|
"id": "dark_oak_fence",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "acaciaFence",
|
|
"meta": 0,
|
|
"id": "acacia_fence",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "pumpkin",
|
|
"meta": 0,
|
|
"id": "pumpkin",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "hellrock",
|
|
"meta": 0,
|
|
"id": "netherrack",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "hellsand",
|
|
"meta": 0,
|
|
"id": "soul_sand",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "lightgem",
|
|
"meta": 0,
|
|
"id": "glowstone",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "litpumpkin",
|
|
"meta": 0,
|
|
"id": "lit_pumpkin",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "trapdoor",
|
|
"meta": 0,
|
|
"id": "trapdoor",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "stone",
|
|
"meta": 0,
|
|
"id": "monster_egg",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "cobble",
|
|
"meta": 1,
|
|
"id": "monster_egg",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "brick",
|
|
"meta": 2,
|
|
"id": "monster_egg",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "mossybrick",
|
|
"meta": 3,
|
|
"id": "monster_egg",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "crackedbrick",
|
|
"meta": 4,
|
|
"id": "monster_egg",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "chiseledbrick",
|
|
"meta": 5,
|
|
"id": "monster_egg",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "default",
|
|
"meta": 0,
|
|
"id": "stonebrick",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "mossy",
|
|
"meta": 1,
|
|
"id": "stonebrick",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "cracked",
|
|
"meta": 2,
|
|
"id": "stonebrick",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "chiseled",
|
|
"meta": 3,
|
|
"id": "stonebrick",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "mushroom",
|
|
"meta": 0,
|
|
"id": "brown_mushroom_block",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "mushroom",
|
|
"meta": 0,
|
|
"id": "red_mushroom_block",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "fenceIron",
|
|
"meta": 0,
|
|
"id": "iron_bars",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "thinGlass",
|
|
"meta": 0,
|
|
"id": "glass_pane",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "melon",
|
|
"meta": 0,
|
|
"id": "melon_block",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "vine",
|
|
"meta": 0,
|
|
"id": "vine",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "fenceGate",
|
|
"meta": 0,
|
|
"id": "oak_fence_gate",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "spruceFenceGate",
|
|
"meta": 0,
|
|
"id": "spruce_fence_gate",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "birchFenceGate",
|
|
"meta": 0,
|
|
"id": "birch_fence_gate",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "jungleFenceGate",
|
|
"meta": 0,
|
|
"id": "jungle_fence_gate",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "darkOakFenceGate",
|
|
"meta": 0,
|
|
"id": "dark_oak_fence_gate",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "acaciaFenceGate",
|
|
"meta": 0,
|
|
"id": "acacia_fence_gate",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "stairsBrick",
|
|
"meta": 0,
|
|
"id": "brick_stairs",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "stairsStoneBrickSmooth",
|
|
"meta": 0,
|
|
"id": "stone_brick_stairs",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "mycel",
|
|
"meta": 0,
|
|
"id": "mycelium",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "waterlily",
|
|
"meta": 0,
|
|
"id": "waterlily",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "netherBrick",
|
|
"meta": 0,
|
|
"id": "nether_brick",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "netherFence",
|
|
"meta": 0,
|
|
"id": "nether_brick_fence",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "stairsNetherBrick",
|
|
"meta": 0,
|
|
"id": "nether_brick_stairs",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "enchantmentTable",
|
|
"meta": 0,
|
|
"id": "enchanting_table",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "endPortalFrame",
|
|
"meta": 0,
|
|
"id": "end_portal_frame",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "whiteStone",
|
|
"meta": 0,
|
|
"id": "end_stone",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "dragonEgg",
|
|
"meta": 0,
|
|
"id": "dragon_egg",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "redstoneLight",
|
|
"meta": 0,
|
|
"id": "redstone_lamp",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "oak",
|
|
"meta": 0,
|
|
"id": "wooden_slab",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "spruce",
|
|
"meta": 1,
|
|
"id": "wooden_slab",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "birch",
|
|
"meta": 2,
|
|
"id": "wooden_slab",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "jungle",
|
|
"meta": 3,
|
|
"id": "wooden_slab",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "acacia",
|
|
"meta": 4,
|
|
"id": "wooden_slab",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "big_oak",
|
|
"meta": 5,
|
|
"id": "wooden_slab",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "stairsSandStone",
|
|
"meta": 0,
|
|
"id": "sandstone_stairs",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "oreEmerald",
|
|
"meta": 0,
|
|
"id": "emerald_ore",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "enderChest",
|
|
"meta": 0,
|
|
"id": "ender_chest",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "tripWireSource",
|
|
"meta": 0,
|
|
"id": "tripwire_hook",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "blockEmerald",
|
|
"meta": 0,
|
|
"id": "emerald_block",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "stairsWoodSpruce",
|
|
"meta": 0,
|
|
"id": "spruce_stairs",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "stairsWoodBirch",
|
|
"meta": 0,
|
|
"id": "birch_stairs",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "stairsWoodJungle",
|
|
"meta": 0,
|
|
"id": "jungle_stairs",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "commandBlock",
|
|
"meta": 0,
|
|
"id": "command_block",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "beacon",
|
|
"meta": 0,
|
|
"id": "beacon",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "normal",
|
|
"meta": 0,
|
|
"id": "cobblestone_wall",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "mossy",
|
|
"meta": 1,
|
|
"id": "cobblestone_wall",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "button",
|
|
"meta": 0,
|
|
"id": "wooden_button",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "intact",
|
|
"meta": 0,
|
|
"id": "anvil",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "slightlyDamaged",
|
|
"meta": 1,
|
|
"id": "anvil",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "veryDamaged",
|
|
"meta": 2,
|
|
"id": "anvil",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "chestTrap",
|
|
"meta": 0,
|
|
"id": "trapped_chest",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "weightedPlate_light",
|
|
"meta": 0,
|
|
"id": "light_weighted_pressure_plate",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "weightedPlate_heavy",
|
|
"meta": 0,
|
|
"id": "heavy_weighted_pressure_plate",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "daylightDetector",
|
|
"meta": 0,
|
|
"id": "daylight_detector",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "blockRedstone",
|
|
"meta": 0,
|
|
"id": "redstone_block",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "netherquartz",
|
|
"meta": 0,
|
|
"id": "quartz_ore",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "hopper",
|
|
"meta": 0,
|
|
"id": "hopper",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "default",
|
|
"meta": 0,
|
|
"id": "quartz_block",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "chiseled",
|
|
"meta": 1,
|
|
"id": "quartz_block",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "lines",
|
|
"meta": 2,
|
|
"id": "quartz_block",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "stairsQuartz",
|
|
"meta": 0,
|
|
"id": "quartz_stairs",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "activatorRail",
|
|
"meta": 0,
|
|
"id": "activator_rail",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "dropper",
|
|
"meta": 0,
|
|
"id": "dropper",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "white",
|
|
"meta": 0,
|
|
"id": "stained_hardened_clay",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "orange",
|
|
"meta": 1,
|
|
"id": "stained_hardened_clay",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "magenta",
|
|
"meta": 2,
|
|
"id": "stained_hardened_clay",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "lightBlue",
|
|
"meta": 3,
|
|
"id": "stained_hardened_clay",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "yellow",
|
|
"meta": 4,
|
|
"id": "stained_hardened_clay",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "lime",
|
|
"meta": 5,
|
|
"id": "stained_hardened_clay",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "pink",
|
|
"meta": 6,
|
|
"id": "stained_hardened_clay",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "gray",
|
|
"meta": 7,
|
|
"id": "stained_hardened_clay",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "silver",
|
|
"meta": 8,
|
|
"id": "stained_hardened_clay",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "cyan",
|
|
"meta": 9,
|
|
"id": "stained_hardened_clay",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "purple",
|
|
"meta": 10,
|
|
"id": "stained_hardened_clay",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "blue",
|
|
"meta": 11,
|
|
"id": "stained_hardened_clay",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "brown",
|
|
"meta": 12,
|
|
"id": "stained_hardened_clay",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "green",
|
|
"meta": 13,
|
|
"id": "stained_hardened_clay",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "red",
|
|
"meta": 14,
|
|
"id": "stained_hardened_clay",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "black",
|
|
"meta": 15,
|
|
"id": "stained_hardened_clay",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "barrier",
|
|
"meta": 0,
|
|
"id": "barrier",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "ironTrapdoor",
|
|
"meta": 0,
|
|
"id": "iron_trapdoor",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "hayBlock",
|
|
"meta": 0,
|
|
"id": "hay_block",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "white",
|
|
"meta": 0,
|
|
"id": "carpet",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "orange",
|
|
"meta": 1,
|
|
"id": "carpet",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "magenta",
|
|
"meta": 2,
|
|
"id": "carpet",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "lightBlue",
|
|
"meta": 3,
|
|
"id": "carpet",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "yellow",
|
|
"meta": 4,
|
|
"id": "carpet",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "lime",
|
|
"meta": 5,
|
|
"id": "carpet",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "pink",
|
|
"meta": 6,
|
|
"id": "carpet",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "gray",
|
|
"meta": 7,
|
|
"id": "carpet",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "silver",
|
|
"meta": 8,
|
|
"id": "carpet",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "cyan",
|
|
"meta": 9,
|
|
"id": "carpet",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "purple",
|
|
"meta": 10,
|
|
"id": "carpet",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "blue",
|
|
"meta": 11,
|
|
"id": "carpet",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "brown",
|
|
"meta": 12,
|
|
"id": "carpet",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "green",
|
|
"meta": 13,
|
|
"id": "carpet",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "red",
|
|
"meta": 14,
|
|
"id": "carpet",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "black",
|
|
"meta": 15,
|
|
"id": "carpet",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "clayHardened",
|
|
"meta": 0,
|
|
"id": "hardened_clay",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "blockCoal",
|
|
"meta": 0,
|
|
"id": "coal_block",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "icePacked",
|
|
"meta": 0,
|
|
"id": "packed_ice",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "stairsWoodAcacia",
|
|
"meta": 0,
|
|
"id": "acacia_stairs",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "stairsWoodDarkOak",
|
|
"meta": 0,
|
|
"id": "dark_oak_stairs",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "slime",
|
|
"meta": 0,
|
|
"id": "slime_block",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "sunflower",
|
|
"meta": 0,
|
|
"id": "double_plant",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "syringa",
|
|
"meta": 1,
|
|
"id": "double_plant",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "grass",
|
|
"meta": 2,
|
|
"id": "double_plant",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "fern",
|
|
"meta": 3,
|
|
"id": "double_plant",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "rose",
|
|
"meta": 4,
|
|
"id": "double_plant",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "paeonia",
|
|
"meta": 5,
|
|
"id": "double_plant",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "white",
|
|
"meta": 0,
|
|
"id": "stained_glass",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "orange",
|
|
"meta": 1,
|
|
"id": "stained_glass",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "magenta",
|
|
"meta": 2,
|
|
"id": "stained_glass",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "lightBlue",
|
|
"meta": 3,
|
|
"id": "stained_glass",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "yellow",
|
|
"meta": 4,
|
|
"id": "stained_glass",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "lime",
|
|
"meta": 5,
|
|
"id": "stained_glass",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "pink",
|
|
"meta": 6,
|
|
"id": "stained_glass",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "gray",
|
|
"meta": 7,
|
|
"id": "stained_glass",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "silver",
|
|
"meta": 8,
|
|
"id": "stained_glass",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "cyan",
|
|
"meta": 9,
|
|
"id": "stained_glass",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "purple",
|
|
"meta": 10,
|
|
"id": "stained_glass",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "blue",
|
|
"meta": 11,
|
|
"id": "stained_glass",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "brown",
|
|
"meta": 12,
|
|
"id": "stained_glass",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "green",
|
|
"meta": 13,
|
|
"id": "stained_glass",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "red",
|
|
"meta": 14,
|
|
"id": "stained_glass",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "black",
|
|
"meta": 15,
|
|
"id": "stained_glass",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "white",
|
|
"meta": 0,
|
|
"id": "stained_glass_pane",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "orange",
|
|
"meta": 1,
|
|
"id": "stained_glass_pane",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "magenta",
|
|
"meta": 2,
|
|
"id": "stained_glass_pane",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "lightBlue",
|
|
"meta": 3,
|
|
"id": "stained_glass_pane",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "yellow",
|
|
"meta": 4,
|
|
"id": "stained_glass_pane",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "lime",
|
|
"meta": 5,
|
|
"id": "stained_glass_pane",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "pink",
|
|
"meta": 6,
|
|
"id": "stained_glass_pane",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "gray",
|
|
"meta": 7,
|
|
"id": "stained_glass_pane",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "silver",
|
|
"meta": 8,
|
|
"id": "stained_glass_pane",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "cyan",
|
|
"meta": 9,
|
|
"id": "stained_glass_pane",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "purple",
|
|
"meta": 10,
|
|
"id": "stained_glass_pane",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "blue",
|
|
"meta": 11,
|
|
"id": "stained_glass_pane",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "brown",
|
|
"meta": 12,
|
|
"id": "stained_glass_pane",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "green",
|
|
"meta": 13,
|
|
"id": "stained_glass_pane",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "red",
|
|
"meta": 14,
|
|
"id": "stained_glass_pane",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "black",
|
|
"meta": 15,
|
|
"id": "stained_glass_pane",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "rough",
|
|
"meta": 0,
|
|
"id": "prismarine",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "bricks",
|
|
"meta": 1,
|
|
"id": "prismarine",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "dark",
|
|
"meta": 2,
|
|
"id": "prismarine",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "seaLantern",
|
|
"meta": 0,
|
|
"id": "sea_lantern",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "default",
|
|
"meta": 0,
|
|
"id": "red_sandstone",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "chiseled",
|
|
"meta": 1,
|
|
"id": "red_sandstone",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "smooth",
|
|
"meta": 2,
|
|
"id": "red_sandstone",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "stairsRedSandStone",
|
|
"meta": 0,
|
|
"id": "red_sandstone_stairs",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"name": "red_sandstone",
|
|
"meta": 0,
|
|
"id": "stone_slab2",
|
|
"type": "block"
|
|
}
|
|
];
|
|
const IMAGE_HOST = [
|
|
"https://images-for-eaglerforge-builder.vercel.app/images/",
|
|
"https://21cookej.github.io/Images-For-Eaglerforge-Builder/images/",
|
|
"https://minecraft.wiki/images/"
|
|
][0];
|
|
const animatedList = ["command_block", "prismarine", "sea_lantern", "written_book", "compass", "clock", "Bottle_o%27_Enchanting", "nether_star", "enchanted_book"];
|
|
const emptyTexture = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=";
|
|
const missingTexture = IMAGE_HOST + "Missing_Texture_JE4.png";
|
|
var itemToRep = (item) => (item.type === "block") ? "block/" + item.id + "@" + item.meta : "item/" + item.id;
|
|
function blockL10NToId(thisSentence, noReverse) {
|
|
function camelToSnake(str) {
|
|
return str.replace(/([a-z])([A-Z])/g, '$1_$2').toLowerCase();
|
|
}
|
|
function reverseString(str) {
|
|
return str.split('_').reverse().join('_');
|
|
}
|
|
let snakeCase = camelToSnake(thisSentence);
|
|
let reversedSnakeCase = noReverse ? snakeCase : reverseString(snakeCase);
|
|
return reversedSnakeCase;
|
|
}
|
|
function getImageLocationItem(item, display) {
|
|
if ((item.name === "missingno") && !display) {
|
|
var tex = state.nodes.find(x => x.type === "item" && x.tags.id == item.id)?.tags?.texture;
|
|
if (!tex || tex.startsWith("efb::")) {
|
|
return "missingno";
|
|
}
|
|
return tex;
|
|
}
|
|
item = Object.assign({}, item);
|
|
item.id = item.id.replace("record", "music_disc");
|
|
item.id = item.id.replace("banner", "white_banner");
|
|
item.id = item.id.replace("command_block_minecart", "minecart_with_command_block");
|
|
item.id = item.id.replace("chest_minecart", "minecart_with_chest");
|
|
item.id = item.id.replace("furnace_minecart", "minecart_with_furnace");
|
|
item.id = item.id.replace("tnt_minecart", "minecart_with_TNT");
|
|
item.id = item.id.replace("hopper_minecart", "minecart_with_hopper");
|
|
item.id = item.id.replace("writable_book", "book_and_quill");
|
|
item.id = item.id.replace("reeds", "sugar_cane");
|
|
item.id = item.id.replace("bed", "red_bed");
|
|
item.id = !display ? item.id.replace("dye", "lime_dye") : item.id;
|
|
item.id = !display ? item.id.replace("spawn_egg", "blank_spawn_egg") : item.id;
|
|
item.id = item.id.replace("repeater", "redstone_repeater");
|
|
item.id = item.id.replace("comparator", "redstone_comparator");
|
|
item.id = item.id.replace("slime_ball", "slimeball");
|
|
item.id = item.id.replace("sign", "oak_sign");
|
|
item.id = (item.id === "porkchop") ? "raw_porkchop" : item.id;
|
|
item.id = (item.id === "fish") ? "raw_fish" : item.id;
|
|
item.id = (item.id === "map") ? "empty_map" : item.id;
|
|
item.id = (item.id === "filled_map") ? "map" : item.id;
|
|
item.id = (item.id === "mutton") ? "raw_mutton" : item.id;
|
|
item.id = (item.id === "beef") ? "raw_beef" : item.id;
|
|
item.id = (item.id === "rabbit") ? "raw_rabbit" : item.id;
|
|
item.id = (item.id === "rabbit_foot") ? "rabbit%27s_foot" : item.id;
|
|
item.id = (item.id === "experience_bottle") ? "Bottle_o%27_Enchanting" : item.id;
|
|
item.id = (item.id === "chicken") ? "raw_chicken" : item.id;
|
|
item.id = (item.id === "ender_eye") ? "eye_of_ender" : item.id;
|
|
item.id = (item.id === "skull") ? "skeleton_skull" : item.id;
|
|
item.id = (item.id === "speckled_melon") ? "glistering_melon_slice" : item.id;
|
|
item.id = (item.id === "firework_charge") ? "firework_star" : item.id;
|
|
item.id = (item.id === "fireworks") ? "firework_rocket" : item.id;
|
|
item.id = (!display) ? item.id.replace("potionitem", "water_bottle") : item.id.replace("potionitem", "potion");
|
|
item.id = item.id.replace("leather_helmet", "leather_cap");
|
|
item.id = item.id.replace("leather_chestplate", "leather_tunic");
|
|
item.id = item.id.replace("leather_leggings", "leather_pants");
|
|
item.id = (item.id === "netherbrick") ? "nether_brick" : item.id;
|
|
item.id = (item.id === "quartz") ? "nether_quartz" : item.id;
|
|
return item.id;
|
|
}
|
|
function getImageLocationBlock(block, display) {
|
|
if ((block.name === "missingno") && !display) {
|
|
var tex = state.nodes.find(x => x.type === "block_advanced" && x.tags.id == block.id)?.tags?.texture;
|
|
if (!tex || tex.startsWith("efb::")) {
|
|
return "missingno";
|
|
}
|
|
return tex;
|
|
}
|
|
block = Object.assign({}, block);
|
|
block.name = block.name.replaceAll("big_oak", "dark_oak");
|
|
block.name = block.name.replaceAll("houstonia", "azure_bluet");
|
|
block.name = block.name.replaceAll("silver", "light_gray");
|
|
block.id = block.id.replaceAll("log2", "log");
|
|
block.id = block.id.replaceAll("leaves2", "leaves");
|
|
block.id = block.id.replaceAll("lapis", "lapis_lazuli");
|
|
const blockOfBanlist = ["brown_mushroom_block", "red_mushroom_block", "command_block", "slime_block"];
|
|
switch (block.id) {
|
|
case "stone":
|
|
return blockL10NToId(block.name).replaceAll("smooth", "polished");
|
|
case "dirt":
|
|
if (block.name === "podzol") {
|
|
return block.name;
|
|
}
|
|
return ((block.meta === 0) ? "" : block.name + "_") + "dirt";
|
|
case "planks":
|
|
return block.name + "_planks";
|
|
case "cobblestone_wall":
|
|
return ((block.name === "normal") ? block.id : block.name + "_" + block.id);
|
|
case "sapling":
|
|
return block.name + "_" + block.id;
|
|
case "sand":
|
|
return ((block.name === "default") ? block.id : block.name + "_" + block.id);
|
|
case "tallgrass":
|
|
return ((block.name === "fern") ? "fern" : "tall_grass");
|
|
case "double_plant":
|
|
block.name = block.name.replace("rose", "rose_bush");
|
|
block.name = block.name.replace("syringa", "lilac");
|
|
block.name = block.name.replace("paeonia", "peony");
|
|
block.name = block.name.replace("grass", "tall_grass");
|
|
if (display) {
|
|
block.name = block.name.replace("fern", "tall_fern");
|
|
}
|
|
return block.name;
|
|
case "log":
|
|
return block.name + "_" + block.id;
|
|
case "leaves":
|
|
return block.name + "_" + block.id;
|
|
case "grass":
|
|
return block.id + "_block";
|
|
case "noteblock":
|
|
return "note_block";
|
|
case "prismarine":
|
|
if (block.name === "dark") {
|
|
return "dark_prismarine"
|
|
}
|
|
if (block.name === "bricks") {
|
|
return "prismarine_bricks"
|
|
}
|
|
return "prismarine";
|
|
case "trapdoor":
|
|
return "oak_" + block.id;
|
|
case "wooden_slab":
|
|
return block.name + "_slab";
|
|
case "golden_rail":
|
|
return "powered_rail";
|
|
case "wooden_button":
|
|
return "oak_button";
|
|
case "quartz_ore":
|
|
return "nether_quartz_ore";
|
|
case "web":
|
|
return "cobweb";
|
|
case "melon_block":
|
|
return "melon";
|
|
case "vine":
|
|
return "vines";
|
|
case "hay_block":
|
|
return "hay_bale";
|
|
case "waterlily":
|
|
return "lily_pad";
|
|
case "deadbush":
|
|
return "dead_bush";
|
|
case "snow":
|
|
return "snow_block";
|
|
case "snow_layer":
|
|
return "snow";
|
|
case "mob_spawner":
|
|
return "monster_spawner";
|
|
case "brick_block":
|
|
return "bricks";
|
|
case "tnt":
|
|
return block.id.toUpperCase();
|
|
case "wool":
|
|
return blockL10NToId(block.name, true) + "_" + block.id;
|
|
case "stained_glass_pane":
|
|
return blockL10NToId(block.name, true) + "_" + block.id;
|
|
case "stained_glass":
|
|
return blockL10NToId(block.name, true) + "_" + block.id;
|
|
case "stained_hardened_clay":
|
|
return blockL10NToId(block.name, true) + "_terracotta";
|
|
case "hardened_clay":
|
|
return "terracotta";
|
|
case "carpet":
|
|
return blockL10NToId(block.name, true) + "_" + block.id;
|
|
case "yellow_flower":
|
|
return blockL10NToId(block.name, true);
|
|
case "lit_furnace":
|
|
return "furnace";
|
|
case "lit_pumpkin":
|
|
return "jack_o%27Lantern";
|
|
case "red_flower":
|
|
return blockL10NToId(block.name, !block.name.includes("tulip"));
|
|
case "stone_slab":
|
|
block.name = block.name.replace("cobble", "cobblestone");
|
|
block.name = block.name.replace("sand", "sandstone");
|
|
block.name = block.name.replace("smoothStone", "stone");
|
|
return blockL10NToId(block.name, true) + "_slab";
|
|
case "monster_egg":
|
|
block.name = block.name.replace("cobble", "cobblestone");
|
|
block.name = block.name.replace("brick", "bricks");
|
|
block.name = block.name.replace("mossy", "mossy_stone_");
|
|
block.name = block.name.replace("cracked", "cracked_stone_");
|
|
block.name = block.name.replace("chiseled", "chiseled_stone_");
|
|
|
|
return (display ? "infested_" : "") + blockL10NToId(block.name, true);
|
|
case "stonebrick":
|
|
return ((block.name === "default") ? "" : blockL10NToId(block.name, true) + "_") + "stone_bricks"
|
|
case "stone_slab2":
|
|
block.name = block.name.replace("cobble", "cobblestone");
|
|
block.name = block.name.replace("smoothStone", "stone");
|
|
return blockL10NToId(block.name, true) + "_slab";
|
|
default:
|
|
if (block.id.endsWith("_block") && !blockOfBanlist.includes(block.id)) {
|
|
return "block_of_" + block.id.replaceAll("_block", "");
|
|
}
|
|
return block.id;
|
|
}
|
|
}
|
|
function getImageLocation(id) {
|
|
if (id.startsWith("data:")) {
|
|
return id;
|
|
}
|
|
if (id === "item/air") {
|
|
return emptyTexture;
|
|
}
|
|
if (id === "missingno") {
|
|
return missingTexture;
|
|
}
|
|
return `${IMAGE_HOST}Invicon_${id.split('_').map(word => word.charAt(0).toUpperCase() + word.slice(1)).join('_').replaceAll("Of", "of").replaceAll("O%27", "o%27").replaceAll("With", "with").replace("_And_", "_and_").replace("On_A", "on_a")}.${animatedList.includes(id) ? "gif" : "png"}`;
|
|
}
|
|
function makeItemSelector(selected, useBlocks, triggerFn, options) {
|
|
options ||= {};
|
|
var conf = {
|
|
popoverMethod: "fixed",
|
|
width: "80vw",
|
|
height: "80vh",
|
|
top: "10vh",
|
|
left: "10vw",
|
|
noMeta: false
|
|
}
|
|
Object.assign(conf, options);
|
|
const list = (useBlocks ?
|
|
blocks
|
|
.concat()
|
|
.filter(block => {
|
|
return (!conf.noMeta) || (block.meta === 0);
|
|
})
|
|
: items.concat(
|
|
blocks
|
|
.filter(block => {
|
|
return (!conf.noMeta) || (block.meta === 0);
|
|
})
|
|
))
|
|
.bake();
|
|
|
|
list.dynamicConcat("block_advanced", "id", (x) => {
|
|
return { id: x, type: "block", meta: 0, name: "missingno" }
|
|
});
|
|
|
|
if (!useBlocks) {
|
|
list.dynamicConcat("item", "id", (x) => {
|
|
return { id: x, type: "item", name: "missingno" }
|
|
});
|
|
}
|
|
|
|
list.calculate();
|
|
|
|
if (!list.map(itemToRep).includes(selected)) {
|
|
selected = "item/air";
|
|
setTimeout(triggerFn, 0);
|
|
}
|
|
|
|
var div = document.createElement("div");
|
|
div._useInline = true;
|
|
div.style.width = div.style.height = "4rem";
|
|
div.style.border = "1px solid var(--col)";
|
|
div.style.display = "inline-block";
|
|
div.style.overflow = "hidden";
|
|
div.style.backgroundImage = `url(${getImageLocation(selected)})`;
|
|
div.style.backgroundRepeat = "no-repeat";
|
|
div.style.backgroundSize = "cover";
|
|
div.style.imageRendering = "pixelated";
|
|
div.classList.add("dynamic_itemsel");
|
|
div.style.marginRight = "4px";
|
|
div.style.borderRadius = "4px";
|
|
div.value = selected;
|
|
|
|
var searchBox = document.createElement("div");
|
|
searchBox.style.position = conf.popoverMethod;
|
|
searchBox.style.backgroundColor = "var(--background)";
|
|
searchBox.style.border = "1px solid var(--col)";
|
|
searchBox.style.borderRadius = "6px";
|
|
searchBox.style.width = conf.width;
|
|
searchBox.style.height = conf.height;
|
|
searchBox.style.top = conf.top;
|
|
searchBox.style.left = conf.left;
|
|
searchBox.style.zIndex = "255";
|
|
searchBox.style.display = "none";
|
|
searchBox.style.boxShadow = "rgba(0,0,0,0.5) 0px 0px 16px 8px";
|
|
searchBox.style.overflowY = "scroll";
|
|
|
|
var closeButton = document.createElement("button");
|
|
closeButton.innerText = "Close";
|
|
closeButton.addEventListener("click", (e) => {
|
|
searchBox.style.display = "none";
|
|
e.stopPropagation();
|
|
});
|
|
|
|
|
|
document.addEventListener("keydown", (e) => {
|
|
if (e.key === "Escape") {
|
|
searchBox.style.display = "none";
|
|
}
|
|
});
|
|
|
|
searchBox.appendChild(closeButton);
|
|
searchBox.appendChild(document.createElement("br"));
|
|
|
|
var searchBar = document.createElement("input");
|
|
searchBar.type = "search";
|
|
searchBar.addEventListener("input", (e) => {
|
|
e.stopPropagation();
|
|
var lookFor = searchBar.value.toLowerCase().trim().replaceAll(" ", "_");
|
|
searchBox.querySelectorAll(".itemoption").forEach(opt => {
|
|
if (opt.getAttribute("data-item").toLowerCase().includes(lookFor) || opt.querySelector("label").innerText.toLowerCase().includes(lookFor)) {
|
|
opt.style.display = "inline-block";
|
|
} else {
|
|
opt.style.display = "none";
|
|
}
|
|
});
|
|
});
|
|
|
|
|
|
searchBox.appendChild(searchBar);
|
|
searchBox.appendChild(document.createElement("br"));
|
|
div.recalculateList = function () {
|
|
searchBox.querySelectorAll(".itemoption").forEach(x => x.remove());
|
|
list.calculate();
|
|
list.forEach((item, idx) => {
|
|
var div2 = document.createElement("div");
|
|
div2.setAttribute("data-item", (item.type === "block") ? getImageLocationBlock(item, true) : getImageLocationItem(item, true));
|
|
div2.classList.add("itemoption");
|
|
div2.style.width = div2.style.height = "4rem";
|
|
div2.style.border = "1px solid var(--col)";
|
|
div2.style.marginRight = "4px";
|
|
div2.style.backgroundImage = `url(${getImageLocation((item.type === "block") ? getImageLocationBlock(item) : getImageLocationItem(item))})`;
|
|
div2.style.backgroundRepeat = "no-repeat";
|
|
div2.style.backgroundSize = "cover";
|
|
div2.style.imageRendering = "pixelated";
|
|
div2.style.display = "inline-block";
|
|
div2.style.overflow = "hidden";
|
|
if (itemToRep(item) === selected) {
|
|
div.style.backgroundImage = `url(${getImageLocation((item.type === "block") ? getImageLocationBlock(item) : getImageLocationItem(item))})`;
|
|
div2.setAttribute("data-sel", "yes");
|
|
div2.style.backgroundColor = "rgba(255,255,255,0.2)";
|
|
div2.style.transform = "scale(1.2)";
|
|
div2.style.zIndex = 1;
|
|
div.value = itemToRep(item);
|
|
}
|
|
div2.addEventListener("click", (e) => {
|
|
e.stopPropagation();
|
|
searchBox.querySelectorAll(".itemoption[data-sel=yes]").forEach(x => {
|
|
x.setAttribute("data-sel", "no");
|
|
x.style.border = "1px solid var(--col)";
|
|
x.style.backgroundColor = "";
|
|
x.style.transform = "";
|
|
x.style.zIndex = 0;
|
|
});
|
|
div2.setAttribute("data-sel", "yes");
|
|
div2.style.transform = "scale(1.2)";
|
|
div2.style.zIndex = 1;
|
|
div2.style.backgroundColor = "rgba(255,255,255,0.2)";
|
|
div.value = itemToRep(item);
|
|
selected = div.value;
|
|
triggerFn();
|
|
div.style.backgroundImage = `url(${getImageLocation((item.type === "block") ? getImageLocationBlock(item) : getImageLocationItem(item))})`;
|
|
});
|
|
var label = document.createElement("label");
|
|
label.innerText = (item.type === "block") ? getImageLocationBlock(item, true).replaceAll("%27", "'") : getImageLocationItem(item, true);
|
|
if (conf.noMeta) {
|
|
label.innerText = item.id;
|
|
}
|
|
label.style.wordBreak = "break-all";
|
|
label.style.display = "inline-block";
|
|
label.style.width = "4rem";
|
|
label.style.backgroundColor = "rgba(0,0,0,0.6)";
|
|
label.style.boxShadow = "rgba(0,0,0,0.6) 0px 0px 5px 5px";
|
|
div2.appendChild(label);
|
|
searchBox.appendChild(div2);
|
|
});
|
|
}
|
|
div.recalculateList();
|
|
div.addEventListener("click", () => {
|
|
searchBox.style.display = "block";
|
|
});
|
|
div.appendChild(searchBox);
|
|
["pointerdown", "scroll", "wheel"].forEach(x => div.addEventListener(x, (e) => {
|
|
e.stopPropagation();
|
|
}, true));
|
|
|
|
return div;
|
|
}
|