Block despawning of specific named 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.

CloudSlays

Member
Jul 9, 2019
3
0
1
18
Hey, I coded a minigame but I have a problem with the powerups.

Code:
on pick up:
       if name of event-item is "speed":
               cancel event
               apply speed 2 to player for 5 seconds
               wait 5 seconds
               remove speed from player


How can i prevent the item do despawn?


MC-Version: 1.8.8
[doublepost=1571752263,1571751868][/doublepost]Plsss help
 
Last edited:
Hey, I coded a minigame but I have a problem with the powerups.

Code:
on pick up:
       if name of event-item is "speed":
               cancel event
               apply speed 2 to player for 5 seconds
               wait 5 seconds
               remove speed from player


How can i prevent the item do despawn?


MC-Version: 1.8.8
[doublepost=1571752263,1571751868][/doublepost]Plsss help
Code:
on despawn:
    if name of event-item is "speed":
        cancel event
 
Status
Not open for further replies.