Skip to content

Commit

Permalink
Fix issues with host dummy function
Browse files Browse the repository at this point in the history
  • Loading branch information
DinnerBeef committed Oct 26, 2023
1 parent 50295c1 commit 9544796
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions data/lt/functions/utility/hosts/hosts_dummy.mcfunction
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ kill @e[tag=hostDummy]
scoreboard objectives add global.utility dummy
scoreboard players set count global.utility 0
execute as @e[tag=temp] run scoreboard players add count global.utility 1
execute if score count global.utility matches 1.. run tag @s add host01
execute if score count global.utility matches 2.. run tag @s[tag=!host01] add host02
execute if score count global.utility matches 3.. run tag @s[tag=!host01,tag=!host03] add host03
execute if score count global.utility matches 1.. run tag @a[tag=temp,limit=1] add host01
execute if score count global.utility matches 2.. run tag @a[tag=temp,tag=!host01,limit=1] add host02
execute if score count global.utility matches 3.. run tag @a[tag=temp,tag=!host01,tag=!host03] add host03
execute if score count global.utility matches 1.. as @e[tag=host01Marker] at @s run summon dummyplayers:dummy_player ~ ~ ~ {Tags:["dummyHost01", "hostDummy"]}
execute if score count global.utility matches 2.. as @e[tag=host02Marker] at @s run summon dummyplayers:dummy_player ~ ~ ~ {Tags:["dummyHost02", "hostDummy"]}
execute if score count global.utility matches 3.. as @e[tag=host03Marker] at @s run summon dummyplayers:dummy_player ~ ~ ~ {Tags:["dummyHost03", "hostDummy"]}
execute as @e[tag=host01] run data modify entity @e[tag=dummyHost01,limit=1] ProfileID set from entity @s UUID
execute as @e[tag=host02] run data modify entity @e[tag=dummyHost02,limit=1] ProfileID set from entity @s UUID
execute as @e[tag=host03] run data modify entity @e[tag=dummyHost03,limit=1] ProfileID set from entity @s UUID
execute as @p[tag=host01] run data modify entity @e[tag=dummyHost01,limit=1] ProfileID set from entity @s UUID
execute as @p[tag=host02] run data modify entity @e[tag=dummyHost02,limit=1] ProfileID set from entity @s UUID
execute as @p[tag=host03] run data modify entity @e[tag=dummyHost03,limit=1] ProfileID set from entity @s UUID
tag @a remove host01
tag @a remove host02
tag @a remove host03

0 comments on commit 9544796

Please sign in to comment.