#help

1 messages · Page 1 of 1 (latest)

humble orbit
#

How do I open a menu by item id

plush hamlet
#
world.events.beforeItemUse.subscribe(ev => {
    const item = ev.item;
    const player = ev.source;

    if(item.typeId == 'itemId'){
        function()
    }
});
humble orbit
#

Thanks

humble orbit
#

If it had commands to be executed how would it look