Started by
saltmemes
on
Topic category: Help with Minecraft modding (Java Edition)
Im trying to make a sword that heals you on use and its working perfectly (as well as the cooldown) but when i right-click other items they also get a cooldown
Edited by saltmemes on Tue, 12/28/2021 - 08:20
When making a procedure. Type "cooldown" in the search at the top.
I have already made this
It functions perfectly except that any other item (ex. raw chicken) also have a cooldown now
seems that i cant actually upload images from pasting/files so here it is
apparently the effects also work on every single item, and everything now does what the sword was intended to do
wait no, they only apply to items that can be actually used with right-click e.g. food
OH GOD I FIXED IT, I JUST HAD TO GET RID OF THE GLOBAL TRIGGER
You need to put the procedure in the item settings/triggers. Not in the "when player uses item". That would be for any item. Click your item and look for triggers at the bottom. Try placing it in the "When entity swings item".
Chew