Skip to content

Commit

Permalink
add requiresTool (boolean) to blocks (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
DasBabyPixel authored Aug 20, 2024
1 parent 100e30d commit 39aa498
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ private void writeState(ResourceLocation location, Block block, BlockState block
appendState(blockJson, state, "pushReaction", blockState.getPistonPushReaction().name(), String.class);
appendState(blockJson, state, "mapColorId", blockState.getMapColor(EmptyBlockGetter.INSTANCE, BlockPos.ZERO).id, int.class);
appendState(blockJson, state, "occludes", blockState.canOcclude(), boolean.class);
appendState(blockJson, state, "requiresTool", blockState.requiresCorrectToolForDrops(), boolean.class);

appendState(blockJson, state, "blocksMotion", blockState.blocksMotion(), boolean.class);
appendState(blockJson, state, "flammable", isFlammable(blockState), boolean.class);
Expand Down

0 comments on commit 39aa498

Please sign in to comment.