The only difference with your code on cmd and my code on cmd is the conversion of string to lowercase. Anyways the treecapitator still doesnt work. I changed my BL to pro now and it still crashes.
The only difference with your code on cmd and my code on cmd is the conversion of string to lowercase. Anyways the treecapitator still doesnt work. I changed my BL to pro now and it still crashes.
I'm looking for a working treecapitator script for MCPE.
Previous scripts I found were either have errors or the game exits (Crashes) when a tree is cut down.
I tried making a custom code for this one but still get the same result. it was based on one of the codes I found and shorten it just to test it out.
I'm also looking for a code that also destroys leaves with the tree itself.
thanks and good day.
function destroyBlock(x, y, z) { if(Level.getTile(x, y, z) == 17 || Level.getTile(x, y, z) == 162){ if(Player.getCarriedItem() == 275){ for(j=y; j<(y+20); j++){ if(getTile(x, j, z) == 17 || getTile(x, j, z) == 162){ dropWood(x, j, z, Level.getData(x, j, z), getTile(x, j, z)); Level.setTile(x, j, z, 0); } } } } } function dropWood(x, y, z, data, id) { Level.dropItem(x, y, z, 1, id, 1, data); }function destroyBlock(x,y,z,side) {
if(getTile(x,y,z) == 17) {
for(var i = 0; i < 256; i++) {
if(getTile(x,y+i,z) == 17) {
Level.destroyBlock(x,y+i,z,true);
}
}
}
}
i think,Destroying leaves it's hard,
Because some tree are to big and have alot leaves, and the leaves are connected to another tree
Thanks for the code but unfortunately, the game still exits when I destroy a block. I dont know why..
Update:
I think theres something wrong with my block launcher.
I tried using this function
function procCmd(cmd) { cmd = cmd.toLowerCase(); if (cmd == "help"){ clientMessage("Was this helpful enough?"); } }but I get no response from clientMessage, is there something going on with BL?
btw BL version is 1.10.3 free
function procCmd(cmd) {if(cmd == "help") {
clientMessage("a");
}
}
The only difference with your code on cmd and my code on cmd is the conversion of string to lowercase. Anyways the treecapitator still doesnt work. I changed my BL to pro now and it still crashes.
Ikr, i think, try to clear cache :3
Nope.still crashes.
Have you tested it in android?
I even can't test mod because asus user, but i know that code will work, i think its your BLP problem
Im updated to the latest BLP. guess im gonna have to wait for the developers response. Thanks for the help!
Hi guys!
If you are still waiting, you can download fully rewriten TreeCapitator mod for MCPE here https://github.com/maxim-sheronov/mcpe-treecapitator
Tested on 0.14.2