1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Please help this doesnt work!

Discussion in 'Skript' started by Maciejekcho1, May 27, 2021.

Thread Status:
Not open for further replies.
  1. Maciejekcho1

    Maciejekcho1 New Member

    Joined:
    May 24, 2021
    Messages:
    9
    Likes Received:
    0
    Code (Text):
    1. on damage:
    2.     damage cause is void:
    3.         teleport victim at location at (-474, 5, -307)
    4.         wait 5 ticks
    5.         heal victim
    6.         broadcast "&c%victim% &6was thrown into the void while holding &c%victim's held item%"
    7.         broadcast "&c%victim%'s &4&litem &6was removed."
    8.         remove %victim's held item% from victim
     
  2. Nightomatic

    Nightomatic New Member

    Joined:
    May 24, 2021
    Messages:
    5
    Likes Received:
    0
    I think the heal event was did wrong, it should look something like this:


    on damage:
    damage cause is void:
    teleport victim at location at (-474, 5, -307)
    wait 5 ticks
    execute console command "/effect give %victim% instant_health 1 20"
    broadcast "&c%victim% &6was thrown into the void while holding &c%victim's held item%" ## not sure if that is a valid variable
    broadcast "&c%victim%'s &4&litem &6was removed."
    execute console command "/clear %victim% %victim's held item%"

    If this doesen't work, it might need tweaking.
     
  3. Maciejekcho1

    Maciejekcho1 New Member

    Joined:
    May 24, 2021
    Messages:
    9
    Likes Received:
    0
    i meant the cleard oesnt work.
     
Thread Status:
Not open for further replies.

Share This Page

Loading...