Give stromballu
/give @p snowball{display:{Name:'{"text":"Stromball","color":"dark_green","bold":true,"italic":false}'},tree:1b}
Mechanika stromballu
1. (REPEATING, ALWAYS ACTIVE)
/execute as @e[type=snowball,tag=!tree,nbt={Item:{tag:{tree:1b}}}] run data merge entity @s {Item:{id:"minecraft:oak_sapling",Count:1b}}
2. (CHAIN, CONDITIONAL, ALWAYS ACTIVE)
/execute as @e[type=snowball,tag=!tree,nbt={Item:{tag:{tree:1b}}}] run tag @s add tree
3. (CHAIN, CONDITIONAL, ALWAYS ACTIVE)
/execute at @e[type=snowball,tag=tree] positioned ~ ~0.25 ~ unless entity @e[type=area_effect_cloud,tag=tree,distance=..0.01] run summon area_effect_cloud ~ ~-0.25 ~
{Radius:0f,RadiusPerTick:0f,Duration:2000,Tags:["tree","ride"]}
4. (CHAIN, CONDITIONAL, ALWAYS ACTIVE)
/execute as @e[type=area_effect_cloud,tag=tree,tag=ride] at @s run ride @s mount @e[type=snowball,tag=tree,sort=nearest,limit=1]
5. (CHAIN, CONDITIONAL, ALWAYS ACTIVE)
/execute as @e[type=snowball,tag=tree] on passengers run tag @s remove ride
6. (CHAIN, ALWAYS ACTIVE)
/execute as @e[type=area_effect_cloud,tag=tree,nbt=!{Age:0}] at @s positioned ~ ~-0.25 ~ unless entity @e[type=snowball,tag=tree,distance=..0.1] run tag @s add plantTree
7. (CHAIN, CONDITIONAL, ALWAYS ACTIVE)
/execute at @e[type=area_effect_cloud,tag=plantTree] run place feature oak ~ ~ ~
8. (CHAIN, CONDITIONAL, ALWAYS ACTIVE)
/kill @e[type=area_effect_cloud,tag=plantTree]
Информация по комментариям в разработке