Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cambios para la Vara de Trueno (#17)
Cambios de balance y mecánicas para la Vara de Trueno
- Loading branch information
Showing
6 changed files
with
18 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
##VARA DE TRUENO## | ||
function lezah:game_events/thunder_rod/detect_activation | ||
function lezah:game_events/thunder_rod/detect_activation | ||
function lezah:game_events/thunder_rod/cooldown |
10 changes: 5 additions & 5 deletions
10
LezaH/data/lezah/functions/game_events/thunder_rod/activate.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,6 +1,6 @@ | ||
execute at @e[distance=0.1..15] run summon lightning_bolt ~ ~ ~ | ||
execute if entity @e[distance=0.1..15] run clear @s carrot_on_a_stick{ID:9} 1 | ||
execute if entity @e[distance=0.1..15] run playsound entity.item.break master @a[distance=..7] ~ ~ ~ | ||
execute unless entity @e[distance=0.1..15] run title @s actionbar {"translate":"text.lezah.thunder_rod_radius","color":"red"} | ||
execute if entity @e[distance=0.1..15] run title @s actionbar {"translate":"text.lezah.thunder_rod_boom","color":"green"} | ||
execute at @e[distance=0.1..45,predicate=!steveapi:gamemode_19/creative,predicate=!steveapi:gamemode_19/spectator] run summon lightning_bolt ~ ~ ~ | ||
execute if entity @e[distance=0.1..45] run clear @s[predicate=!steveapi:gamemode_19/creative] carrot_on_a_stick{ID:9} 1 | ||
execute if entity @e[distance=0.1..45] if entity @s[predicate=!steveapi:gamemode_19/creative] run playsound entity.item.break master @a[distance=..7] ~ ~ ~ | ||
execute unless entity @e[distance=0.1..45] run title @s actionbar {"translate":"text.lezah.thunder_rod_radius","color":"red"} | ||
execute if entity @e[distance=0.1..45] run title @s actionbar {"translate":"text.lezah.thunder_rod_boom","color":"green"} | ||
scoreboard players reset @s lezah.thunderRod |
1 change: 1 addition & 0 deletions
1
LezaH/data/lezah/functions/game_events/thunder_rod/detect_activation.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,2 +1,3 @@ | ||
execute as @a[predicate=lezah:hand_items/mainhand/thunder_rod] at @s if score @s lezah.thunderRod matches 1 run function lezah:game_events/thunder_rod/activate | ||
execute as @a[predicate=lezah:hand_items/mainhand/thunder_rod,predicate=steveapi:flags/is_sneaking] at @s if score @s steve.jump matches 1 run function lezah:game_events/thunder_rod/super | ||
execute as @a[predicate=lezah:hand_items/mainhand/thunder_rod] if score @s lezah.thunderRod matches 2.. run scoreboard players reset @s lezah.thunderRod |
4 changes: 4 additions & 0 deletions
4
LezaH/data/lezah/functions/game_events/thunder_rod/super.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,4 @@ | ||
execute as @s at @s run effect give @e[distance=..45] levitation 3 14 true | ||
execute as @s at @s run effect give @e[distance=..45] slow_falling 30 0 true | ||
execute as @s at @s run playsound entity.generic.explode master @a[distance=..45] | ||
execute as @s run title @s actionbar {"translate":"text.lezah.thunder_rod_shoot_thunder","color": "aqua"} |
4 changes: 4 additions & 0 deletions
4
LezaH/data/lezah/functions/game_events/unblock_use.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,4 @@ | ||
tag @s remove lezah.block_use | ||
scoreboard players set @s lezah.thunderRod 3 | ||
tell @s Unblock use | ||
function lezah:game_events/thunder_rod/cooldown_trigger |
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