This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
Follow me on Twitter @B3HINDTH3SCR33N
It's missing a comma between one of the spots on Block.defineBlock where it has a ct for the texture. Just add a comma, and you should be great!
~thejaustin
PayPal Donations: https://www.paypal.me/AustinF
Correction, there are a WHOLE LOT of errors in this code. I'll send you the code in a bit.
org.mozilla.javascript.EcmaError: ReferenceError: "command_block" is not defined. (MyBlockMod.js#10198)
at org.mozilla.javascript.ScriptRuntime.constructError(Unknown Source)
at org.mozilla.javascript.ScriptRuntime.notFoundError(Unknown Source)
at org.mozilla.javascript.ScriptRuntime.name(Unknown Source)
at org.mozilla.javascript.Interpreter.interpretLoop(Unknown Source)
at script(MyBlockMod.js:10198)
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:242)
at net.zhuoweizhang.mcpelauncher.ScriptManager$ParseThread.run(ScriptManager.java:166)
at java.lang.Thread.run(Thread.java:856)
The "command_block is not defined" is my problem. Block texture not working!!!
Then you didn't defined command_block or you defined it, but not in that function. Define it at the top of your Script.
Quote from Clagdriffยป Then you didn't defined command_block or you defined it, but not in that function. Define it at the top of your Script.
?????
Sorry, my mistake. That texture name doesn't exist, I thought it woukd be a variable, all texture names here:
https://github.com/Connor4898/ModPE-Scripts/wiki/Custom-blocks
The Block Rendering api isn't implemented in ModPE yet, but I think Byteandahalf is working on it (it was discontinued, but he decided to continue)
How do I define it?
I have actually no idea, maybe it helps to see the lines that cause the error (~10 200). (Please not all the lines (over 10 000!)!
I think the texture command_block does exist
see http://zhuoweizhang.net/mcpetexturenames/
Yuugen0127
|MCPE Modder, Mapmaker, Mediocre Skinmaker, Update Maniac, Problem-Solver, and Texture-Pack Beginner|
Biggest Update thread for MCPE 0.12.x :
http://www.minecraftforum.net/forums/minecraft-pocket-edition/mcpe-recent-upcoming-pe-updates/2436094-minecraft-pe-the-upcoming-0-12-0-minecraft-peits
Biggest Update thread for MCPE 0.13.0 :
http://www.minecraftforum.net/forums/minecraft-pocket-edition/mcpe-recent-upcoming-pe-updates/2504717-topic-updated-minecraft-pe-the-upcoming-0-13-0
Contact: @GenBrianSuzuki (Twitter), email address on request.
I uh discontinued this as i decided to make addon only
var ct = ["cobblestone", 0]
function Block.defineBlock(23, "Armor Repairer",[ct, ct, ct ct, ct, ct], 14, false, 120);
//Call this before others
function blockEventHook(x, y, z, 14, 120)
{
if(Block.getRenderType(id)==120){
renderArmorRepairer(x, y, z);//Render block at that location
}
function renderArmorRepairer(x, y, z) {
//Block Render
Block.setShape(23, 4, 0, 4, 8, 1.8, 8);
BlockRenderer.renderblock(23, x, y, z);
//Render block at that location
//Other
Block.setShape(23, 0, 0, 2, 1, 1.8, 0);
BlockRenderer.renderblock(23, x, y, z);
//Renderanother
Forgot to put achievment
Follow me on Twitter @B3HINDTH3SCR33N
Anyway thanks
It's missing a comma between one of the spots on Block.defineBlock where it has a ct for the texture. Just add a comma, and you should be great!
~thejaustin
PayPal Donations: https://www.paypal.me/AustinF
Correction, there are a WHOLE LOT of errors in this code. I'll send you the code in a bit.
~thejaustin
PayPal Donations: https://www.paypal.me/AustinF
org.mozilla.javascript.EcmaError: ReferenceError: "command_block" is not defined. (MyBlockMod.js#10198)
at org.mozilla.javascript.ScriptRuntime.constructError(Unknown Source)
at org.mozilla.javascript.ScriptRuntime.constructError(Unknown Source)
at org.mozilla.javascript.ScriptRuntime.notFoundError(Unknown Source)
at org.mozilla.javascript.ScriptRuntime.name(Unknown Source)
at org.mozilla.javascript.Interpreter.interpretLoop(Unknown Source)
at script(MyBlockMod.js:10198)
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:242)
at net.zhuoweizhang.mcpelauncher.ScriptManager$ParseThread.run(ScriptManager.java:166)
at java.lang.Thread.run(Thread.java:856)
The "command_block is not defined" is my problem. Block texture not working!!!
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumThen you didn't defined command_block or you defined it, but not in that function. Define it at the top of your Script.
?????
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumSorry, my mistake. That texture name doesn't exist, I thought it woukd be a variable, all texture names here:
https://github.com/Connor4898/ModPE-Scripts/wiki/Custom-blocks
The Block Rendering api isn't implemented in ModPE yet, but I think Byteandahalf is working on it (it was discontinued, but he decided to continue)
How do I define it?
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumI have actually no idea, maybe it helps to see the lines that cause the error (~10 200). (Please not all the lines (over 10 000!)!
I think the texture command_block does exist
see http://zhuoweizhang.net/mcpetexturenames/
Yuugen0127
|MCPE Modder, Mapmaker, Mediocre Skinmaker, Update Maniac, Problem-Solver, and Texture-Pack Beginner|
Biggest Update thread for MCPE 0.12.x :
http://www.minecraftforum.net/forums/minecraft-pocket-edition/mcpe-recent-upcoming-pe-updates/2436094-minecraft-pe-the-upcoming-0-12-0-minecraft-peits
Biggest Update thread for MCPE 0.13.0 :
http://www.minecraftforum.net/forums/minecraft-pocket-edition/mcpe-recent-upcoming-pe-updates/2504717-topic-updated-minecraft-pe-the-upcoming-0-13-0
Contact: @GenBrianSuzuki (Twitter), email address on request.
I uh discontinued this as i decided to make addon only