Skip to content

Commit

Permalink
revert last change since it causes inconsistencies
Browse files Browse the repository at this point in the history
  • Loading branch information
PuckiSilver committed Jul 12, 2023
1 parent b644b34 commit 947ea7a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/data/argon/functions/player_hurt_entity.mcfunction
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ for i in range(bit_amt):
pow = 2**i
if entity @s[advancements={./player_hurt_entity={f'bit{i}'=true}}] scoreboard players add #id f'{namespace}.id' pow

as @e[type=!#./non_living,limit=1,predicate=./match_id] store success score #found f'{namespace}.id' function #./player_hurt_entity
as @e[type=!#./non_living,limit=1,predicate=./match_id] function ~/as_entity:
scoreboard players set #found f'{namespace}.id' 1
function #./player_hurt_entity

if score #found f'{namespace}.id' matches 0 run function #./player_killed_entity

advancement revoke @s only ./player_hurt_entity
Expand Down

0 comments on commit 947ea7a

Please sign in to comment.