Started by
Stepanal
on
Topic category: Help with Minecraft modding (Java Edition)
I wrote a condition:
if (in xyz campfire) and (get the logical nbt tag of the block in xyz "lit") is True, then:
action...
my action is never executed. maybe I should write "minecraft:lit"?
NBT tags are usually capitalized, so try "Lit".
Thanks, but when I capitalized the tag, nothing changed☹️. Do you know what else could be wrong?
I don't know if you ever found this out, but I think the campfire being lit isn't an NBT. I believe it's a Block State. You can see that on the Minecraft wiki. Also, you can do a block called "Is [blank] the same block state as: [blank]. I'm trying to do pretty much the same thing you are, so in the first blank, I put "Get block at X, -1, Z".
Hello i've try by my side and it work for me with
[if: get boolean property "lit" of (block pos) = true]
i hope it can help