what is the nbt of a lit campfire?

Started by Stepanal on

Topic category: Help with Minecraft modding (Java Edition)

Active 9 months ago
Joined Jan 2023
Points:
319

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 10
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"?

Active 1 year ago
Joined Aug 2020
Points:
615

User statistics:

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

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

 

Active 9 months ago
Joined Jan 2023
Points:
319

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 10
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?

Active 3 months ago
Joined Dec 2018
Points:
982

User statistics:

  • Modifications: 1
  • Forum topics: 45
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 150
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". 

Active 5 months ago
Joined Mar 2019
Points:
720

User statistics:

  • Modifications: 2
  • Forum topics: 5
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 19
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