#Custom mob

1 messages · Page 1 of 1 (latest)

tawdry orchid
#

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}"
tribal talon
#

you cant run code like that

#

needs to be in an event

tawdry orchid
#

but i mean can u help me wright it?

#

i have no idea what im doing

tribal talon
#

thats not what we do here

tawdry orchid
#

ok i can't get this to work but ive been trying and could use some help 1 i want to make it so if there is more then 3 mobs just stop till the 3 dye and also i want don't under stand the diff from {_x} and {x} as variables here is my code

options:
    magmaname: &x&F&F&0&0&0&0M&x&F&F&0&B&0&0a&x&F&F&1&6&0&0g&x&F&F&2&1&0&0m&x&F&F&2&D&0&0a &x&F&F&4&3&0&0S&x&F&F&4&E&0&0e&x&F&F&5&9&0&0n&x&F&F&6&4&0&0t&x&F&F&7&0&0&0i&x&F&F&7&B&0&0n&x&F&F&8&6&0&0a&x&F&F&9&1&0&0l
    
variables:
    rand: random int from 1 to 3
    spawnFlag: 0

command /magmalocset
    permission: mob.spawn.loc
    trigger:
        set {_loc} to players location
        
command /startmagmaspawn
    permission: mob.spawn.start
    trigger:
        wait 3 seconds
            if {spawnFlag} < 3
            loop {_loc}:
                spawn {rand} magma cube at {_loc}
                set display name of last spawned entity to {@magmaname}
                set max health of last spawned entity to 50
                set health of last spawned entity to 50
                add 1 to {spawnFlag}
            else:
                stop
#

also i wanna make it spawn from 1 to 3 at a time and idk if when it splits it willl retain the settings give at spawn so if thats and issue idk what imma do

tawdry orchid
#

nvm im accually the goat i got it