#Clear item.

1 messages · Page 1 of 1 (latest)

ionic pilot
#

here we go 😄
on right click with any end crystal: delete player's held item

lyric token
#

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

ionic pilot
#

Ops .. Ez
on right click: if player's held item is stone: delete player's held item

lyric token
#

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

ashen smelt
#

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

lyric token
#

yeah

#

when obtained

lyric token
#

what function

gaunt cobalt
#

function functName(paramaters): #code

lyric token
#

no like

#

idk what fuction to use

ashen smelt
#
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```