This is a work in progress mod so I am adding more functionality to this mob e.g. able to shoot fireballs, drops but heres what I have: (to get the spawner get item 439 and the script downloads the texture for you)
var ghast;
var truth=false;
var health=10;
ModPE.setItem(439,"ghast_tear", 0, "ghast spawner");
function newLevel()
{
ModPE.overrideTexture("images/font/glyph_39.png", "http://novask.in/20842791.png");
}
function modTick(){
Entity.setHealth(ghast, health);
if(getTile(Entity.getX(ghast)+1,Entity.getY(ghast)+1,Entity.getZ(ghast))>0|| getTile(Entity.getX(ghast)-1,Entity.getY(ghast)+1,Entity.getZ(ghast))>0||getTile(Entity.getX(ghast),Entity.getY(ghast)+1,Entity.getZ(ghast)+1)>0||getTile(Entity.getX(ghast),Entity.getY(ghast)+1,Entity.getZ(ghast)-1)>0){
truth=true;
}
if(truth==true){
Entity.setVelY(ghast, 0.5, 0.5, 0.5);
truth=false;
}
}
function leaveGame(){
ModPE.resetImages();
}
function deathHook(a, v){
if(Entity.getMobSkin(v)=="font/glyph_39.png"){
health=20;
}
}
function attackHook(a, v){
if(Entity.getMobSkin(v)=="font/glyph_39.png"&&getCarriedItem()!=276){
preventDefault();
}
if(Entity.getMobSkin(v)=="font/glyph_39.png"&&getCarriedItem()==276){
health=health-7;
}
if(Entity.getMobSkin(a)=="font/glyph_39.png"){
preventDefault();
}
}
function addGhastToRenderer(renderer) {
var var2 = 0;
var model = renderer.getModel();
var bipedBody = model.getPart("body").clear();
bipedBody.addBox(0.0, -60.0, 0.0, 16, 16, 16, var2);
bipedBody.addBox(1.0, -45.0, 6.0, 2, 10, 2, var2);
bipedBody.addBox(0.3, -45.0, 0.0, 2, 10, 2, var2);
bipedBody.addBox(1.3, -45.0, 13.0, 2, 10, 2, var2);
bipedBody.addBox(6.5, -45.0, 0.0, 2, 12, 2, var2);
bipedBody.addBox(13.4, -45.0, 0.0, 2, 10, 2, var2);
bipedBody.addBox(13.0, -45.0, 6.0, 2, 10, 2, var2);
bipedBody.addBox(6.5, -45.0, 13.0, 2, 12, 2, var2);
var bipedLeg = model.getPart("rightLeg").clear();
bipedBody.addBox(13.0, -45.0, 12.0, 2, 10, 2, var2);
var bipedLeg2 = model.getPart("leftLeg").clear();
var bipedhead = model.getPart("head").clear();
var bipedarm = model.getPart("rightArm").clear();
var bipedarm2 = model.getPart("leftArm").clear();
}
var ghastRenderer = Renderer.createHumanoidRenderer();
addGhastToRenderer(ghastRenderer);
function useItem(x,y,z,itemId,block,side){
if(itemId==439){
ghast = Level.spawnMob(x, y, z, 32, "font/glyph_39.png");
clientMessage(ghastRenderer.renderType);
Entity.setRenderType(ghast, ghastRenderer.renderType);
}
}
function entityRemovedHook(e){
if(e==ghast){
health=20;
}
}
Ta da a ghast mod. Currently its a invisible zombie that has a ghast flying above it. The ghast can only die by a diamond sword (you have to hit the invisible zombie currently i will make it in the future where you can kill shoot the ghast with an arrow) and only a diamond sword and nothing else like fire fall damage etc. When the the ghast (invisible zombie) has any block except air 2 blocks high in front of it it would still be able to go over it. You must only have one ghast at a time in the world or somethings wont work. Again its a work in progress.
I still dont get it on how to do it and can you plz give a youtube video on how or more examples and explaining? Also 500ISE can you make it more modpe type I think that will solve my problem and many others.:)
Rollback Post to RevisionRollBack
I am a MCPE Modder and a Android/Game Developer and you can check out my work soon on the google playstore
I still dont get it on how to do it and can you plz give a youtube video on how or more examples and explaining? Also 500ISE can you make it more modpe type I think that will solve my problem and many others.
I will be doing a YouTube series on it once the beta is released.
This is a work in progress mod so I am adding more functionality to this mob e.g. able to shoot fireballs, drops but heres what I have: (to get the spawner get item 439 and the script downloads the texture for you)
var ghast;
var truth=false;
var health=10;
ModPE.setItem(439,"ghast_tear", 0, "ghast spawner");
function newLevel()
{
ModPE.overrideTexture("images/font/glyph_39.png", "http://novask.in/20842791.png");
}
function modTick(){
Entity.setHealth(ghast, health);
if(getTile(Entity.getX(ghast)+1,Entity.getY(ghast)+1,Entity.getZ(ghast))>0|| getTile(Entity.getX(ghast)-1,Entity.getY(ghast)+1,Entity.getZ(ghast))>0||getTile(Entity.getX(ghast),Entity.getY(ghast)+1,Entity.getZ(ghast)+1)>0||getTile(Entity.getX(ghast),Entity.getY(ghast)+1,Entity.getZ(ghast)-1)>0){
truth=true;
}
if(truth==true){
Entity.setVelY(ghast, 0.5, 0.5, 0.5);
truth=false;
}
}
function leaveGame(){
ModPE.resetImages();
}
function deathHook(a, v){
if(Entity.getMobSkin(v)=="font/glyph_39.png"){
health=20;
}
}
function attackHook(a, v){
if(Entity.getMobSkin(v)=="font/glyph_39.png"&&getCarriedItem()!=276){
preventDefault();
}
if(Entity.getMobSkin(v)=="font/glyph_39.png"&&getCarriedItem()==276){
health=health-7;
}
if(Entity.getMobSkin(a)=="font/glyph_39.png"){
preventDefault();
}
}
function addGhastToRenderer(renderer) {
var var2 = 0;
var model = renderer.getModel();
var bipedBody = model.getPart("body").clear();
bipedBody.addBox(0.0, -60.0, 0.0, 16, 16, 16, var2);
bipedBody.addBox(1.0, -45.0, 6.0, 2, 10, 2, var2);
bipedBody.addBox(0.3, -45.0, 0.0, 2, 10, 2, var2);
bipedBody.addBox(1.3, -45.0, 13.0, 2, 10, 2, var2);
bipedBody.addBox(6.5, -45.0, 0.0, 2, 12, 2, var2);
bipedBody.addBox(13.4, -45.0, 0.0, 2, 10, 2, var2);
bipedBody.addBox(13.0, -45.0, 6.0, 2, 10, 2, var2);
bipedBody.addBox(6.5, -45.0, 13.0, 2, 12, 2, var2);
var bipedLeg = model.getPart("rightLeg").clear();
bipedBody.addBox(13.0, -45.0, 12.0, 2, 10, 2, var2);
var bipedLeg2 = model.getPart("leftLeg").clear();
var bipedhead = model.getPart("head").clear();
var bipedarm = model.getPart("rightArm").clear();
var bipedarm2 = model.getPart("leftArm").clear();
}
var ghastRenderer = Renderer.createHumanoidRenderer();
addGhastToRenderer(ghastRenderer);
function useItem(x,y,z,itemId,block,side){
if(itemId==439){
ghast = Level.spawnMob(x, y, z, 32, "font/glyph_39.png");
clientMessage(ghastRenderer.renderType);
Entity.setRenderType(ghast, ghastRenderer.renderType);
}
}
function entityRemovedHook(e){
if(e==ghast){
health=20;
}
}
Ta da a ghast mod. Currently its a invisible zombie that has a ghast flying above it. The ghast can only die by a diamond sword (you have to hit the invisible zombie currently i will make it in the future where you can kill shoot the ghast with an arrow) and only a diamond sword and nothing else like fire fall damage etc. When the the ghast (invisible zombie) has any block except air 2 blocks high in front of it it would still be able to go over it. You must only have one ghast at a time in the world or somethings wont work. Again its a work in progress.
don't work Nd How Do u Make Custom Entity Rendertypes??
Looks like 1.6.9 to me. There are no compiled binaries for the pro version of 1.6.10 yet. The only source accessible it zhuowei's github repositories. If zhuowei confirms you have 1.6.10 pro version then we will believe you.
Get item id 439 (through toomanyitems spc etc). The texture will be downloaded for you when you load a world as long as you have internet. The image is reset when you leave the world though so you have to have a internet connection every time you load a world.
Item.addCraftRecipe (500, 1, 0, [264, 5, 0];
org.mozilla.javascript.EvaluatorException: missing ) after argument list (Bhechmer's Mod.js#1)
at org.mozilla.javascript.DefaultErrorReporter.runtimeError(Unknown Source)
at org.mozilla.javascript.DefaultErrorReporter.error(Unknown Source)
at org.mozilla.javascript.Parser.addError(Unknown Source)
at org.mozilla.javascript.Parser.addError(Unknown Source)
at org.mozilla.javascript.Parser.reportError(Unknown Source)
at org.mozilla.javascript.Parser.reportError(Unknown Source)
at org.mozilla.javascript.Parser.mustMatchToken(Unknown Source)
at org.mozilla.javascript.Parser.mustMatchToken(Unknown Source)
at org.mozilla.javascript.Parser.argumentList(Unknown Source)
at org.mozilla.javascript.Parser.memberExprTail(Unknown Source)
at org.mozilla.javascript.Parser.memberExpr(Unknown Source)
at org.mozilla.javascript.Parser.unaryExpr(Unknown Source)
at org.mozilla.javascript.Parser.mulExpr(Unknown Source)
at org.mozilla.javascript.Parser.addExpr(Unknown Source)
at org.mozilla.javascript.Parser.shiftExpr(Unknown Source)
at org.mozilla.javascript.Parser.relExpr(Unknown Source)
at org.mozilla.javascript.Parser.eqExpr(Unknown Source)
at org.mozilla.javascript.Parser.bitAndExpr(Unknown Source)
at org.mozilla.javascript.Parser.bitXorExpr(Unknown Source)
at org.mozilla.javascript.Parser.bitOrExpr(Unknown Source)
at org.mozilla.javascript.Parser.andExpr(Unknown Source)
at org.mozilla.javascript.Parser.orExpr(Unknown Source)
at org.mozilla.javascript.Parser.condExpr(Unknown Source)
at org.mozilla.javascript.Parser.assignExpr(Unknown Source)
at org.mozilla.javascript.Parser.expr(Unknown Source)
at org.mozilla.javascript.Parser.nameOrLabel(Unknown Source)
at org.mozilla.javascript.Parser.statementHelper(Unknown Source)
at org.mozilla.javascript.Parser.statement(Unknown Source)
at org.mozilla.javascript.Parser.parse(Unknown Source)
at org.mozilla.javascript.Parser.parse(Unknown Source)
at org.mozilla.javascript.Context.compileImpl(Unknown Source)
at org.mozilla.javascript.Context.compileReader(Unknown Source)
at net.zhuoweizhang.mcpelauncher.ScriptManager$ParseThread.run(ScriptManager.java:146)
at java.lang.Thread.run(Thread.java:841)This is the code: ModPE.setItem (500, "blaze_rod", 0, "Rod of Ores");
Item.addCraftRecipe (500, 1, 0, [264, 5, 0];
Item.setCategory(500, ItemCategory. MATERIAL);It says Item.addCraftRecipe won't work.
Ta da a ghast mod. Currently its a invisible zombie that has a ghast flying above it. The ghast can only die by a diamond sword (you have to hit the invisible zombie currently i will make it in the future where you can kill shoot the ghast with an arrow) and only a diamond sword and nothing else like fire fall damage etc. When the the ghast (invisible zombie) has any block except air 2 blocks high in front of it it would still be able to go over it. You must only have one ghast at a time in the world or somethings wont work. Again its a work in progress.
Link:
http://www.minecraft.../#entry29816329
I will be doing a YouTube series on it once the beta is released.
Link Removed
Link Removed
Thanks, this will even help me alot...Also how is pokecube pe going..Would like to see the new models.
Arjay07 is going to make a youtube series about making costum Entity render types once the pro version of 1.6.10 is out. Just wait until then.
Link:
http://www.minecraft.../#entry29816329
Game dev and Minecraft modder.
Twitter: @jv110br_
https://www.dropbox.com/s/ewc9rekub54dvlz/20140415133504.png
Looks like 1.6.9 to me. There are no compiled binaries for the pro version of 1.6.10 yet. The only source accessible it zhuowei's github repositories. If zhuowei confirms you have 1.6.10 pro version then we will believe you.
Umm I Checked the version ummmm Total Derp
So I assume this is 1.6.10 pro as well?
Only zhuowei has the pro betas so stop posting fake screenshots. If zhuowei confirms you have the apk then we will believe you.
What's the error?
Game dev and Minecraft modder.
Twitter: @jv110br_
Get item id 439 (through toomanyitems spc etc). The texture will be downloaded for you when you load a world as long as you have internet. The image is reset when you leave the world though so you have to have a internet connection every time you load a world.
Link:
http://www.minecraft.../#entry29816329
Item.addCraftRecipe (500, 1, 0, [264, 5, 0];
org.mozilla.javascript.EvaluatorException: missing ) after argument list (Bhechmer's Mod.js#1)
at org.mozilla.javascript.DefaultErrorReporter.runtimeError(Unknown Source)
at org.mozilla.javascript.DefaultErrorReporter.error(Unknown Source)
at org.mozilla.javascript.Parser.addError(Unknown Source)
at org.mozilla.javascript.Parser.addError(Unknown Source)
at org.mozilla.javascript.Parser.reportError(Unknown Source)
at org.mozilla.javascript.Parser.reportError(Unknown Source)
at org.mozilla.javascript.Parser.mustMatchToken(Unknown Source)
at org.mozilla.javascript.Parser.mustMatchToken(Unknown Source)
at org.mozilla.javascript.Parser.argumentList(Unknown Source)
at org.mozilla.javascript.Parser.memberExprTail(Unknown Source)
at org.mozilla.javascript.Parser.memberExpr(Unknown Source)
at org.mozilla.javascript.Parser.unaryExpr(Unknown Source)
at org.mozilla.javascript.Parser.mulExpr(Unknown Source)
at org.mozilla.javascript.Parser.addExpr(Unknown Source)
at org.mozilla.javascript.Parser.shiftExpr(Unknown Source)
at org.mozilla.javascript.Parser.relExpr(Unknown Source)
at org.mozilla.javascript.Parser.eqExpr(Unknown Source)
at org.mozilla.javascript.Parser.bitAndExpr(Unknown Source)
at org.mozilla.javascript.Parser.bitXorExpr(Unknown Source)
at org.mozilla.javascript.Parser.bitOrExpr(Unknown Source)
at org.mozilla.javascript.Parser.andExpr(Unknown Source)
at org.mozilla.javascript.Parser.orExpr(Unknown Source)
at org.mozilla.javascript.Parser.condExpr(Unknown Source)
at org.mozilla.javascript.Parser.assignExpr(Unknown Source)
at org.mozilla.javascript.Parser.expr(Unknown Source)
at org.mozilla.javascript.Parser.nameOrLabel(Unknown Source)
at org.mozilla.javascript.Parser.statementHelper(Unknown Source)
at org.mozilla.javascript.Parser.statement(Unknown Source)
at org.mozilla.javascript.Parser.parse(Unknown Source)
at org.mozilla.javascript.Parser.parse(Unknown Source)
at org.mozilla.javascript.Context.compileImpl(Unknown Source)
at org.mozilla.javascript.Context.compileReader(Unknown Source)
at net.zhuoweizhang.mcpelauncher.ScriptManager$ParseThread.run(ScriptManager.java:146)
at java.lang.Thread.run(Thread.java:841)This is the code:
ModPE.setItem (500, "blaze_rod", 0, "Rod of Ores");
Item.addCraftRecipe (500, 1, 0, [264, 5, 0];
Item.setCategory(500, ItemCategory. MATERIAL);It says Item.addCraftRecipe won't work.