Posted March 20, 20223 yr How do I add items to json tags based on the item's registry name? I am attempting to categorize all possible weapons based on name, including modded ones, by tagging them based on keywords in their registry (Sword is "Sword", Pickaxe is "Pick", Axe is "Axe" but excludes "Pick", etc.)
March 20, 20223 yr Author Thank you for your help, I'd tried asking my girlfriend for help but she's only done coding for 1.12, so she was completely stumped.
March 21, 20223 yr Author Hey so, it did not work. I need the tags to be generated at runtime, so that it adds all registered items with keywords to the respective tags.
March 21, 20223 yr Author Trying to limit players to using a weapon type of their choice (or having their chosen weapon type simply gain a power boost based on config), and I wanted to add items to json tags based on registry name so that it would be compatible with every mod that adds weapons with those keywords, without the need to manually add things to the json tags.
March 21, 20223 yr Author Coming back to this, I was mostly wanting to use json tags so that if a mod added a weapon that didn't fit the keywords- for example, a spear simply called 'Godkiller' or something- it could be added in easily.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.