Skript Version (do not put latest):2.5-alpha6-MH
Skript Author: Bensku
Minecraft Version: 1.16.3
Code:
No errors. It just spawns a normal zombie, and then the server crashes.
[doublepost=1602350551,1602306522][/doublepost]bump
[doublepost=1602438582][/doublepost]another bump
[doublepost=1602547935][/doublepost]b u m p
Skript Author: Bensku
Minecraft Version: 1.16.3
Code:
Code:
on right click:
if player's tool is a red dye named "&cBrimstone Jewel":
if {activepet.%player%} is false:
set {activepet.%player%} to false
spawn a zombie at location of player
add last spawned zombie to {pets.%player%.::*}
add "{CustomNameVisible:1,Invulnerable:1,Invisible:1,IsBaby:1}" to nbt of last spawned zombie
set the display name of the spawned zombie to "&cMini Amon"
set {_amonitem} to "Cenyth" parsed as offlineplayer
set helmet of last spawned zombie to skull of {_amonitem}
set {_amonitem} to leather chestplate
dye {_amonitem} (0, 0, 0)
set chestplate of last spawned zombie to {_amonitem}
set {_amonitem} to leather leggings
dye {_amonitem} (0, 0, 0)
set leggings of last spawned zombie to {_amonitem}
set {_amonitem} to leather boots
dye {_amonitem} (0, 0, 0)
set boots of last spawned zombie to {_amonitem}
apply invisibility 1 to the last spawned zombie for 999 days
while spawned zombie is alive:
if distance between player and spawned zombie is less than 10:
if distance between player and spawned zombie is bigger than 3:
make spawned zombie pathfind to location of player with speed 1.3
else if distance between player and spawned zombie is bigger than 15:
teleport spawned zombie to position of player
wait 1 tick
else:
send "&7[&bBeansPvP&7] &fYou already have an active pet." to player
command /removepets:
trigger:
if {activepet.%player%} is false:
send "&7[&bBeansPvP&7] &fYou don't have an active pet." to player
else:
send "&7[&bBeansPvP&7] &fPet removed." to player
kill all mobs in {pets.%player%.::*}
set {activepet.%player%} to false
on disconnect:
kill all mobs in {pets.%player%.::*}
set {activepet.%player%} to false
No errors. It just spawns a normal zombie, and then the server crashes.
[doublepost=1602350551,1602306522][/doublepost]bump
[doublepost=1602438582][/doublepost]another bump
[doublepost=1602547935][/doublepost]b u m p