Death

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

Rinaldi00

Member
Feb 16, 2017
11
0
0
23
Pls give me code for:
on death don't see screen of death and teleport player on dead-location, add fly for 5 seconds, add invisibility for 5 seconds, add immunity for 5 seconds, and summon a title named "You spawn in 5 seconds" wait 1 seconds. "You spawn in 4 seconds" wait 1 seconds. "You spawn in 3 seconds" wait 1 seconds. "You spawn in 2 seconds" wait 1 seconds. "You spawn in 1 second" wait 1 second. Message you have spawned. teleport the player to spawn, remove fly, remove invisibility, remove immunity. If you can not do that, can you find me something?
 
Pls give me code for:
on death don't see screen of death and teleport player on dead-location, add fly for 5 seconds, add invisibility for 5 seconds, add immunity for 5 seconds, and summon a title named "You spawn in 5 seconds" wait 1 seconds. "You spawn in 4 seconds" wait 1 seconds. "You spawn in 3 seconds" wait 1 seconds. "You spawn in 2 seconds" wait 1 seconds. "You spawn in 1 second" wait 1 second. Message you have spawned. teleport the player to spawn, remove fly, remove invisibility, remove immunity. If you can not do that, can you find me something?

maybe like this? im still beginner, sorry if get error.
i don't know how to immunity for 5 sec

Note: Must have RandomSK Addon


code_language.skript:
On Death:
    wait 1 tick
    set {death.%player%} to location of the player
    force respawn victim
    teleport player to {death.%player%}
    set {respawn.%player%} to true
    apply Invisibility to player for 5 seconds
    send "&aYou will spawn in 5 sec"
    wait 1 seconds
    send "&aYou will spawn in 4 sec"
    wait 1 seconds
    send "&aYou will spawn in 3 sec"
    wait 1 seconds
    send "&aYou will spawn in 2 sec"
    wait 1 seconds
    send "&aYou will spawn in 1 sec"
    wait 1 seconds
    set {respawn.%player%} to false
    teleport player to spawn
    send "&aYou have been Spawned"
   
On Any Move:
    if {respawn.%player%} is set:
        cancel event
 
code_language.skript:
On Death:
    wait 1 tick
    set {death.%player%} to location of the player
    force respawn victim
    teleport player to {death.%player%}
    set {respawn.%player%} to true
    apply Invisibility to player for 5 seconds
    send "&aYou will spawn in 5 sec"
    wait 1 seconds
    send "&aYou will spawn in 4 sec"
    wait 1 seconds
    send "&aYou will spawn in 3 sec"
    wait 1 seconds
    send "&aYou will spawn in 2 sec"
    wait 1 seconds
    send "&aYou will spawn in 1 sec"
    wait 1 seconds
    set {respawn.%player%} to false
    teleport player to spawn
    send "&aYou have been Spawned"
 
On Any Move:
    if {respawn.%player%} is set:
        cancel event
I have modified the plugins, beacause this don't work
 
code_language.skript:
On Death:
    wait 1 tick
    set {death.%player%} to location of the player
    force respawn victim
    teleport player to {death.%player%}
    set {respawn.%player%} to true
    apply Invisibility to player for 5 seconds
    send "&aYou will spawn in 5 sec"
    wait 1 seconds
    send "&aYou will spawn in 4 sec"
    wait 1 seconds
    send "&aYou will spawn in 3 sec"
    wait 1 seconds
    send "&aYou will spawn in 2 sec"
    wait 1 seconds
    send "&aYou will spawn in 1 sec"
    wait 1 seconds
    set {respawn.%player%} to false
    teleport player to spawn
    send "&aYou have been Spawned"
 
On Any Move:
    if {respawn.%player%} is set:
        cancel event
I have modified the plugins, beacause this don't work
that code work m8 maybe u need addons :emoji_slight_smile:
 
code_language.skript:
On Death:
    wait 1 tick
    set {death.%player%} to location of the player
    force respawn victim
    teleport player to {death.%player%}
    set {respawn.%player%} to true
    apply Invisibility to player for 5 seconds
    send "&aYou will spawn in 5 sec"
    wait 1 seconds
    send "&aYou will spawn in 4 sec"
    wait 1 seconds
    send "&aYou will spawn in 3 sec"
    wait 1 seconds
    send "&aYou will spawn in 2 sec"
    wait 1 seconds
    send "&aYou will spawn in 1 sec"
    wait 1 seconds
    set {respawn.%player%} to false
    teleport player to spawn
    send "&aYou have been Spawned"
 
On Any Move:
    if {respawn.%player%} is set:
        cancel event
I have modified the plugins, beacause this don't work

make sure, u install RandomSK.
 
