#Script Help

1 messages · Page 1 of 1 (latest)

reef pasture
#

Help pls

quartz fossil
#

In "HitEntity.typeId"

#

You called (data.entity)

#

But what is this "data"?

#

If I'm not mistaken, you don't need to use your event name to call a function

#

try to use this:
starter(player)

reef pasture
quartz fossil
quartz fossil
reef pasture
quartz fossil
reef pasture
quartz fossil
#

Put this const on top of the first If, that might solve the problem...

#

To identify just the player you can use:

#
if (player.typeId == 'minecraft:player')
reef pasture
#

@quartz fossil it doesn't error anymore thank you for helpingbao_comm_ty