-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ability): Vengeful Spectre targets tamed and trusting entities (h…
- Loading branch information
Showing
7 changed files
with
26 additions
and
7 deletions.
There are no files selected for viewing
8 changes: 4 additions & 4 deletions
8
Data_Pack/data/roguecraft/functions/ability/classes/reaper_1.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
execute if score @s soul_charge matches 1.. if entity @e[distance=1.5..16,type=!#roguecraft:reaper_excluded,sort=nearest,limit=1] run function roguecraft:ability/classes/reaper_2 | ||
execute if score @s soul_charge matches 1.. if entity @e[distance=1.5..16,type=!#roguecraft:reaper_excluded,tag=!VengefulSpectreImmune,sort=nearest,limit=1] run function roguecraft:ability/classes/reaper_2 | ||
|
||
execute unless score @s soul_charge matches 1.. as @s run tellraw @s[scores={toggle_ability_feedback=0}] {"translate":"roguecraft.chat_messages.ability_no_soul_charge","italic":true,"color":"red"} | ||
execute unless score @s soul_charge matches 1.. as @s run playsound minecraft:block.note_block.didgeridoo master @s ~ ~ ~ 1 0.5 | ||
|
||
execute if score @s soul_charge matches 1.. unless entity @e[distance=..16,type=!#roguecraft:reaper_excluded,sort=nearest,limit=1] as @s run tellraw @s[scores={toggle_ability_feedback=0}] {"translate":"roguecraft.chat_messages.ability_no_entity_nearby","italic":true,"color":"red"} | ||
execute if score @s soul_charge matches 1.. unless entity @e[distance=..16,type=!#roguecraft:reaper_excluded,sort=nearest,limit=1] as @s run playsound minecraft:block.note_block.didgeridoo master @s ~ ~ ~ 1 0.5 | ||
execute if score @s soul_charge matches 1.. unless entity @e[distance=..16,type=!#roguecraft:reaper_excluded,tag=!VengefulSpectreImmune,sort=nearest,limit=1] as @s run tellraw @s[scores={toggle_ability_feedback=0}] {"translate":"roguecraft.chat_messages.ability_no_entity_nearby","italic":true,"color":"red"} | ||
execute if score @s soul_charge matches 1.. unless entity @e[distance=..16,type=!#roguecraft:reaper_excluded,tag=!VengefulSpectreImmune,sort=nearest,limit=1] as @s run playsound minecraft:block.note_block.didgeridoo master @s ~ ~ ~ 1 0.5 | ||
|
||
execute if score @s soul_charge matches 1.. if entity @e[distance=..16,type=!#roguecraft:reaper_excluded,sort=nearest,limit=1] run scoreboard players set @s soul_charge 0 | ||
execute if score @s soul_charge matches 1.. if entity @e[distance=..16,type=!#roguecraft:reaper_excluded,tag=!VengefulSpectreImmune,sort=nearest,limit=1] run scoreboard players set @s soul_charge 0 | ||
|
||
execute as @e[tag=id,type=marker] run function roguecraft:set_mana_bar with entity @s data |
2 changes: 1 addition & 1 deletion
2
Data_Pack/data/roguecraft/functions/ability/classes/reaper_2.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
Data_Pack/data/roguecraft/functions/tick/tag_tamed_entities.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
execute as @e[type=#roguecraft:tameable,distance=..16,tag=!VengefulSpectreImmune] if data entity @s Owner run tag @s add VengefulSpectreImmune | ||
execute as @e[type=minecraft:fox,distance=..16,tag=!VengefulSpectreImmune,nbt=!{Trusted:[]}] run tag @s add VengefulSpectreImmune | ||
execute as @e[type=minecraft:ocelot,distance=..16,tag=!VengefulSpectreImmune,nbt={Trusting:1b}] run tag @s add VengefulSpectreImmune |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"values": [ | ||
"cat", | ||
"donkey", | ||
"horse", | ||
"llama", | ||
"mule", | ||
"parrot", | ||
"skeleton_horse", | ||
"trader_llama", | ||
"wolf", | ||
"zombie_horse" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters