that's not the full version of the function. it should be Level.spawnMob(par1double, par2double, par3double, par4int, par5String) where par1double, par2double, and par3double are x,y, and z values respectively of the location the mob should spawn. then par4int is the entity id of the mob. google mcpe entity ids to find all of them. par5string is the skin the mob should be set to. I recommend leaving this out as it is optional, and overriding the default skin causes many visual glitches unless you know what you're doing.
Rollback Post to RevisionRollBack
I have nothing to say...
To post a comment, please login or register a new account.
I can morph into it but not spawn it what am I doing wrong
Why does this crash when I put it in a button?
Level.spawnMob(Player.getX(), Player.getY(), Player.getZ(),"mob/pigzombie.png");
Entity.setRenderType(custom,21);
If I do
var custom =
Level.spawnMob(Player.getX(), Player.getY(), Player.getZ(),"mob/pigzombie.png");
Entity.setRenderType(custom,21);
It does nothing
that's not the full version of the function. it should be Level.spawnMob(par1double, par2double, par3double, par4int, par5String) where par1double, par2double, and par3double are x,y, and z values respectively of the location the mob should spawn. then par4int is the entity id of the mob. google mcpe entity ids to find all of them. par5string is the skin the mob should be set to. I recommend leaving this out as it is optional, and overriding the default skin causes many visual glitches unless you know what you're doing.
I have nothing to say...