Skip to content

Commit

Permalink
Cambios para la Vara de Trueno (#17)
Browse files Browse the repository at this point in the history
Cambios de balance y mecánicas para la Vara de Trueno
  • Loading branch information
hazelcode committed Dec 9, 2022
2 parents 90a708b + 96ae433 commit 9b1a8d0
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 6 deletions.
3 changes: 2 additions & 1 deletion LezaH/data/lezah/functions/game_events/main.mcfunction
@@ -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
@@ -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,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
@@ -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 LezaH/data/lezah/functions/game_events/unblock_use.mcfunction
@@ -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
2 changes: 2 additions & 0 deletions LezaH/data/lezah/functions/loading/load.mcfunction
Expand Up @@ -16,6 +16,8 @@ scoreboard objectives add raidsVencidas custom:raid_win
scoreboard objectives add maderaTalada broken:oak_log
scoreboard objectives add lezah.Data dummy
scoreboard objectives add lezah.thunderRod used:carrot_on_a_stick
scoreboard objectives add lezah.trcooldown dummy
scoreboard objectives add lezah.trcTrigger dummy

##BOSSBARS##
#NO HAY NINGUNA AÚN#
Expand Down

0 comments on commit 9b1a8d0

Please sign in to comment.