-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'base' into toolbox-testing
- Loading branch information
Showing
21 changed files
with
211 additions
and
24 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
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 |
46 changes: 46 additions & 0 deletions
46
world/datapacks/lem.base/data/lem.base/functions/menu/load/host/admin/open/main.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,46 @@ | ||
##Header | ||
tellraw @s {"text":"- Admin -","color":"red"} | ||
|
||
##Display warning | ||
tellraw @s ["",{"text":"⚠ ","color":"dark_red"},{"text":"These options are ","color":"red"},{"text":"HIGHLY EXPERIMENTAL","bold":true,"color":"dark_red"},{"text":" and are ","color":"red"},{"text":"NOT","color":"dark_red"},{"text":" meant for use on public servers!","color":"red"},"\n",{"text":"Be careful with what you are doing!","underlined":true,"color":"gold"}] | ||
execute if entity @s[tag=debug] run tellraw @s ["",{"text":"⚠ ","color":"red"},{"text":"Debug mode enabled!","color":"gold"}] | ||
#MinecraftJson export: {"jformat":8,"jobject":[{"bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false,"font":null,"color":"dark_red","insertion":"","click_event_type":"none","click_event_value":"","hover_event_type":"none","hover_event_value":"","hover_event_children":[],"text":"⚠ "},{"bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false,"font":null,"color":"red","insertion":"","click_event_type":"none","click_event_value":"","hover_event_type":"none","hover_event_value":"","hover_event_children":[],"text":"These options are "},{"bold":true,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false,"font":null,"color":"dark_red","insertion":"","click_event_type":"none","click_event_value":"","hover_event_type":"none","hover_event_value":"","hover_event_children":[],"text":"HIGHLY EXPERIMENTAL"},{"bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false,"font":null,"color":"red","insertion":"","click_event_type":"none","click_event_value":"","hover_event_type":"none","hover_event_value":"","hover_event_children":[],"text":" and are "},{"bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false,"font":null,"color":"dark_red","insertion":"","click_event_type":"none","click_event_value":"","hover_event_type":"none","hover_event_value":"","hover_event_children":[],"text":"NOT"},{"bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false,"font":null,"color":"red","insertion":"","click_event_type":"none","click_event_value":"","hover_event_type":"none","hover_event_value":"","hover_event_children":[],"text":" meant for use on public servers!"},{"bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false,"font":null,"color":"none","insertion":"","click_event_type":"none","click_event_value":"","hover_event_type":"none","hover_event_value":"","hover_event_children":[],"text":"\n"},{"bold":false,"italic":false,"underlined":true,"strikethrough":false,"obfuscated":false,"font":null,"color":"gold","insertion":"","click_event_type":"none","click_event_value":"","hover_event_type":"none","hover_event_value":"","hover_event_children":[],"text":"Be careful with what you are doing!"}],"command":"tellraw @s %s","jtemplate":"tellraw"} | ||
|
||
##Recon Mode | ||
#Disabled | ||
execute if score #Store lem.recon matches 0 run tellraw @s ["",{"text":"[","color":"blue","clickEvent":{"action":"run_command","value":"/function lem.base:menu/load/host/admin/recon/enable"},"hoverEvent":{"action":"show_text","contents":[{"text":"Adjusts the game behavior to allow for exploring maps instead of fighting.","color":"dark_aqua"}]}},{"text":"❌","color":"red","clickEvent":{"action":"run_command","value":"/function lem.base:menu/load/host/admin/recon/enable"},"hoverEvent":{"action":"show_text","contents":[{"text":"Adjusts the game behavior to allow for exploring maps instead of fighting.","color":"dark_aqua"}]}},{"text":"] Recon Mode","color":"blue","clickEvent":{"action":"run_command","value":"/function lem.base:menu/load/host/admin/recon/enable"},"hoverEvent":{"action":"show_text","contents":[{"text":"Adjusts the game behavior to allow for exploring maps instead of fighting.","color":"dark_aqua"}]}}] | ||
#Enabled | ||
execute if score #Store lem.recon matches 1 run tellraw @s ["",{"text":"[","color":"blue","clickEvent":{"action":"run_command","value":"/function lem.base:menu/load/host/admin/recon/disable"},"hoverEvent":{"action":"show_text","contents":[{"text":"Adjusts the game behavior to allow for exploring maps instead of fighting.","color":"dark_aqua"}]}},{"text":"✔","color":"green","clickEvent":{"action":"run_command","value":"/function lem.base:menu/load/host/admin/recon/disable"},"hoverEvent":{"action":"show_text","contents":[{"text":"Adjusts the game behavior to allow for exploring maps instead of fighting.","color":"dark_aqua"}]}},{"text":"] Recon Mode","color":"blue","clickEvent":{"action":"run_command","value":"/function lem.base:menu/load/host/admin/recon/disable"},"hoverEvent":{"action":"show_text","contents":[{"text":"Adjusts the game behavior to allow for exploring maps instead of fighting.","color":"dark_aqua"}]}}] | ||
|
||
##Lobby timer toggle | ||
#Disabled | ||
execute if score #Store lem.lobbytimerset matches -1 run tellraw @s ["",{"text":"[","color":"blue","clickEvent":{"action":"run_command","value":"/function lem.base:menu/load/host/admin/lobby/timer/toggle/enable"},"hoverEvent":{"action":"show_text","contents":[{"text":"When 2 or more players are in the lobby, a timer counts down to start the game.","color":"dark_aqua"}]}},{"text":"❌","color":"red","clickEvent":{"action":"run_command","value":"/function lem.base:menu/load/host/admin/lobby/timer/toggle/enable"},"hoverEvent":{"action":"show_text","contents":[{"text":"When 2 or more players are in the lobby, a timer counts down to start the game.","color":"dark_aqua"}]}},{"text":"] Lobby Timer","color":"blue","clickEvent":{"action":"run_command","value":"/function lem.base:menu/load/host/admin/lobby/timer/toggle/enable"},"hoverEvent":{"action":"show_text","contents":[{"text":"When 2 or more players are in the lobby, a timer counts down to start the game.","color":"dark_aqua"}]}}] | ||
#Enabled | ||
execute if score #Store lem.lobbytimerset matches 0.. run tellraw @s ["",{"text":"[","color":"blue","clickEvent":{"action":"run_command","value":"/function lem.base:menu/load/host/admin/lobby/timer/toggle/disable"},"hoverEvent":{"action":"show_text","contents":[{"text":"When 2 or more players are in the lobby, a timer counts down to start the game.","color":"dark_aqua"}]}},{"text":"✔","color":"green","clickEvent":{"action":"run_command","value":"/function lem.base:menu/load/host/admin/lobby/timer/toggle/disable"},"hoverEvent":{"action":"show_text","contents":[{"text":"When 2 or more players are in the lobby, a timer counts down to start the game.","color":"dark_aqua"}]}},{"text":"] Lobby Timer","color":"blue","clickEvent":{"action":"run_command","value":"/function lem.base:menu/load/host/admin/lobby/timer/toggle/disable"},"hoverEvent":{"action":"show_text","contents":[{"text":"When 2 or more players are in the lobby, a timer counts down to start the game.","color":"dark_aqua"}]}}] | ||
|
||
##Lobby timer counter | ||
execute unless score #Store lem.lobbytimerset matches -1 run tellraw @s ["",{"text":" [","color":"blue","clickEvent":{"action":"run_command","value":"/function lem.base:menu/load/host/admin/lobby/timer/remove"}},{"text":"-","color":"red","clickEvent":{"action":"run_command","value":"/function lem.base:menu/load/host/admin/lobby/timer/remove"}},{"text":"] ","color":"blue","clickEvent":{"action":"run_command","value":"/function lem.base:menu/load/host/admin/lobby/timer/remove"}},{"score":{"name":"#Store","objective":"lem.lobbytimerset"},"color":"green"},{"text":" [","color":"blue","clickEvent":{"action":"run_command","value":"/function lem.base:menu/load/host/admin/lobby/timer/add"}},{"text":"+","color":"green","clickEvent":{"action":"run_command","value":"/function lem.base:menu/load/host/admin/lobby/timer/add"}},{"text":"]","color":"blue","clickEvent":{"action":"run_command","value":"/function lem.base:menu/load/host/admin/lobby/timer/add"}}] | ||
|
||
##Lore | ||
tellraw @s {"text":"[Lore]","color":"blue","clickEvent":{"action":"run_command","value":"/function lem.base:menu/load/host/admin/open/lore"},"hoverEvent":{"action":"show_text","contents":[{"text":"Description can not be disclosed at this time.","color":"dark_aqua"}]}} | ||
|
||
##Steal Host Permissions | ||
tellraw @s {"text":"[Steal Host]","color":"blue","clickEvent":{"action":"run_command","value":"/function lem.base:menu/load/host/admin/stealhost"},"hoverEvent":{"action":"show_text","contents":[{"text":"Sets you as the current host. You know why this option is here.","color":"dark_aqua"}]}} | ||
|
||
##End Round | ||
tellraw @s {"text":"[End Round]","color":"blue","clickEvent":{"action":"run_command","value":"/function lem.base:menu/load/host/admin/forceend"},"hoverEvent":{"action":"show_text","contents":[{"text":"Stop the current round.","color":"dark_aqua"}]}} | ||
|
||
##Force Start Game | ||
#Standard | ||
execute unless entity @s[tag=debug] run tellraw @s {"text":"[Load Map]","color":"gold","clickEvent":{"action":"run_command","value":"/function lem.base:menu/load/host/admin/forcestart"},"hoverEvent":{"action":"show_text","contents":[{"text":"Loads the map, regardless of wait time or player count.","color":"dark_aqua"}]}} | ||
#Debug | ||
execute if entity @s[tag=debug] run tellraw @s {"text":"[Load Map]","color":"gold","clickEvent":{"action":"run_command","value":"/function lem.base:mapdecider/run"},"hoverEvent":{"action":"show_text","contents":[{"text":"Loads the map, no matter the conditions.","color":"dark_aqua"}]}} | ||
|
||
##Run functions for addons | ||
function #lem.base:menu/load/host/admin/open/main | ||
|
||
##Go back button | ||
tellraw @s {"text":"[Go Back]","color":"gray","clickEvent":{"action":"run_command","value":"/trigger lem.gamecfg"},"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 |
5 changes: 5 additions & 0 deletions
5
.../datapacks/lem.base/data/lem.base/functions/menu/load/host/admin/recon/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,5 @@ | ||
##Disable feature | ||
scoreboard players set #Store lem.recon 0 | ||
|
||
##Open menu | ||
function lem.base:menu/load/host/admin/open/main |
5 changes: 5 additions & 0 deletions
5
...d/datapacks/lem.base/data/lem.base/functions/menu/load/host/admin/recon/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,5 @@ | ||
##Enable feature | ||
scoreboard players set #Store lem.recon 1 | ||
|
||
##Open menu | ||
function lem.base:menu/load/host/admin/open/main |
4 changes: 4 additions & 0 deletions
4
world/datapacks/lem.base/data/lem.base/functions/menu/load/host/admin/run.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 @@ | ||
##Display button | ||
tellraw @s {"text":"[Admin]","color":"red","clickEvent":{"action":"run_command","value":"/function lem.base:menu/load/host/admin/open/main"},"hoverEvent":{"action":"show_text","contents":[{"text":"Administrator only settings. ","color":"dark_red"},{"text":"Use with caution!","bold":true,"color":"dark_red"}]}} | ||
|
||
#minecraftjson.com export: {"jformat":8,"jobject":[{"bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false,"font":null,"color":"red","insertion":"","click_event_type":"run_command","click_event_value":"/function lem.base:menu/load/host/admin/open/main","hover_event_type":"show_text","hover_event_value":"","hover_event_children":[{"bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false,"font":null,"color":"dark_red","insertion":"","click_event_type":0,"click_event_value":"","hover_event_type":0,"hover_event_value":"","hover_event_children":[],"text":"Administrator only settings. "},{"bold":true,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false,"font":null,"color":"dark_red","insertion":"","click_event_type":0,"click_event_value":"","hover_event_type":0,"hover_event_value":"","hover_event_children":[],"text":"Use with caution!"}],"text":"[Admin]"}],"command":"tellraw @s %s","jtemplate":"tellraw"} |
11 changes: 11 additions & 0 deletions
11
world/datapacks/lem.base/data/lem.base/functions/menu/load/host/admin/stealhost.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 @@ | ||
##Add tag | ||
tag @s add silentTransfer | ||
|
||
##Steal the permissions | ||
function lem.base:menu/configure/swaphost/run | ||
|
||
##Remove tag | ||
tag @s remove silentTransfer | ||
|
||
##Open menu | ||
function lem.base:menu/load/host/admin/open/main |
Oops, something went wrong.