Skip to content

Commit

Permalink
⚡️ Optimize and move things around
Browse files Browse the repository at this point in the history
  • Loading branch information
aksiome committed May 5, 2024
1 parent 12f20ba commit b85e980
Show file tree
Hide file tree
Showing 221 changed files with 645 additions and 536 deletions.
2 changes: 1 addition & 1 deletion GLOBAL/data/coc/functions/load.mcfunction
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ scoreboard objectives add closing dummy

tellraw @a[team=0config] ["",{"text":"COC : Loaded\n\nSetup "},{"text":"opening","clickEvent":{"action":"run_command","value":"/scoreboard players set setup setup 1"}},{"text":" / "},{"text":"closing","clickEvent":{"action":"run_command","value":"/scoreboard players set setup setup 2"}}]

give @a[team=0config] written_book{pages:['["",{"text":"Team : \\n","clickEvent":{"action":"run_command","value":"/function coc:teams/update_team"},"hoverEvent":{"action":"show_text","contents":"Click here to update the teams"}},{"text":"See \\u2714","color":"green","clickEvent":{"action":"run_command","value":"/function coc:see"}},{"text":" / "},{"text":"NoSee \\u2716","color":"dark_red","clickEvent":{"action":"run_command","value":"/function coc:no_see"}},{"text":"\\n\\nStaff : \\n"},{"text":"See \\u2714","color":"green","clickEvent":{"action":"run_command","value":"/team modify 1staff nametagVisibility always"}},{"text":" / "},{"text":"NoSee \\u2716","color":"dark_red","clickEvent":{"action":"run_command","value":"/team modify 1staff nametagVisibility never"}},{"text":"\\n\\nSendCmdFdback : \\n"},{"text":"On \\u2714","color":"green","clickEvent":{"action":"run_command","value":"/gamerule sendCommandFeedback true"}},{"text":" / "},{"text":"Off \\u2716","color":"dark_red","clickEvent":{"action":"run_command","value":"/gamerule sendCommandFeedback false"}},{"text":"\\n\\n"},{"text":"Players List","hoverEvent":{"action":"show_text","contents":"Click here to see the number of players connected (yes there is /list but I didn\'t know that command :/ )"},"clickEvent": {"action": "run_command","value":"/function coc:players"}},{"text":"\\n\\n"},{"text":"[5 minutes left]","clickEvent": {"action": "run_command","value":"/function coc:five_minute_left"}},{"text":"\\n\\n"},{"text":"Start","hoverEvent":{"action":"show_text","contents":"Let\'s go"},"clickEvent": {"action": "run_command","value":"/function coc:start"}},{"text":" | "},{"text":"Thanks","hoverEvent":{"action":"show_text","contents":"Thanks all of the staff etc..."},"clickEvent": {"action": "run_command","value":"/function coc:thanks/0"}}]'],title:"Control book",author:fantom,display:{Lore:["This book is for the CO Ceremonies"]}}
#give @a[team=0config] written_book{pages:['["",{"text":"Team : \\n","clickEvent":{"action":"run_command","value":"/function coc:teams/update_team"},"hoverEvent":{"action":"show_text","contents":"Click here to update the teams"}},{"text":"See \\u2714","color":"green","clickEvent":{"action":"run_command","value":"/function coc:see"}},{"text":" / "},{"text":"NoSee \\u2716","color":"dark_red","clickEvent":{"action":"run_command","value":"/function coc:no_see"}},{"text":"\\n\\nStaff : \\n"},{"text":"See \\u2714","color":"green","clickEvent":{"action":"run_command","value":"/team modify 1staff nametagVisibility always"}},{"text":" / "},{"text":"NoSee \\u2716","color":"dark_red","clickEvent":{"action":"run_command","value":"/team modify 1staff nametagVisibility never"}},{"text":"\\n\\nSendCmdFdback : \\n"},{"text":"On \\u2714","color":"green","clickEvent":{"action":"run_command","value":"/gamerule sendCommandFeedback true"}},{"text":" / "},{"text":"Off \\u2716","color":"dark_red","clickEvent":{"action":"run_command","value":"/gamerule sendCommandFeedback false"}},{"text":"\\n\\n"},{"text":"Players List","hoverEvent":{"action":"show_text","contents":"Click here to see the number of players connected (yes there is /list but I didn\'t know that command :/ )"},"clickEvent": {"action": "run_command","value":"/function coc:players"}},{"text":"\\n\\n"},{"text":"[5 minutes left]","clickEvent": {"action": "run_command","value":"/function coc:five_minute_left"}},{"text":"\\n\\n"},{"text":"Start","hoverEvent":{"action":"show_text","contents":"Let\'s go"},"clickEvent": {"action": "run_command","value":"/function coc:start"}},{"text":" | "},{"text":"Thanks","hoverEvent":{"action":"show_text","contents":"Thanks all of the staff etc..."},"clickEvent": {"action": "run_command","value":"/function coc:thanks/0"}}]'],title:"Control book",author:fantom,display:{Lore:["This book is for the CO Ceremonies"]}}


4 changes: 2 additions & 2 deletions GLOBAL/data/global/functions/__load__.mcfunction
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ scoreboard objectives add health health {"text":"❤","color":"red"}

# Endgame title ---------------------------------------------------------------

scoreboard objectives add global.animated_title.timer dummy


# Living time -----------------------------------------------------------------

Expand Down Expand Up @@ -75,7 +75,7 @@ team add lobby
team modify lobby color white
team modify lobby friendlyFire false
team modify lobby seeFriendlyInvisibles true
team join lobby @a
#team join lobby @a

# Constants
scoreboard players set 10 const 10
Expand Down
3 changes: 1 addition & 2 deletions GLOBAL/data/global/functions/__tick__.mcfunction
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ execute as @e[scores={UUID=0}] run function #lib:get_id

# Animations ------------------------------------------------------------------

execute if entity @a[scores={global.animated_title.timer=1..}] run function global:animated_title/animation
function #global:drop
function #global:join
function #global:kill_items
Expand Down Expand Up @@ -55,4 +54,4 @@ tag @a add global.can_start_games

# Clear music of all in-game players ------------------------------------------

stopsound @a[team=!lobby] music
stopsound @a[team=!lobby] music
16 changes: 0 additions & 16 deletions GLOBAL/data/global/functions/animated_title/animation.mcfunction

This file was deleted.

13 changes: 0 additions & 13 deletions GLOBAL/data/global/functions/animated_title/start.mcfunction

This file was deleted.

11 changes: 0 additions & 11 deletions GLOBAL/data/global/functions/animated_title/stop.mcfunction

This file was deleted.

27 changes: 0 additions & 27 deletions GLOBAL/data/global/functions/animated_title/type/defeat.mcfunction

This file was deleted.

23 changes: 0 additions & 23 deletions GLOBAL/data/global/functions/animated_title/type/draw.mcfunction

This file was deleted.

Loading

0 comments on commit b85e980

Please sign in to comment.