#Clear item.
1 messages · Page 1 of 1 (latest)
ahhh
im dumb
tysm

I have a another problem
-_-
delete player's held item```
I want it to delete the players item WHEN he has it in his inventory
Ops .. Ez
on right click: if player's held item is stone: delete player's held item
No like
When he takes it out of his inventory
like
yk creative
and when someone takes the item
i want it to u instant remove it
So you want all stones to be removed when obtained?
For that you'd need a function and use multiple events
On pick up
On inventory click
Should do the job
what function
function functName(paramaters): #code
On pick up:
Remove event-itemtype from event-entity's inventory
On inventory click:
Wait 1 tick
Set player's cursor slot to air if type of player's cursor slot is any stone```