#Picking up an item

1 messages · Page 1 of 1 (latest)

opal rapids
#

Have you looked for events

#

There is a very obvious one

spare nebula
#

uhh

#

wha

#

lemme look-

#

I can't find it, can you just tell me?

#

This is what I have so far:
on player pickup of iron ingot:
if player has arrow named "&aPick up upgrader&a":
loop all entities in radius 2 around player:
kill loop-entity
cancel event
give player iron block

#

It doesn't work though, as it kills the player too for some reason.

stark widget
#

players are entitys too yk

opal rapids
#

You dont have to kill the entities

#

Just let them pick it up

#

Take away the ingot

#

And give them the block

spare nebula
opal rapids
#

Doesnt the event fire for each of them

#

If not just check the amount they picked up

#

Killing all the items wont give you the right amount either

#

Itll just give 1

spare nebula
#

yeah that's my problem

spare nebula