Disenchant Dropped Item

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Lanky

New Member
Mar 24, 2018
5
0
0
24
Hello everyone.

I'm trying to make it so that when a player drops an enchanted item, the item becomes un-enchanted before it is dropped on the floor. I tried using "disenchant item" but an error message appears saying I cannot change an event-item.

Here is the code I have, although I know it is very wrong:

on drop:
if item is enchanted:
cancel event
if item is boots:
if player's boots are enchanted with feather falling:
delete player's diamond boots
wait 1 second
drop 1 diamond boots
stop

Thanks in advance! :emoji_slight_smile:
 
Status
Not open for further replies.