I have a script that activates when an item with a certain tag is used (as per my last question), however I would like to apply an additional effect when the player has finished using the item, and not just when they right click with the item activated.
What I have so far is...
ItemEvents.rightClicked(event => {
const item = event.item;
if ( item.hasTag("toughasnails:drinks") ) {
// Effect goes here.
}
});
Inside server_scripts.
Also is there a VSCode plugin to autocomplete for KubeJS?
