#a little bit of help

1 messages · Page 1 of 1 (latest)

empty anchor
#

Help me write a simple script, I don’t understand anything about it(Every time a player drops a pickaxe with 30 efficiency after death, he throws it away or puts it in a chest, it just needs to be removed This is what the AI ​​gave me, but it doesn’t work:

on item spawn:
if event-entity is a pickaxe:
if event-entity's tool enchantments contains "efficiency":
if level of enchantment "efficiency" of event-entity is 30:
delete event-entity

tidal tusk
#

You cannot send AI generated code, as it is not accurate and is full of errors, look at the docs or read a beginner tutorial

spring cove
#

try an inventory slot change event