Started by
Achylles
on
Topic category: Help with modding (Java Edition)
Hello,
I´m using "Get NBT logic tag" to identiy if my doors are open, hinge and facing, wich is no Problem with the doors I made up without the "door" base.
If I try to identify the original Minecraft doors, it shows always the same...
I tried with ´Get NBT tag "open" of block at x: x, y: y-2, z: z if it has tile entity´ from a Block directly on Top of the door.
I wonder why I can´t read the door tag.
Did I misunderstand, using "open" as name?
Testing was in Mcreator Environment.
If I´m sugesting right that the name is false, what are the right names for the different door tags?
Or what is my mistake?
Edited by Achylles on Sun, 10/25/2020 - 22:23
Correction:
It did not work with the doors made with the "door" base.
It only worked with doors I made, wich did not use the "Door" base.
With the regular Minecraft doors it gives data I don´t understand.
If I ask for a Number instead of Boolean, it gives "-1.0".
With my own doors (not with "door block") it says "1.0" or "0.0" wich is "true" or "false" asked as Boolean.
I don´t know, where the Mistake is...
What is the precise "Name" I should use inside the "Get NBT"-function?
I used "open", "hinge" and "powered", but nothing worked.
I don't think that's NBT data. It is a block property.
If it´s a block property, how can I get the open and hinge state?