i have not skripted in a while and i wanna know if i can get some help with making a custom mob with custom hp, attributes ect. i want it to have a limit to how many can spawn and also they drop custom items also they only spawn a random number from 3-5 vin a timer of random number in 3-6 i was not able to do this and have 0 idea what im doing. plz help. here is all i have but even this is not working
options:
bossname: &4Magma Sentinal
variables:
{spawned} = 0
{timer} = 0
spawn 1 magma cube at location at x-coordinate 7.98 y-coordinate 172 z-coordinate -7.04
set name of spawned entity to "{@bossname}"