-
Notifications
You must be signed in to change notification settings - Fork 0
Custom Datapack Integration
AnOpenSauceDev edited this page Mar 27, 2024
·
1 revision
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.