-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'battle' into battle-1.20.4
- Loading branch information
Showing
32 changed files
with
453 additions
and
54 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
Binary file not shown.
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
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
33 changes: 33 additions & 0 deletions
33
world/datapacks/lem.base/data/lem.base/functions/lobby/display/globalinfo/frozen.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,33 @@ | ||
##Set GlobalInfo | ||
#P1 | ||
bossbar set minecraft:globalinfo1 name {"translate":"lem.lobby.start.frozen"} | ||
#P2 | ||
bossbar set minecraft:globalinfo2 name {"translate":"lem.lobby.start.frozen"} | ||
#P3 | ||
bossbar set minecraft:globalinfo3 name {"translate":"lem.lobby.start.frozen"} | ||
#P4 | ||
bossbar set minecraft:globalinfo4 name {"translate":"lem.lobby.start.frozen"} | ||
#P5 | ||
bossbar set minecraft:globalinfo5 name {"translate":"lem.lobby.start.frozen"} | ||
#P6 | ||
bossbar set minecraft:globalinfo6 name {"translate":"lem.lobby.start.frozen"} | ||
#P7 | ||
bossbar set minecraft:globalinfo7 name {"translate":"lem.lobby.start.frozen"} | ||
#P8 | ||
bossbar set minecraft:globalinfo8 name {"translate":"lem.lobby.start.frozen"} | ||
#P9 | ||
bossbar set minecraft:globalinfo9 name {"translate":"lem.lobby.start.frozen"} | ||
#P10 | ||
bossbar set minecraft:globalinfo10 name {"translate":"lem.lobby.start.frozen"} | ||
#P11 | ||
bossbar set minecraft:globalinfo11 name {"translate":"lem.lobby.start.frozen"} | ||
#P12 | ||
bossbar set minecraft:globalinfo12 name {"translate":"lem.lobby.start.frozen"} | ||
#P13 | ||
bossbar set minecraft:globalinfo13 name {"translate":"lem.lobby.start.frozen"} | ||
#P14 | ||
bossbar set minecraft:globalinfo14 name {"translate":"lem.lobby.start.frozen"} | ||
#P15 | ||
bossbar set minecraft:globalinfo15 name {"translate":"lem.lobby.start.frozen"} | ||
#P16 | ||
bossbar set minecraft:globalinfo16 name {"translate":"lem.lobby.start.frozen"} |
2 changes: 1 addition & 1 deletion
2
world/datapacks/lem.base/data/lem.base/functions/lobby/timer/check.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
5 changes: 5 additions & 0 deletions
5
world/datapacks/lem.base/data/lem.base/functions/menu/load/host/admin/forceend.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,5 @@ | ||
##Stop game | ||
scoreboard players set #Store lem.gametimer 0 | ||
|
||
##Open menu | ||
function lem.base:menu/load/host/admin/open/main |
8 changes: 8 additions & 0 deletions
8
world/datapacks/lem.base/data/lem.base/functions/menu/load/host/admin/forcestart.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,8 @@ | ||
##Open menu | ||
function lem.base:menu/load/host/admin/open/main | ||
|
||
##Display message if gamestatus is not lobby | ||
execute unless score #Store lem.gamestatus matches 2 run tellraw @s {"text":"It is extremely unsafe to do this outside of the lobby! If you must, enable debug mode first.","color":"red"} | ||
|
||
##Start game if gamestatus is Lobby | ||
execute if score #Store lem.gamestatus matches 2 run function lem.base:mapdecider/run |
8 changes: 8 additions & 0 deletions
8
...atapacks/lem.base/data/lem.base/functions/menu/load/host/admin/lobby/timer/add.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,8 @@ | ||
##Add score | ||
scoreboard players add #Store lem.lobbytimerset 1 | ||
|
||
##Update timer | ||
scoreboard players operation #Store lem.timer = #Store lem.lobbytimerset | ||
|
||
##Open menu | ||
function lem.base:menu/load/host/admin/open/main |
8 changes: 8 additions & 0 deletions
8
...packs/lem.base/data/lem.base/functions/menu/load/host/admin/lobby/timer/remove.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,8 @@ | ||
##Remove score | ||
scoreboard players remove #Store lem.lobbytimerset 1 | ||
|
||
##Update timer | ||
scoreboard players operation #Store lem.timer = #Store lem.lobbytimerset | ||
|
||
##Open menu | ||
function lem.base:menu/load/host/admin/open/main |
8 changes: 8 additions & 0 deletions
8
...m.base/data/lem.base/functions/menu/load/host/admin/lobby/timer/toggle/disable.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,8 @@ | ||
##Disable timer | ||
scoreboard players set #Store lem.lobbytimerset -1 | ||
|
||
##Update display | ||
execute if score #Store lem.gamestatus matches 2 run function lem.base:lobby/display/run | ||
|
||
##Open menu | ||
function lem.base:menu/load/host/admin/open/main |
8 changes: 8 additions & 0 deletions
8
...em.base/data/lem.base/functions/menu/load/host/admin/lobby/timer/toggle/enable.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,8 @@ | ||
##Enable timer | ||
scoreboard players set #Store lem.lobbytimerset 60 | ||
|
||
##Update display | ||
execute if score #Store lem.gamestatus matches 2 run function lem.base:lobby/display/run | ||
|
||
##Open menu | ||
function lem.base:menu/load/host/admin/open/main |
11 changes: 11 additions & 0 deletions
11
world/datapacks/lem.base/data/lem.base/functions/menu/load/host/admin/lore/puppet.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,11 @@ | ||
##Summon the puppet master. | ||
execute at @e[tag=ingame] run summon salmon ~ ~ ~ {CustomNameVisible:1b,Health:80f,Passengers:[{id:"minecraft:evoker",Glowing:1b,CustomNameVisible:1b,Health:100f,SpellTicks:80,CustomName:'{"text":"The Fish Flesh Puppet"}',HandItems:[{id:"minecraft:salmon_bucket",Count:1b,tag:{CanPlaceOn:["#lem.base:all_blocks"],EntityTag:{CustomNameVisible:1b,CustomName:'{"text":"The Puppet Master\'s slightly weaker brother"}'}}},{id:"minecraft:salmon_spawn_egg",Count:1b,tag:{CanPlaceOn:["#lem.base:all_blocks"]}}],HandDropChances:[1.000F,1.000F],ArmorItems:[{},{},{},{id:salmon,Count:1}],ArmorDropChances:[0.000F,0.000F,0.000F,1.000F],active_effects:[{id:"minecraft:jump_boost",amplifier:2b,duration:-1,show_particles:0b},{id:"minecraft:glowing",amplifier:1b,duration:-1,show_particles:0b}],Attributes:[{Name:generic.max_health,Base:100},{Name:generic.follow_range,Base:128}]}],CustomName:'{"text":"The Puppet Master"}',HandItems:[{id:"minecraft:salmon_bucket",Count:1b,tag:{CanPlaceOn:["#lem.base:all_blocks"],EntityTag:{CustomNameVisible:1b,Health:80f,CustomName:'{"text":"The Puppet Master"}',active_effects:[{id:"minecraft:jump_boost",amplifier:3b,duration:-1,show_particles:0b},{id:"minecraft:glowing",amplifier:1b,duration:-1,show_particles:0b},{id:"minecraft:slow_falling",amplifier:1b,duration:-1,show_particles:0b}],Attributes:[{Name:generic.max_health,Base:80}]}}},{id:golden_apple,Count:1}],HandDropChances:[1.000F,1.000F],ArmorItems:[{id:iron_boots,Count:1},{id:iron_leggings,Count:1},{id:iron_chestplate,Count:1},{id:iron_helmet,Count:1}],ArmorDropChances:[1.000F,1.000F,1.000F,1.000F],active_effects:[{id:"minecraft:jump_boost",amplifier:3b,duration:-1,show_particles:0b},{id:"minecraft:glowing",amplifier:1b,duration:-1,show_particles:0b},{id:"minecraft:slow_falling",amplifier:1b,duration:-1,show_particles:0b}],Attributes:[{Name:generic.max_health,Base:80}]} | ||
|
||
##Warn everyone | ||
tellraw @a[tag=ingame] {"text":"The Puppet Master has been awoken!","color":"dark_purple"} | ||
discordMSG "The Puppet Master has been awoken!" | ||
execute as @a[tag=ingame] at @s run playsound entity.wither.spawn hostile @s ~ ~ ~ | ||
|
||
##Add this event to player savedata | ||
userconfig @a[tag=ingame] set lem.base:lore_puppet true | ||
userconfig @a[tag=ingame] sync |
14 changes: 14 additions & 0 deletions
14
world/datapacks/lem.base/data/lem.base/functions/menu/load/host/admin/open/lore.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,14 @@ | ||
##Header | ||
tellraw @s {"text":"- Lore -","color":"blue"} | ||
|
||
##Puppet Master | ||
tellraw @s {"text":"[Puppet Master]","color":"blue","clickEvent":{"action":"run_command","value":"/function lem.base:menu/load/host/admin/lore/puppet"},"hoverEvent":{"action":"show_text","contents":[{"text":"Summon the Puppet Master.","color":"dark_aqua"}]}} | ||
|
||
##Run functions for addons | ||
function #lem.base:menu/load/host/admin/open/lore | ||
|
||
##Go back button | ||
tellraw @s {"text":"[Go Back]","color":"gray","clickEvent":{"action":"run_command","value":"/function lem.base:menu/load/host/admin/open/main"},"hoverEvent":{"action":"show_text","contents":[{"text":"Click to go back to the normal configuration page","color":"dark_aqua"}]}} | ||
|
||
##Reset gamecfg score | ||
scoreboard players reset @s lem.gamecfg |
Oops, something went wrong.