Hmm... how 'bout the Player.getCarriedItem and the Player.getCarriedItemData up there? They need "()" at the end right? The ones after the "function destroyBlock(x, y, z, side){" by the way.
Is there a function to make it so if someone tapped a block, it would update into another? And say after a cetain amount of ticks, it would update back?
Well both of you should same script or it wouldn't usually work, and addons take a lot of learning of C++ to understand so I wouldn't suggest skipping ModPE so easily
I was working on an idea I've been considering for a while I finaly sorted out all the startup errors in the special tree used to start the tech side of the mod and went to test everything and i get this error whenever i tap the screen
Error occurred in script: ultimatecraft.js
org.mozilla.javascript.EcmaError: ReferenceError: Function function getTile() {
[native code, arity=3]
}
not be used as the left-hand side of assignment or as an operand of ++ or -- operator. (ultimatecraft.js#29)
at org.mozilla.javascript.ScriptRuntime.constructError(Unknown Source)
at org.mozilla.javascript.ScriptRuntime.constructError(Unknown Source)
at org.mozilla.javascript.ScriptRuntime.callRef(Unknown Source)
at org.mozilla.javascript.Interpreter.interpretLoop(Unknown Source)
at script.useItem(ultimatecraft.js:29)
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.call(Unknown Source)
at net.zhuoweizhang.mcpelauncher.ScriptManager.callScriptMethod(ScriptManager.java:270)
at net.zhuoweizhang.mcpelauncher.ScriptManager.useItemOnCallback(ScriptManager.java:282)
Each function needs () at the end.
org.mozilla.javascript.EcmaError: TypeError: Cannot find function setitem in object function ModPE() {
[native code, arity=0]
}
. (StevenUBeta1.js#1)
at org.mozilla.javascript.ScriptRuntime.constructError(Unknown Source)
at org.mozilla.javascript.ScriptRuntime.constructError(Unknown Source)
at org.mozilla.javascript.ScriptRuntime.typeError(Unknown Source)
at org.mozilla.javascript.ScriptRuntime.typeError2(Unknown Source)
at org.mozilla.javascript.ScriptRuntime.notFunctionError(Unknown Source)
at org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThisHelper(Unknown Source)
at org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThis(Unknown Source)
at org.mozilla.javascript.Interpreter.interpretLoop(Unknown Source)
at script(StevenUBeta1.js:1)
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:257)
at net.zhuoweizhang.mcpelauncher.ScriptManager$ParseThread.run(ScriptManager.java:179)
at java.lang.Thread.run(Thread.java:818)
Help!!!
I seriously have no idea what to put here,maybe a cat picture...
It's
Not
Oh...
I seriously have no idea what to put here,maybe a cat picture...
I need a function that gets the biome id of a level
Just like
Level.getBiomeId()==10//10 is the biome id of a snowy biome
I am trying to create a HUGE mod with the idea of getting damage if being for too long in snowy biomes like low temperature damaging a player.
Well arrows can be spawned in by Level.spawnMob
and Entity.setVelX Y or Z and be summoned by function useItem
Crafting recipes are a little broken for now
The heck is this for
Is there a function to make it so if someone tapped a block, it would update into another? And say after a cetain amount of ticks, it would update back?
var tap = false;
var tick = 0;
function useItem(x, y, z, itemId, blockId, side){
if(itemId == 280){ //Change 280 to your ID
tap = true
}
}
function modTick(){
if(tap = true){
tick++
if(tick = 20){//Change 20 to whatever you want
//Your code
}
}
}
Remember that 20 ticks is 1 second 😯
The heck is this for
Can someone help me?
Level.getBiome(getPlayerX(), getPlayerZ()) to check if the player is in a certain biome
The heck is this for
Anyone know how to create an item, when used in crafting, that never runs out of crafting uses and can be used as many times as you want in crafting?
You cant simply do that with ModPE, I have a way but it is extremely buggy and limited.
Want Custom ModPE functions? Look here -> WolfyPE ModPE functions
Is there a way to replace every certain block with another after a set time is reached?
if (Level.getTime == 0) {
if( Level.getTile == 5)
Level.setTile == 2
(Syntax may be off, I'm lagging terribly and I'm writing this here)
var placeTile = false;
var tileX = 0;
var tileY = 0;
var tileZ = 0;
function useItem(x, y, z, itemId, blockId, side){
if(blockId == 4){//Change 4 to your block ID
placeTile = true; //This starts the cycle
tileX = x;
tileY = y;
tileZ = z;//These change the variables to the block coords
}
}
function modTick(){
if(placeTile = true){ //If you have activated cycle
if(Level.getTime() == 0){
setTile(x +1, y, z, 4, 0);//Sets a new block to the right
}
}
The heck is this for
Well both of you should same script or it wouldn't usually work, and addons take a lot of learning of C++ to understand so I wouldn't suggest skipping ModPE so easily
The heck is this for
If you know C++ go for it! But not sure if it's a BL problem then :/
The heck is this for
I was working on an idea I've been considering for a while I finaly sorted out all the startup errors in the special tree used to start the tech side of the mod and went to test everything and i get this error whenever i tap the screen
Error occurred in script: ultimatecraft.js
org.mozilla.javascript.EcmaError: ReferenceError: Function function getTile() {
[native code, arity=3]
}
not be used as the left-hand side of assignment or as an operand of ++ or -- operator. (ultimatecraft.js#29)
at org.mozilla.javascript.ScriptRuntime.constructError(Unknown Source)
at org.mozilla.javascript.ScriptRuntime.constructError(Unknown Source)
at org.mozilla.javascript.ScriptRuntime.callRef(Unknown Source)
at org.mozilla.javascript.Interpreter.interpretLoop(Unknown Source)
at script.useItem(ultimatecraft.js:29)
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.call(Unknown Source)
at net.zhuoweizhang.mcpelauncher.ScriptManager.callScriptMethod(ScriptManager.java:270)
at net.zhuoweizhang.mcpelauncher.ScriptManager.useItemOnCallback(ScriptManager.java:282)
at dalvik.system.NativeStart.run(Native Method)
I got this Crash Report.. what does it mean?!
---- Minecraft Crash Report ----
// I let you down. Sorry
Time: 12/23/15 7:03 PM
Description: Exception in server tick loop
java.lang.RuntimeException: Unknown character '
You postet this in the MCPE forum section, you should post that here: http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/mods-discussion
oh sorry !