Do you guys know when "custom" custom blocks functions are going to be available for BlockLauncher ModPe? I don't mean the setShape, DestroyTime, but the type to make custom shapes kinda like furniture and stuff.
I want an entity(car mob model) to move like a car. Wherever your facing, it goes in that direction. I already got the model and the riding part done, but I need the AI, as well as silencing the mob sound(because i spawn a chicken, then render the model)
Welcome to The ModPE Help Thread! Here you can post any help with modding that you want!
Got an error in a mod? Post it here!
Want to know how to use ModPE functions? You've come to the right place!
Want to just ask a generaly modding question? Go right ahead!
I (goldowl37), and im sure many others, will be here to answer any question you have. Need further help or an example script? PM goldowl37!
Dont forget to give a thumbs up if this helped!
Examples:
Timed Functions by Ender_Pe
//TIMED FUCTIONS TEMPLATE BY Ender_Pe//
var counter;
function modTick() {
if(counter == null) counter = 0
if(counter < 1200) counter++
//Change 1200 to whatever you want//
//20 ticks = 1 second//
//1200 ticks = 1 minute//
else{ counter = 0
//Your Code Here//
}
}
First! Lol. I know how to do timed fuctions if anyone finds this useful.
http://www.minecraftforum.net/members/Ender_Pe
http://achievecraft.com/cimage/i92/ModPe Help Thread/MCPE modding help/mca.png
http://www.minecraftforum.net/members/Ender_Pe
EVen I dont know that!Can you teach me? It will be a great start to the thread!
Timed functions or achievements? Lol!
Okay I will show you how to do timed functions.
http://www.minecraftforum.net/members/Ender_Pe
Two things, if you can help out:
Custom block renders are something that have been long forgotten because everyone hates API, but the custom car thing can be done.
Don't ask me for the car thing, setting an entity's velocity is complicated, I just barely made a enderpearl and custom bow in my mod Acro Craft.
http://www.minecraftforum.net/members/Ender_Pe
I have something new!
Custom Armor!
//Custom Armor Template by Ender_Pe//
Item.defineArmor(490, "chestplate", 0, "Chestplate", "mob/zombie.png", 4, 100, ArmorType.chestplate);
//Makes a new armor item//
function modTick() {
if(Player.getArmorSlot(1)==490){
//Your code here//
}
}
http://www.minecraftforum.net/members/Ender_Pe
function useItem( x, y, z, itemId, blockId, side, data,){
org.mozilla.javascript.EvaluatorException: missing formal parameter (My Mod.js#4)
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.parseFunctionParams(Unknown Source)
at org.mozilla.javascript.Parser.function(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:165)
at java.lang.Thread.run(Thread.java:856)
Help please
The timed function should probably be changed up a little:
var count = false;
var tick = 0;
function useItem(x,y,z)
{
count = true;
}
function modTick()
{
if(count==true)
{
tick++;
}
if(tick<=6000)/*5 minute timer*/
{
//Your code here.
}else if(tick>=6001){
count = false;
}
}
That would mean you have to start it.
http://www.minecraftforum.net/members/Ender_Pe
You wrote data,)
Write: data)
After the , it would expect another parameter.
I changed it to data) but it still doesn't work.
Then the mistake is in the next line.
Just don't put "data."
So it will say(x, y, z, ItemId, BlockId, side)
Right?
It can, yes.
Have you already made the door? (Custom block.)
There is no iron door yet…
Id 71.
You can give it to you with a Give-Mod or TMI, but you actually can't craft and open it.