[Series] Customizing Dripleaf Part 2 | Adding trigger variables
Автор: Stiky's Commands
Загружено: 2021-06-25
Просмотров: 8
Описание:
In the Customizing Dripleaf series, we will customize the dripleaf fall and respawn times.
This video will go over how to add trigger variables to change the dripleaf fall and respawn times, and also store times as internal variables.
All command chains from left to right:
Chain 1 commands:
/scoreboard players enable @a getDripleafBack
/scoreboard players enable @a getDripleafFall
/scoreboard players enable @a setDripleafBack
/scoreboard players enable @a setDripleafFall
Chain 2 commands:
/execute as @a[scores={setDripleafBack=0..}] run tag @s add changeDripleafBack
/execute as @a[tag=changeDripleafBack] at @s as @e[limit=1,tag=dripleaf,sort=nearest] at @s run scoreboard players operation @s dripleafBack = @a[tag=changeDripleafBack,limit=1,sort=nearest] setDripleafBack
/scoreboard players set @a setDripleafBack -1
/tag @a remove changeDripleafBack
Chain 3 commands:
/execute as @a[scores={setDripleafFall=0..}] run tag @s add changeDripleafFall
/execute as @a[tag=changeDripleafFall] at @s as @e[limit=1,tag=dripleaf,sort=nearest] at @s run scoreboard players operation @s dripleafFall = @a[tag=changeDripleafFall,limit=1,sort=nearest] setDripleafFall
/scoreboard players set @a setDripleafFall -1
/tag @a remove changeDripleafFall
Chain 4 commands:
/execute as @e[tag=dripleaf] at @s unless block ~ ~ ~ minecraft:big_dripleaf run kill @s
/execute at @e[tag=dripleaf,tag=newmarker] run particle minecraft:dust 0.2 0.66 0.32 1 ~ ~ ~ .2 .2 .2 100 25 normal
/scoreboard players set @e[tag=dripleaf,tag=newmarker] dripleafDir 0
/execute as @e[tag=dripleaf,tag=newmarker] at @s if block ~ ~ ~ minecraft:big_dripleaf[facing=north] run scoreboard players set @s dripleafDir 1
/execute as @e[tag=dripleaf,tag=newmarker] at @s if block ~ ~ ~ minecraft:big_dripleaf[facing=south] run scoreboard players set @s dripleafDir 2
/execute as @e[tag=dripleaf,tag=newmarker] at @s if block ~ ~ ~ minecraft:big_dripleaf[facing=west] run scoreboard players set @s dripleafDir 3
/execute as @e[tag=dripleaf,tag=newmarker] at @s run kill @e[tag=dripleaf,tag=!newmarker,distance=..1]
/scoreboard players set @e[tag=dripleaf,tag=newmarker] dripleafFall 0
/scoreboard players set @e[tag=dripleaf,tag=newmarker] dripleafBack 0
/tag @e[tag=dripleaf,tag=newmarker] remove newmarker
Chain 5 commands:
/execute as @a[scores={getDripleafBack=1..}] at @s as @e[tag=dripleaf,limit=1,sort=nearest] run tellraw @a ["",{"text":"Back Ticks: "},{"score":{"name":"@s","objective":"dripleafBack"}}]
/scoreboard players set @a getDripleafBack 0
Chain 6 commands:
/execute as @a[scores={getDripleafFall=1..}] at @s as @e[tag=dripleaf,limit=1,sort=nearest] run tellraw @a ["",{"text":"Fall Ticks: "},{"score":{"name":"@s","objective":"dripleafFall"}}]
/scoreboard players set @a getDripleafFall 0
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: