Function above spawns a mob when you tap a block with a diamond (id 264). Mob is spawned at player's coordinates (Player.getX() and etc.) with a skin named "skin.png" and a nametag "Mob". Try changing mob's rendertypes with Entity.setRenderType(), for example - Entity.setRenderType(mymob, 3); - it makes your mod a human (sets character (player) model)
If you want to make your own render type (maybe horse or a car?), visit this thread: (it is pretty hard)
I Need to know how to make custom mods scripting with modpe both hostile and
friendly and how do i add my own custom texture to them?
Any And All Help Is Appreciated
I dont know how to make hostile mobs, but there's a function to spawn a mob:
function useItem(x,y,z,itemId,blockId,side) {
if(itemId==264) {
mymob = Level.spawnMob(Player.getX(), Player.getY(), Player.getZ(), 11, "mob/skin.png");
Entity.setNameTag(mymob, "Mob");
Function above spawns a mob when you tap a block with a diamond (id 264). Mob is spawned at player's coordinates (Player.getX() and etc.) with a skin named "skin.png" and a nametag "Mob". Try changing mob's rendertypes with Entity.setRenderType(), for example - Entity.setRenderType(mymob, 3); - it makes your mod a human (sets character (player) model)
If you want to make your own render type (maybe horse or a car?), visit this thread: (it is pretty hard)
Good luck scripting! :-)
Here is a thread to visit (my phone glitches, so i couldn't write it in a post above):http://www.minecraftforum.net/forums/minecraft-pocket-edition/mcpe-mods-tools/mcpe-mod-tool-discussion/1987784-custom-mob-model-tutorial-with-example
Do you want a cupcake? Oops we haven't cupcakes...