Jump to content

Stop certain items from dropping on death skript


Ancheim

Recommended Posts

variables:
    {death.drop::%player%} = 0




on death:
    if victim is a player:
        if victim has 1 diamond sword named "Jeff":
            set {death.drop::%victim%} to 1


on respawn:
    if {death.drop::%victim%} = 1:
        give player 1 diamond sword named "Jeff"

 

Edited by _Pogers_
Link to comment
Share on other sites

11 hours ago, Ancheim said:

That didn't work, it said that you cannot use "victim" in line 14

 

change victim on line 14 to player

Developer

 

Joined Minecraft in 2010 on PC

Joined Minehut in August 2016

1 year Skript experience

2 months Java experience

5 months Javascript experience

 

Link to comment
Share on other sites

  • 2 years later...

Please make sure that you aren't responding to posts that haven't been responded to in over a month. Thanks!

No rank - 2017-2021

Minehut Tester - 2021-2023

Minehut Volunteer Moderator - 2023-Current

Report a player/server: Report Player / Server

Create a support ticket: Submit a request

 

Did I help you? If so, feel free to give me a like!

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...