Hai, I created a simple skript for UHC that places the head of a dead player on a fence post. It works perfectly fine in the overworld but in the nether only the fence post appears. Can anyone help me fix this? I've tried almost everything. Here's the skript:
code_language.skript:
on death of player:
if "%victim's world%" is "world":
set {_loc} to victim's location
set block at {_loc} to nether brick fence
set {_x} to victim's x-coordinate
set {_y} to (victim's y-coordinate+1)
set {_z} to victim's z-coordinate
command "/setblock %{_x}% %{_y}% %{_z}% minecraft:skull 1 replace {ExtraType:%victim%,SkullType:3}"
on death of player:
if "%victim's world%" is "world_nether":
set {_loc} to victim's location
set block at {_loc} to nether brick fence
set {_x} to victim's x-coordinate
set {_y} to (victim's y-coordinate+1)
set {_z} to victim's z-coordinate
command "/setblock %{_x}% %{_y}% %{_z}% minecraft:skull 1 replace {ExtraType:%victim%,SkullType:3}"