#Confused with making player heads when they are banned/offline

1 messages · Page 1 of 1 (latest)

boreal vault
#

what confuses you about it? you need to present an issue

median canopy
boreal vault
#

as in, invisible, or just not there

median canopy
boreal vault
#

soo probably because the line where you set {_head} is wrong then.

#

I would just use offlineplayer(loop-value)'s skull

median canopy
#

instead of head just change it to that?

#

and i also have a couple more questions about some skripts that i made for heads

    attacker is player
    victim is player
    if name of victim's helmet is "&7&lꜱᴋᴇʟᴇᴛᴏɴ ᴄʀᴏᴡɴ":
        set {_id} to "%victim% uuid -> %attacker% uuid"
        add 1 to {shockhead::%{_id}%}
        if {shockhead::%{_id}%} = 10:
            loop all players in radius 2 around victim:
                if loop-player != victim:
                    push loop-player backwards with force of 2
                    push loop-player upwards with force of 1```
This is one that doesnt work
```on right click:
    loop all players:
        loop-player's helmet is player head named "&6&lꜱᴄᴀʀᴇᴄʀᴏᴡ ꜱᴇɴᴛɪɴᴀʟ"
        if {cooldown.nodamage.%player%} is not set:
            set {nodamage::%player%} to true
            set {cooldown.nodamage.%player%} to now
            send "&c5 Second Immunity Enabled" to player
        else if difference between now and {cooldown.nodamage.%player%} < 90 seconds:
            send "&cYou must wait &e%{cooldown.nodamage.%player%}% more seconds" to player
            stop
        else:
            set {nodamage::%player%} to true
            set {cooldown.nodamage.%player%} to now
            send "&c5 Second Immunity Enabled" to player 
on damage:
    victim is a player
    attacker is a player
    if {nodamage::%victim%} is true:
        cancel event
    damage attacker by 1```
And this is the 2nd one
#

they all dont work, and i dont know what i did wrong in these

#
    attacker is player
    victim is player
    if attacker's helmet is player head named "&8&lꜱᴘɪᴅᴇʀ ǫᴜᴇᴇɴ ᴄʀᴏᴡɴ":
        set {_id} to "%attacker% uuid -> %victim% uuid"
        add 1 to {webhead::%{_id}%}
        if {webhead::%{_id}%} = 20:
            set {_loc} to location of victim
            loop blocks in radius 1 around {_loc}:
                set loop-block to cobweb```

```on rightclick:
    loop all players:
        if helmet of loop-player is player head named "&5&lᴇɴᴅᴇʀ ᴘʜᴀɴᴛᴏᴍ":
            set {_loc} to location 5 blocks infront of player
            if {cooldown.teleport.%player%} is not set:
                teleport player to {_loc}
                set {cooldown.teleport.%player%} to now
                send "&7WOOSH!" to player
            else if difference between now and {cooldown.teleport.%player%} < 90 seconds:
                send "&cYou must wait &e%{cooldown.teleport.%player%}% more seconds" to player
                stop
            else:
                teleport player to {_loc}
                set {cooldown.teleport.%player%} to now
                send "&7WOOSH!" to player``` these are the other 2
celest geyser
#

why are we doing
on damage of player by player:
then checking if the victim/attacker was a player

#

are you intentionally looping all players when u have one player activate an ability?

median canopy
#
    if helmet of player is player head named "&6&lꜱᴄᴀʀᴇᴄʀᴏᴡ ꜱᴇɴᴛɪɴᴀʟ"
    if {cooldown.nodamage.%player%} is not set:
        set {nodamage::%player%} to true
        set {cooldown.nodamage.%player%} to now
        send "&c5 Second Immunity Enabled" to player
    else if difference between now and {cooldown.nodamage.%player%} < 90 seconds:
        send "&cYou must wait &e%{cooldown.nodamage.%player%}% more seconds" to player
        stop
    else:
        set {nodamage::%player%} to true
        set {cooldown.nodamage.%player%} to now
        send "&c5 Second Immunity Enabled" to player 
on damage:
    victim is a player
    attacker is a player
    if {nodamage::%victim%} is true:
        cancel event
    damage attacker by 1``` now since i removed that line, the first line doesnt work because it cant register it as a item type
boreal vault
#

especially when you havent even told us what kind of issue we are looking for.

#

start by debugging

#

also, why are some of your variables lists and some not?
And, in the last code, you need to fix indentation

median canopy
#

ok

#

ok thank u, but i am confused about arguments for command/how to use them

#

because i want a command that has 4 arguments where i can look up 4 different types of named like scarecrow or something like that