How to make a Better Tag System!

Started by mankind12356 on

Topic category: Mod showcase and discussion

Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make a Better Tag System!
Tue, 12/17/2024 - 03:20 (edited)

So just today i have been figuring out how to make a tag registry system that allows me to use external mod components for versions of MCreator that uses a different tag system compared to older versions, 

Overall I found it annoying that I wasn't able to update the files for tags myself like in 2022.2 without it regenerating, so I found a fix.

I don't know if the "get registry name of" block is from a plugin but if it is someone please send a link here

what I did was I use a global variable for my case called "hammer" as a string and as world_map

https://imgur.com/gallery/mcreator1-Jqkful0

then I used a player update tick variable and set that variable to a string of multiple items in a list with what I want like "modname:wood_hammer, modname:stone_hammer" and then if I wanted to call on if the item lets say in the main hand of the player was that then it would run the procedure

https://imgur.com/gallery/mcreator-cF938vb

I hope this helps anyone with the same issue as me and anyone who uses this can make great creations!

Edited by mankind12356 on Tue, 12/17/2024 - 03:20