• 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.

Maciejekcho1

New Member
May 24, 2021
9
0
1
Code:
on damage:
    damage cause is void:
        teleport victim at location at (-474, 5, -307)
        wait 5 ticks
        heal victim
        broadcast "&c%victim% &6was thrown into the void while holding &c%victim's held item%"
        broadcast "&c%victim%'s &4&litem &6was removed."
        remove %victim's held item% from victim
 
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.
 
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.
i meant the cleard oesnt work.
 
Status
Not open for further replies.