Help with death sign

  • 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 community!

    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.

KAVKAZIE

Active Member
Feb 27, 2017
146
0
16
Hello i make a death sign skript and what i need to do like when i place its will set all the lines automaticly
Example of the sign: http://imgur.com/a/VSbiP
only what i need to do when i place the sign its will set the lines same like on the lores
thanks for help and sorry for the bad english :emoji_slight_smile:
 
code_language.skript:
Give player 1 sign named "death sign" with lore "lol this is a sign"
 
read again
code_language.skript:
On place of sign:
    Cancel event
    Set block at location of block to sign
    Set line 1 of block to "lalal"
    Remove 1 sign form player
You can specify everything further if you want to. That's just a basic idea.
 
code_language.skript:
On place of sign:
    Cancel event
    Set block at location of block to sign
    Set line 1 of block to "lalal"
    Remove 1 sign form player
You can specify everything further if you want to. That's just a basic idea.
not working but thanks any ways
 
So, you want that when someone dies, a sign gets placed at their feet with text stating who killed who?

code_language.skript:
on death of player:
    set block at victim's location to sign
    set 1st line of block at victim to "&c%victim%"
    set 2nd line of block at victim to "slain by"
    set 3rd line of block at victim to "&c%attacker%"
 
Last edited by a moderator:
So, you want that when someone dies, a sign gets placed at their feet with text stating who killed who?

code_language.skript:
on death of player:
    set block at victim's location to sign
    set 1st line of block at victim to "&c%victim%"
    set 2nd line of block at victim to "slain by"
    set 3rd line of block at victim to "&c%attacker%"
its works but how i can do if someone broke it you can still place it and its will be same
 
its works but how i can do if someone broke it you can still place it and its will be same
code_language.skript:
on break of sign:
    if line 2 of event-block is "slain by":
        cancel event
        set {_1} to line 1 of event-block
        set {_2} to line 2 of event-block
        set {_3} to line 3 of event-block
        set block at event-block to air
        give player 1 of sign named "&6&lDeathsign" with lore "%{_1}%||%{_2}%||%{_3}%"

on place of sign:
    #cancel event #im no't sure if this need,
    if player's tool named "&6&lDeathsign":
        set {_L::*} to lore of player's tool split at "||"
        set line 1 of event-block to "%{_L::1}%"
        set line 2 of event-block to "%{_L::2}%"
        set line 3 of event-block to "%{_L::3}%"
        #set player's tool to air #if cancel active then active this too
 
Status
Not open for further replies.