make sure, u install RandomSK.
pls give me download, I don't found.. I have found one but is old and have problems
[doublepost=1487720543,1487720447][/doublepost]
Code:
hannel(TinyProtocol.java:115) [RandomSK_2_7_1.jar:?]         at io.netty.channel.ChannelInitializer.channelRegistered(ChannelInitializer.java:69) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRegistered(AbstractChannelHandlerContext.java:158) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.AbstractChannelHandlerContext.fireChannelRegistered(AbstractChannelHandlerContext.java:144) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.ChannelInitializer.channelRegistered(ChannelInitializer.java:71) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRegistered(AbstractChannelHandlerContext.java:158) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.AbstractChannelHandlerContext.fireChannelRegistered(AbstractChannelHandlerContext.java:144) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.ChannelInitializer.channelRegistered(ChannelInitializer.java:71) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRegistered(AbstractChannelHandlerContext.java:158) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.AbstractChannelHandlerContext.fireChannelRegistered(AbstractChannelHandlerContext.java:144) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.ChannelInitializer.channelRegistered(ChannelInitializer.java:71) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRegistered(AbstractChannelHandlerContext.java:158) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.AbstractChannelHandlerContext.fireChannelRegistered(AbstractChannelHandlerContext.java:144) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.ChannelInitializer.channelRegistered(ChannelInitializer.java:71) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRegistered(AbstractChannelHandlerContext.java:158) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.AbstractChannelHandlerContext.fireChannelRegistered(AbstractChannelHandlerContext.java:144) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.ChannelInitializer.channelRegistered(ChannelInitializer.java:71) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRegistered(AbstractChannelHandlerContext.java:158) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.AbstractChannelHandlerContext.fireChannelRegistered(AbstractChannelHandlerContext.java:144) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.ChannelInitializer.channelRegistered(ChannelInitializer.java:71) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRegistered(AbstractChannelHandlerContext.java:158) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.AbstractChannelHandlerContext.fireChannelRegistered(AbstractChannelHandlerContext.java:144) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.DefaultChannelPipeline.fireChannelRegistered(DefaultChannelPipeline.java:732) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.AbstractChannel$AbstractUnsafe.register0(AbstractChannel.java:442) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.AbstractChannel$AbstractUnsafe.access$100(AbstractChannel.java:374) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.AbstractChannel$AbstractUnsafe$1.run(AbstractChannel.java:418) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:380) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:268) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at java.lang.Thread.run(Thread.java:745) [?:1.8.0_112] [18:38:40 ERROR]: [RandomSK] Cannot inject incomming channel [id: 0x7509fc56, /213.45.92.47:53962 => /167.114.208.2:41434] java.lang.ClassCastException: com.mirre.random.utils.comphenix.TinyProtocol$PacketInterceptor cannot be cast to com.mirre.random.utils.comphenix.TinyProtocol$PacketInterceptor         at com.mirre.random.utils.comphenix.TinyProtocol.injectChannelInternal(TinyProtocol.java:356) ~[RandomSK_2_7_1.jar:?]         at com.mirre.random.utils.comphenix.TinyProtocol.access$4(TinyProtocol.java:354) ~[RandomSK_2_7_1.jar:?]         at com.mirre.random.utils.comphenix.TinyProtocol$1.initChannel(TinyProtocol.java:115) [RandomSK_2_7_1.jar:?]         at io.netty.channel.ChannelInitializer.channelRegistered(ChannelInitializer.java:69) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRegistered(AbstractChannelHandlerContext.java:158) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.AbstractChannelHandlerContext.fireChannelRegistered(AbstractChannelHandlerContext.java:144) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.ChannelInitializer.channelRegistered(ChannelInitializer.java:71) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRegistered(AbstractChannelHandlerContext.java:158) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.AbstractChannelHandlerContext.fireChannelRegistered(AbstractChannelHandlerContext.java:144) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.ChannelInitializer.channelRegistered(ChannelInitializer.java:71) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRegistered(AbstractChannelHandlerContext.java:158) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.AbstractChannelHandlerContext.fireChannelRegistered(AbstractChannelHandlerContext.java:144) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.ChannelInitializer.channelRegistered(ChannelInitializer.java:71) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRegistered(AbstractChannelHandlerContext.java:158) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.AbstractChannelHandlerContext.fireChannelRegistered(AbstractChannelHandlerContext.java:144) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.ChannelInitializer.channelRegistered(ChannelInitializer.java:71) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRegistered(AbstractChannelHandlerContext.java:158) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.AbstractChannelHandlerContext.fireChannelRegistered(AbstractChannelHandlerContext.java:144) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.ChannelInitializer.channelRegistered(ChannelInitializer.java:71) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRegistered(AbstractChannelHandlerContext.java:158) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.AbstractChannelHandlerContext.fireChannelRegistered(AbstractChannelHandlerContext.java:144) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.ChannelInitializer.channelRegistered(ChannelInitializer.java:71) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRegistered(AbstractChannelHandlerContext.java:158) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.AbstractChannelHandlerContext.fireChannelRegistered(AbstractChannelHandlerContext.java:144) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.ChannelInitializer.channelRegistered(ChannelInitializer.java:71) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRegistered(AbstractChannelHandlerContext.java:158) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.AbstractChannelHandlerContext.fireChannelRegistered(AbstractChannelHandlerContext.java:144) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.DefaultChannelPipeline.fireChannelRegistered(DefaultChannelPipeline.java:732) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.AbstractChannel$AbstractUnsafe.register0(AbstractChannel.java:442) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.AbstractChannel$AbstractUnsafe.access$100(AbstractChannel.java:374) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.AbstractChannel$AbstractUnsafe$1.run(AbstractChannel.java:418) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:380) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:268) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at java.lang.Thread.run(Thread.java:745) [?:1.8.0_112]
 
Status
Not open for further replies.