hey, so i have got 2 codes that for some reason aren't working, 1 of which worked before but then stopped working.
the first one that worked before and stopped working is this:
the first part works fine, but the second part where dhead is fence, it all works up until the set block 1 metar above location to skull, it wont place the skull at all
second code is a fly command which for some reason isn't doing anything, iv tried looking up something but every fly skript is only towars the command sender and mine is also to set to a certain player their fly mode on
here is the code:
if someone could help fix these two codes please i will be more then thankful <3
the first one that worked before and stopped working is this:
code_language.skript:
on death:
victim is a player
if {dhead} is "floor":
set {_head} to skull of "%victim%" parsed as offlineplayer
drop {_head} named "%victim%'s Head" at location of victim
else if {dhead} is "fence":
set {_head} to skull of "%victim%" parsed as offlineplayer
set {_location} to victim's location
set {_x} to x coord of {_location}
set {_y} to y coord of {_location}
set {_y} to {_y} +1
set {_z} to z coord of {_location}
set {_location2} to location {_x}, {_y}, {_z} in world of victim
wait 1 second
set block at {_location} to nether brick fence
set block 1 meter above {_location} to skull of {_head}
second code is a fly command which for some reason isn't doing anything, iv tried looking up something but every fly skript is only towars the command sender and mine is also to set to a certain player their fly mode on
here is the code:
code_language.skript:
command /fly [<offlineplayer>]:
permission: {@PermCo}
permission message: {@Permsg}
trigger:
if arg-1 is set:
if {fly.%arg-1%} is false:
set {fly.%arg-1%} to true
send "%{fly.%arg-1%}%"
set arg-1's fly mode to true
message "{@P}{@C} Your Fly Mode Was Enabled By %command sender%" to arg-1
message "{@P}{@C} You Enabled %arg-1%'s Fly Mode" to command sender
stop
else if {fly.%arg-1%} is true:
set {fly.%arg-1%} to false
set arg-1's fly mode to false
message "{@P}{@C} Your Fly Mode Was Disabled By %command sender%" to arg-1
message "{@P}{@C} You Disabled %arg-1%'s Fly Mode" to command sender
stop
else if arg-1 is not set:
if {fly.%player%} is false:
set {fly.%player%} to true
set command sender's fly mode to true
message "{@P}{@C} You Enabled Your Fly Mode" to command sender
stop
else if {fly.%player%} is true:
set {fly.%player%} to false
set command sender's fly mode to false
message "{@P}{@C} You Disabled Your Fly Mode" to command sender
stop
if someone could help fix these two codes please i will be more then thankful <3