The new Light Block added in this snapshot is not added to the Dragon_Immune or Wither_Immune json or BlockTagProvider. Making them destroyable.
Attachments
Comments 14
Relates to MC-198022.
I am able to confirm this behavior in 21w43a. Here are some extra details regarding this problem.
The Bug:
Light blocks aren't a part of the #minecraft:dragon_immune or #minecraft:wither_immune tags.
Steps to Reproduce:
Enable the F3 debug menu and place down a light block.
Look at the light block you just placed, and take note of whether or not the F3 debug menu states that it's a part of the #minecraft:dragon_immune or #minecraft:wither_immune tags.
Observed Behavior:
Light blocks aren't a part of the #minecraft:dragon_immune or #minecraft:wither_immune tags.
Expected Behavior:
Light blocks would be a part of the #minecraft:dragon_immune or #minecraft:wither_immune tags.
I can confirm this behavior in 1.18 Release Candidate 3.
Here's a potential fix regarding this issue. The following is based on a decompiled version of Minecraft 1.17.1 using MCP-Reborn.
Potential Fix:
In the net.minecraft.data.tags.BlockTagsProvider.java
class, simply adding Blocks.LIGHT
within the DRAGON_IMMUNE
and WITHER_IMMUNE
block tags should resolve this problem. The correct lines of code within this particular class should look something like the following:
net.minecraft.data.tags.BlockTagsProvider.java
public class BlockTagsProvider extends TagsProvider<Block> {
public BlockTagsProvider(DataGenerator p_126511_) { super(p_126511_, Registry.BLOCK); }
protected void addTags() {
...
this.tag(BlockTags.DRAGON_IMMUNE).add(Blocks.BARRIER, Blocks.BEDROCK, Blocks.END_PORTAL, Blocks.END_PORTAL_FRAME, Blocks.END_GATEWAY, Blocks.COMMAND_BLOCK, Blocks.REPEATING_COMMAND_BLOCK, Blocks.CHAIN_COMMAND_BLOCK, Blocks.STRUCTURE_BLOCK, Blocks.JIGSAW, Blocks.MOVING_PISTON, Blocks.OBSIDIAN, Blocks.CRYING_OBSIDIAN, Blocks.END_STONE, Blocks.IRON_BARS, Blocks.RESPAWN_ANCHOR, Blocks.LIGHT);
this.tag(BlockTags.WITHER_IMMUNE).add(Blocks.BARRIER, Blocks.BEDROCK, Blocks.END_PORTAL, Blocks.END_PORTAL_FRAME, Blocks.END_GATEWAY, Blocks.COMMAND_BLOCK, Blocks.REPEATING_COMMAND_BLOCK, Blocks.CHAIN_COMMAND_BLOCK, Blocks.STRUCTURE_BLOCK, Blocks.JIGSAW, Blocks.MOVING_PISTON, Blocks.LIGHT);
...
Can confirm