You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AnOpenSauceDev edited this page Mar 27, 2024
·
1 revision
Integrating Datapacks with Armour Weight
You've made a weight definition with your datapack, but you decide that you want to also run a function when that weight definition is called. If you want to do that, place within your datapack directory /armourweight/functions/item_name.mcfunction. This will be called as the player every tick that the item is equipped. I assume you want to also grab the player's armour weight too, which you'll need to run /CalculateWeight and pass it to a scoreboard to store. Once you've done that, you should be able write all sorts of interactions!
If you crave more, use the Java API!.. Anyone? No? I'll see myself out.