How to add custom tag to doors, and how to detect it?

Started by OneHana on

Topic category: Help with modding (Java Edition)

Last seen on 02:22, 23. Nov 2023
Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to add custom tag to doors, and how to detect it?

I want to add "locked" tag to doors

and after right clicked, it shows lockpicking GUI

 

but I'm so confused about which type of tag I need and how to add it to doors?

 

I made this procedure, and wrote command   /give @s oak_door{locked:1}

it displays only "tags not found" when I right click it.

I wonder that it's because the door hasn't the correct tag, or my procedure is wrong

Last seen on 02:22, 23. Nov 2023
Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I solved it in different way
Mon, 01/16/2023 - 22:04

I solved it in different way