CraftTweaker

CraftTweaker

151M Downloads

Tag cannot be null

WenXin20 opened this issue ยท 3 comments

commented

Issue Description:

When trying to add a block to the tag small_flowers, I get an error that says "Tag cannot be null!"
I may also be missing something from the file that I'm unaware of. I tried to use what was suggested in the previous issue, but no luck.

What happens:

  • Logging into a world produces a "Tag cannot be null!" error with the provided script.

What you expected to happen:

  • It should instead register the block under the tag small_flowers

Script used:

crafttweaker.log file::


Affected Versions:

  • Minecraft: v1.14.4
  • Forge: v28.1.107
  • Crafttweaker: v5.0.1.150
  • Using a server: No

Your most recent log file where the issue was present:

Full Log (Crash report at the end is unrelated to this mod)
Error for this is located at [18:54:33]
Error at the beginning of the log at [18:31:14] might also be related.

commented

Thanks, I'll try that.

commented

Afaik, you first need to create the tag.
Try something like

<tag:minecraft:small_plants>.createBlockTag();
<tag:minecraft:small_plants>.addBlocks(<blockstate:mubble:fire_flower>);
commented

I assume what kindlich said fixed this (because that is what I would have said)