The Meaning of Life, the Universe, and Everything.
Join Date:
9/28/2014
Posts:
53
Xbox:
Zombiekiller503
Member Details
So I had an idea where zombies could be used as automatic mining, but I'm not sure how to get it done. I know I can use /execute @e [type=zombie] then using the setblock command to destroy the block in front of it, but how would I make it only work if it has a diamond pick in it's hand? Or if you wanted it to mine logs for a tree farm, it would have to have a diamond axe. You would get the miner zombie by summoning it with a scroll named "Summon Miner" where when it spawns it's not able to move around, and stares in one direction all the time, that would be the direction that the Miner zombie mines blocks.
The Meaning of Life, the Universe, and Everything.
Join Date:
9/28/2014
Posts:
53
Xbox:
Zombiekiller503
Member Details
Figured the first part out, just have to have
/Execute @e [Type=zombie,name=MinerZombie] ~~~ ^^1.8^1 ^^1.8^1 air 1 destroy
In bedrock version the ^^^ means it fills to wherever the entity is facing. But I just don't know how to detect if the zombie is holding a pickaxe (mostly for added visual effects)
The zombie also has slowness 255, so it can't move anywhere, but you can align him where ever you want blocks mined.
To have it detect if the zombie is holding a pickaxe would i just use a replaceitem command, with another taking the item away? So it sends a signal to show if he has one, Its a work around way of detecting if a entity has that item. But im still stuck on making that part work with the command at the top, do you think If I ran a clock into the command blocks that check for the diamond pickaxe, then a comparator connecting to the mining part?
The Meaning of Life, the Universe, and Everything.
Join Date:
9/28/2014
Posts:
53
Xbox:
Zombiekiller503
Member Details
Figured it all out! Took some tampering, but I got it down to 3 command blocks in total, first you have to name a random zombie that you find, "MinerZombie" with a nametag, then I have it so the player has to throw down a pickaxe in a radius of 3 blocks from the zombie, then it uses the replace item command to give the zombie a pickaxe (for visual effects) and when the zombie gets the pickaxe, it is also given slowness 255 so it cant move, only drawback is that you also have to have a villager near the zombie to guide it in the direction you want it to "mine". If I was able to use the noAI command with a entity, it wouldn't need it but bedrock doesn't have that quite yet! I could make it automatically summon a villager a few blocks away, but I think it would be too easy for that.
you could also execute the zombie to teleport all items in a five block radius of it that it gets from the mining to a hopper linked to a sorting system! and you could keep the hopper active by using the /tickingarea command! so you can get resources while being AFK
The Meaning of Life, the Universe, and Everything.
Join Date:
9/28/2014
Posts:
53
Xbox:
Zombiekiller503
Member Details
I noticed that haha, but I actually don't really need to be able to take it away now, I just had it connected to a Redstone contraption thay allows the clock to run. And yeah exactly! I made it so when I "Miner zombie" is spawned that it adds a ticking area named "Miner" to its feet, and when he dies, it gets removed! Only thing i cant get to work is having multiple ones, it's possible with just renaming them differently each time though
The Meaning of Life, the Universe, and Everything.
Join Date:
9/28/2014
Posts:
53
Xbox:
Zombiekiller503
Member Details
I'm trying to work on a afk mob killing zombie aswell! But I'm trying to make it work without the kill command, maybe summoning some type of thing that does damage? I could use the evocation fang (I think that's what it's called) and summon it in front of the zombie to where it doesn't hurt the zombie, so when you have mob farms, you can use that to make it completely afk. And I got the "logging zombie" figured out! Just had to use the setblock command a bit differently.
So I had an idea where zombies could be used as automatic mining, but I'm not sure how to get it done. I know I can use /execute @e [type=zombie] then using the setblock command to destroy the block in front of it, but how would I make it only work if it has a diamond pick in it's hand? Or if you wanted it to mine logs for a tree farm, it would have to have a diamond axe. You would get the miner zombie by summoning it with a scroll named "Summon Miner" where when it spawns it's not able to move around, and stares in one direction all the time, that would be the direction that the Miner zombie mines blocks.
which version do you want to use?
Right now I'm using bedrock version, that's why I need help on it haha, if It were java it would be pretty simple.
Figured the first part out, just have to have
/Execute @e [Type=zombie,name=MinerZombie] ~~~ ^^1.8^1 ^^1.8^1 air 1 destroy
In bedrock version the ^^^ means it fills to wherever the entity is facing. But I just don't know how to detect if the zombie is holding a pickaxe (mostly for added visual effects)
The zombie also has slowness 255, so it can't move anywhere, but you can align him where ever you want blocks mined.
To have it detect if the zombie is holding a pickaxe would i just use a replaceitem command, with another taking the item away? So it sends a signal to show if he has one, Its a work around way of detecting if a entity has that item. But im still stuck on making that part work with the command at the top, do you think If I ran a clock into the command blocks that check for the diamond pickaxe, then a comparator connecting to the mining part?
Figured it all out! Took some tampering, but I got it down to 3 command blocks in total, first you have to name a random zombie that you find, "MinerZombie" with a nametag, then I have it so the player has to throw down a pickaxe in a radius of 3 blocks from the zombie, then it uses the replace item command to give the zombie a pickaxe (for visual effects) and when the zombie gets the pickaxe, it is also given slowness 255 so it cant move, only drawback is that you also have to have a villager near the zombie to guide it in the direction you want it to "mine". If I was able to use the noAI command with a entity, it wouldn't need it but bedrock doesn't have that quite yet! I could make it automatically summon a villager a few blocks away, but I think it would be too easy for that.
That's such a cool idea! i would've never thought about using an invisible villager!
you could also execute the zombie to teleport all items in a five block radius of it that it gets from the mining to a hopper linked to a sorting system! and you could keep the hopper active by using the /tickingarea command! so you can get resources while being AFK
Dude but you can't take away items for entities other than players using the /clear command
I noticed that haha, but I actually don't really need to be able to take it away now, I just had it connected to a Redstone contraption thay allows the clock to run. And yeah exactly! I made it so when I "Miner zombie" is spawned that it adds a ticking area named "Miner" to its feet, and when he dies, it gets removed! Only thing i cant get to work is having multiple ones, it's possible with just renaming them differently each time though
I'm trying to work on a afk mob killing zombie aswell! But I'm trying to make it work without the kill command, maybe summoning some type of thing that does damage? I could use the evocation fang (I think that's what it's called) and summon it in front of the zombie to where it doesn't hurt the zombie, so when you have mob farms, you can use that to make it completely afk. And I got the "logging zombie" figured out! Just had to use the setblock command a bit differently.