Did you defined the variables in another function or at the top of the Script? If you defined them in another function it can't work. And you don't need else if, I would make just if, (without any else) because with else if you can easily make mistakes (or I just do).
Well thank you very much I got it working!! New question tho lol Do you possibly know how to spawn lapras with Level.dropItem(), I know how the function works I'm just wondering if u know how to define lapras, its ID is 351:4 but how do u write that?
function blockcheck() {
if (bid == 14) {
goldore = goldore+1;
} else if(bid == 15) {
ironore = ironore+1;
} else if(bid == 16) {
coalore = coalore+2;
} else if(bid == 21) {
laprisore = laprisore+3;
} else if(bid == 56) {
diamondore = diamondore+2;
} else if(bid == 73 || bid == 74) {
redstoneore = redstoneore+3;
}
}
I have defined the varabiles earlier in my code, its just this brick of code that keeps crashing my game, does anybody know why? Please help me lol
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumDid you defined the variables in another function or at the top of the Script? If you defined them in another function it can't work. And you don't need else if, I would make just if, (without any else) because with else if you can easily make mistakes (or I just do).
Alrighty, I did define them in a different function, I'll make some changes and see what happens, thanks
I'll get back to you with the results
Well thank you very much
I got it working!! New question tho lol Do you possibly know how to spawn lapras with Level.dropItem(), I know how the function works I'm just wondering if u know how to define lapras, its ID is 351:4 but how do u write that?
Nvm I figured it out lol
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumWhat is “lapras“? Sorry, my Motherlanguage isn't english and Google translate don't knows it.
lol. I think it's the name of a pokemon. "lapras" jk
By the way, in this section I've posted a question on JSON block models, could you look into that clagdriff ?
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.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumI'm sorry, but I never used block models yet.
k sorry
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.