textureX, textureY - specifies the part of the skin that the box is textured from.
Wait so I can only use the colours, lets say i was editing the player, from the char.png file? So I cant use diffrent coloures other than the given colours of the skin?
What this will technically do is tell the game that this entity has a different id than the others.
This is just an idea. I'm not sure if this is even possible.
So for the model API we can make the model and object. So a Renderer object.
var rend = new Renderer(); //Creating the object
rend.setBase(Renderer.get("3")); //Setting the base
rend.addBox(h, w, d); //Add boxes and customize
rend.setId(25); //Give it an id
Entity.setRenderType(Player.getEntity(), 25); //Now set an entities rendertype
I hope the above will help with the development.
Thanks for all your hard work, BlockLauncher contributers!
I am trying to make the boxes I created (to the head of the player) to be black but it sort of does the opposite. The head turns black and the boxes take on the texture of the head this is the code:
Hi I'm still stuggling I get this error org.mozilla.javascript.WrappedException: Wrapped java.lang.IllegalArgumentException: Array length must be multiple of 3 (this was changed in 1.6.8): [itemid, itemCount, itemdamage, ...] (MoreCreaturesByQuintonMostert.js#377)
at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Unknown Source)
at org.mozilla.javascript.MemberBox.invoke(Unknown Source)
at org.mozilla.javascript.FunctionObject.call(Unknown Source)
at org.mozilla.javascript.Interpreter.interpretLoop(Unknown Source)
at script(MoreCreaturesByQuintonMostert.js:377)
at org.mozilla.javascript.Interpreter.interpret(Unknown Source)
at org.mozilla.javascript.InterpretedFunction.call(Unknown Source)
at org.mozilla.javascript.ContextFactory.doTopCall(Unknown Source)
at org.mozilla.javascript.ScriptRuntime.doTopCall(Unknown Source)
at org.mozilla.javascript.InterpretedFunction.exec(Unknown Source)
at net.zhuoweizhang.mcpelauncher.ScriptManager.initJustLoadedScript(ScriptManager.java:210)
at net.zhuoweizhang.mcpelauncher.ScriptManager$ParseThread.run(ScriptManager.java:147)
at java.lang.Thread.run(Thread.java:856)
Caused by: java.lang.IllegalArgumentException: Array length must be multiple of 3 (this was changed in 1.6.8): [itemid, itemCount, itemdamage, ...]
at net.zhuoweizhang.mcpelauncher.ScriptManager.expandShapelessRecipe(ScriptManager.java:933)
at net.zhuoweizhang.mcpelauncher.ScriptManager.access$1300(ScriptManager.java:34)
at net.zhuoweizhang.mcpelauncher.ScriptManager$NativeItemApi.addCraftRecipe(ScriptManager.java:2113)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)you are not last vertion of block launcher
... 11 more
We cant add 'custom' renders yet we can only edit them. And 500ISE Made a tutorial on page 131
Want Custom ModPE functions? Look here -> WolfyPE ModPE functions
//6g3yfunction addPegLegToRenderer(renderer) { var s = renderer.getModel().getPart("body"); //s.clear() //s.setTextureOffset(32, 16); //s.addBox(-3.0, 4.0, -1.5, 6 , 9, 3, 0); adden(s,1,4,3,12,1,-0.4,0.4) adden(s,-2,4,3,12,-1,-0.4,0.4) adden(s,1,2,3,12,1,-0.4,0.4) adden(s,-2,2,3,12,-1,-0.4,0.4) } addPegLegToRenderer(Renderer.get(3)); //player addPegLegToRenderer(Renderer.get(16)); //player (multiplayer) function adden(s,x,y,z,l,a,b,c) { for(var i=0;i<=l;i++){ s.setTextureOffset(0,26); s.addBox(x+i*a, y+i*b, z+i*c, 1, 1, 1); if(l%3==0)add2(s,x+i*a, y+i*b, z+i*c,i/3,a,-b*2,c) } } function add2(s,x,y,z,l,a,b,c) { for(var i=0;i<=l;i++){ s.setTextureOffset(0,26); s.addBox(x+i*a, y+i*b, z+i*c, 1, 1, 1); } }Why we call TBPM ?-Three boys play minecraft
Awesomeeee!
Why we call TBPM ?-Three boys play minecraft
Awesomeeee!
Can it set model size?
And could you tell me all the parts about entities?
Why we call TBPM ?-Three boys play minecraft
Awesomeeee!
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumTieba thread: http://tieba.baidu.com/p/2969159314 (I don't know who posted this first anymore...)
Link:
http://www.minecraft.../#entry29816329
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumtextureX, textureY - specifies the part of the skin that the box is textured from.
Wait so I can only use the colours, lets say i was editing the player, from the char.png file? So I cant use diffrent coloures other than the given colours of the skin?
Link:
http://www.minecraft.../#entry29816329
... Please... let me live. You're awesomeness is killing me!!!
So for Entity API we can use a function such as:
What this will technically do is tell the game that this entity has a different id than the others.
This is just an idea. I'm not sure if this is even possible.
So for the model API we can make the model and object. So a Renderer object.
var rend = new Renderer(); //Creating the object rend.setBase(Renderer.get("3")); //Setting the base rend.addBox(h, w, d); //Add boxes and customize rend.setId(25); //Give it an id
Entity.setRenderType(Player.getEntity(), 25); //Now set an entities rendertypeI hope the above will help with the development.
Thanks for all your hard work, BlockLauncher contributers!
function addPegLegToRenderer(renderer) { var rightLeg = renderer.getModel().getPart("head"); rightLeg.addBox(-4.9, -10.0, -4.0, 9, 2, 9); //leg rightLeg.setTextureOffset(0,16); rightLeg.addBox(-4.0, -15.0, -3.0, 7, 6, 7); //shoe rightLeg.setTextureOffset(0,16); } addPegLegToRenderer(Renderer.get(3)); addPegLegToRenderer(Renderer.get(16));Can somebody please help me? It would be very appreciated.[/size]
Link:
http://www.minecraft.../#entry29816329
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumDat sucks
Link:
http://www.minecraft.../#entry29816329
Why we call TBPM ?-Three boys play minecraft
Awesomeeee!
Help Me by clicking above links and skipping ad!
I support:
Why we call TBPM ?-Three boys play minecraft
Awesomeeee!