I'm using the /spreadplayers
command to randomly spawn zombies around the player for an adventure map. The problem with this is that there are trees and the zombies all end up on the trees and it gets boring. I've tried every method I can think of to fix this, and they either flat out don't work, or take a lot of time to do. If someone can help with this, that would be amazing, as I've been at it for a while.
- I'm on minecraft 16w05b
- I've tried using
/execute @e ~ ~ ~ detect /testforblock ~ ~-1 ~
- I've tried to re-spread all entities above a certain height
- I've tried to give anything standing on leaves or above a certain height a score
I don't know what else to try or do! — if anyone can either successfully do one of these or think of another method, please tell me!
/execute @e ~ ~ ~ detect ~ ~-1 ~ minecraft:leaves -1 <command>
for Oak, Spruce, Birch, and Jungle, and/execute @e ~ ~ ~ detect ~ ~-1 ~ minecraft:leaves2 -1 <command>
for Dark Oak and Acacia, as well as likely any other woulds Mojang adds in the near future.