-
-
Notifications
You must be signed in to change notification settings - Fork 222
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New blocks data #83
Comments
What about a flag that indicates if a block has related Block Entity Data? |
Whether or not a pickaxe can break a block would be nice data. Currently I have it stored in a big list and it's super ugly. Gamepedia has some data on it, though I think the hardness is already in minecraft_data. Really I'm just looking for a way to condense this: @Getter private static final List<String> level0Stones = Arrays
.asList(new String[] { "stone", "cobblestone", "double_stone_slab", "stone_slab", "mossy_cobblestone",
"stone_stairs", "monster_egg", "cobblestone_wall", "sandstone", "stone_pressure_plate", "glowstone",
"stonebrick", "stone_brick_stairs", "sandstone_stairs", "cobblestone_wall", "redstone_block",
"quartz_block", "red_sandstone", "red_sandstone_stairs", "double_stone_slab2", "stone_slab2" });
@Getter private static final List<String> level1Stones = Arrays
.asList(new String[] { "iron_ore", "iron_block", "lapis_ore", "lapis_block" });
@Getter private static final List<String> level2Stones = Arrays.asList(new String[] { "diamond_ore",
"diamond_block", "gold_ore", "gold_block", "redstone_ore", "lit_redstone_ore" });
@Getter private static final List<String> level3Stones = Arrays.asList(new String[] { "obsidian" });
@Getter private static final List<String> level0Picks = Arrays.asList(
new String[] { "wood_pickaxe", "gold_pickaxe", "stone_pickaxe", "iron_pickaxe", "diamond_pickaxe" });
@Getter private static final List<String> level1Picks = Arrays
.asList(new String[] { "stone_pickaxe", "iron_pickaxe", "diamond_pickaxe" });
@Getter private static final List<String> level2Picks = Arrays
.asList(new String[] { "iron_pickaxe", "diamond_pickaxe" });
@Getter private static final List<String> level3Picks = Arrays.asList(new String[] { "diamond_pickaxe" }); This has each stone (or stonelike block) organized by "pick level". Each pick level contains what picks can break the blocks in that level. Putting this kind of data in minecraft_data would help everyone (or maybe just me) a lot. |
@phase there is the Example: {
"id": 1,
"displayName": "Stone",
"name": "stone",
"hardness": 1.5,
"harvestTools": {
"257": true,
"270": true,
"274": true,
"278": true,
"285": true
},
"...": "..."
}, |
No. harvestTools is not a required field for blocks |
see PrismarineJS/node-minecraft-data#3
Related to #52
The text was updated successfully, but these errors were encountered: