-
-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
345a06e
commit 3e3d713
Showing
12 changed files
with
56 additions
and
107 deletions.
There are no files selected for viewing
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
24 changes: 3 additions & 21 deletions
24
gm4_combat_expanded/data/gm4_combat_expanded/functions/player/damage.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,26 +1,8 @@ | ||
# damage player according to score | ||
# damage player according to damage storage | ||
# @s = player that is taking damage | ||
# at unspecified | ||
# run from armor/modifier/type/guardian/damage_calc | ||
# run from armor/modifier/type/half/damage | ||
# run from weapon/modifier/delay/explode_player | ||
|
||
# lower player's health to their new health | ||
execute if score $remove_health gm4_ce_data matches 512.. run damage @s 512 out_of_world | ||
execute if score $remove_health gm4_ce_data matches 512.. run scoreboard players remove $remove_health gm4_ce_data 512 | ||
execute if score $remove_health gm4_ce_data matches 256.. run damage @s 256 out_of_world | ||
execute if score $remove_health gm4_ce_data matches 256.. run scoreboard players remove $remove_health gm4_ce_data 256 | ||
execute if score $remove_health gm4_ce_data matches 128.. run damage @s 128 out_of_world | ||
execute if score $remove_health gm4_ce_data matches 128.. run scoreboard players remove $remove_health gm4_ce_data 128 | ||
execute if score $remove_health gm4_ce_data matches 64.. run damage @s 64 out_of_world | ||
execute if score $remove_health gm4_ce_data matches 64.. run scoreboard players remove $remove_health gm4_ce_data 64 | ||
execute if score $remove_health gm4_ce_data matches 32.. run damage @s 32 out_of_world | ||
execute if score $remove_health gm4_ce_data matches 32.. run scoreboard players remove $remove_health gm4_ce_data 32 | ||
execute if score $remove_health gm4_ce_data matches 16.. run damage @s 16 out_of_world | ||
execute if score $remove_health gm4_ce_data matches 16.. run scoreboard players remove $remove_health gm4_ce_data 16 | ||
execute if score $remove_health gm4_ce_data matches 8.. run damage @s 8 out_of_world | ||
execute if score $remove_health gm4_ce_data matches 8.. run scoreboard players remove $remove_health gm4_ce_data 8 | ||
execute if score $remove_health gm4_ce_data matches 4.. run damage @s 4 out_of_world | ||
execute if score $remove_health gm4_ce_data matches 4.. run scoreboard players remove $remove_health gm4_ce_data 4 | ||
execute if score $remove_health gm4_ce_data matches 2.. run damage @s 2 out_of_world | ||
execute if score $remove_health gm4_ce_data matches 2.. run scoreboard players remove $remove_health gm4_ce_data 2 | ||
execute if score $remove_health gm4_ce_data matches 1.. run damage @s 1 out_of_world | ||
$damage @s $(damage) out_of_world |
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
6 changes: 6 additions & 0 deletions
6
gm4_combat_expanded/data/gm4_combat_expanded/functions/player/heal/eval.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,6 @@ | ||
# reduce max health of player to their new health | ||
# @s = player to heal | ||
# at unspecified | ||
# run from armor/type/heal/activate | ||
|
||
$attribute @s minecraft:generic.max_health modifier add 8a3726c1-9a5c-4b10-86ba-b72a2540eeb2 "gm4_ce_remove_health" -$(remove_health) add |
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
6 changes: 6 additions & 0 deletions
6
gm4_combat_expanded/data/gm4_combat_expanded/functions/player/shield/eval.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,6 @@ | ||
# give player absorption effect based on their score in gm4_ce_absorp | ||
# @s = player to grant shield | ||
# at unspecified | ||
# run from player/shield/prep | ||
|
||
$effect give @s absorption 30 $(shield) true |
18 changes: 18 additions & 0 deletions
18
gm4_combat_expanded/data/gm4_combat_expanded/functions/player/shield/prep.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,18 @@ | ||
# give player absorption effect based on their score in gm4_ce_absorp | ||
# @s = player to grant shield | ||
# at unspecified | ||
# run from armor/modifier/type/reactive/add_level | ||
# run from player/process | ||
|
||
# remove one to match absorption level and store | ||
execute store result storage gm4_combat_expanded player_shield.shield int 1 run scoreboard players remove @s gm4_ce_absorp 1 | ||
|
||
# clear absorption to stop bug (MC-182497) | ||
effect clear @s absorption | ||
|
||
# apply absorption | ||
function gm4_combat_expanded:player/shield/eval with storage gm4_combat_expanded player_shield | ||
|
||
# cleanup | ||
data remove storage gm4_combat_expanded player_shield.shield | ||
scoreboard players reset @s gm4_ce_absorp |
28 changes: 0 additions & 28 deletions
28
gm4_combat_expanded/data/gm4_combat_expanded/functions/player/shield_player.mcfunction
This file was deleted.
Oops, something went wrong.
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