Hey, I've been trying to make custom spawning in Skript. I don't have any addons for Skript itself.
I am new to Skript, so all help trying to make this work is very appreciated! Here is my code:
mobs: skeleton, creeper, zombie, baby zombie, villager zombie, enderman, endermite, phantom, and ender dragon
on first join:
clear inventory of the player
on respawn:
apply resistance 10 to the player
apply weakness 10 to the player
x:
y:
z:
if player's x coordinate is between 2 and -2:
set {@x} to true
else:
set {@x} to false
if player's z coordinate is between 2 and -2
set {@z} to true
else:
set {@z} to false
if player's y coordinate is between 10 and 13
set {@y} to true
else:
set {@y} to false
if {@x}, {@z}, and {@y} are true:
on damage of {@mobs}:
end event
Again, any help is very appreciated. If you have questions about my code, please do ask!
I am new to Skript, so all help trying to make this work is very appreciated! Here is my code:
mobs: skeleton, creeper, zombie, baby zombie, villager zombie, enderman, endermite, phantom, and ender dragon
on first join:
clear inventory of the player
on respawn:
apply resistance 10 to the player
apply weakness 10 to the player
x:
y:
z:
if player's x coordinate is between 2 and -2:
set {@x} to true
else:
set {@x} to false
if player's z coordinate is between 2 and -2
set {@z} to true
else:
set {@z} to false
if player's y coordinate is between 10 and 13
set {@y} to true
else:
set {@y} to false
if {@x}, {@z}, and {@y} are true:
on damage of {@mobs}:
end event
Again, any help is very appreciated. If you have questions about my code, please do ask!