Auto Planting Saplings
Post date: Jun 22, 2014 12:55:5 PM
@rsmalec was musing that saplings should plant themselves occasionally. I take a look at how that might work...
Commands
Setup:
/scoreboard objectives add SAPLINGS dummy
/scoreboard objectives add SAPLINGSPOP dummy
Counter (delay before planting):
/scoreboard players add @e[type=Item] SAPLINGS 1 {Item:{id:minecraft:sapling}}
/scoreboard players set @e[score_SAPLINGS_min=80] SAPLINGSPOP 1 {Item:{id:minecraft:sapling}}
Auto-planting:
/execute @e[score_SAPLINGSPOP_min=1] ~ ~ ~ setblock ~ ~ ~ minecraft:sapling
/execute @e[score_SAPLINGSPOP_min=1] ~ ~ ~ kill @e[type=Item,r=1]