what is the nbt of a lit campfire?

Started by Stepanal on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
what is the nbt of a lit campfire?

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"?

Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
NBT tags are usually…
Sun, 02/05/2023 - 16:33

NBT tags are usually capitalized, so try "Lit".

 

Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks, but when I…
Wed, 02/08/2023 - 09:45

Thanks, but when I capitalized the tag, nothing changed☹️. Do you know what else could be wrong?

Joined Dec 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I don't know if you ever…
Mon, 08/05/2024 - 17:47

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". 

Joined Mar 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hello i've try by my side…
Mon, 09/23/2024 - 20:27

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