15 lines
No EOL
6.3 KiB
MCFunction
Executable file
15 lines
No EOL
6.3 KiB
MCFunction
Executable file
tellraw @s {text:' ',color:'dark_gray',strikethrough:true}
|
|
tellraw @s [' Graves',{text:' / ',color:'gray'},'Global Settings ']
|
|
tellraw @s {text:' ',color:'dark_gray',strikethrough:true}
|
|
execute if data storage graves:config {allow_robbing:true} run tellraw @s [{text:'[ \u2714 ]',color:'green',click_event:{action:'run_command',command:'function graves:disable_allow_robbing'},hover_event:{action:'show_text',value:['',{text:'Click to disable ',color:'red'},'Grave Robbing',{text:'.',color:'red'},{text:'\nWhen enabled, players can open graves they do not own.',color:'gray'},{text:'\nDefault: Disabled',color:'dark_gray'}]}},' Grave Robbing']
|
|
execute unless data storage graves:config {allow_robbing:true} run tellraw @s ['',{text:'[ \u274c ]',color:'red',click_event:{action:'run_command',command:'function graves:enable_allow_robbing'},hover_event:{action:'show_text',value:['',{text:'Click to enable ',color:'green'},'Grave Robbing',{text:'.',color:'green'},{text:'\nWhen enabled, players can open graves they do not own.',color:'gray'},{text:'\nDefault: Disabled',color:'dark_gray'}]}},' Grave Robbing']
|
|
execute if data storage graves:config {pick_up_xp:true} run tellraw @s ['',{text:'[ \u2714 ]',color:'green',click_event:{action:'run_command',command:'function graves:disable_pick_up_xp'},hover_event:{action:'show_text',value:['',{text:'Click to disable ',color:'red'},'XP Collection',{text:'.',color:'red'},{text:'\nWhen enabled, graves collect XP dropped on death.\nNote that players do not drop all their XP on death.',color:'gray'},{text:'\nDefault: Enabled',color:'dark_gray'}]}},' XP Collection']
|
|
execute unless data storage graves:config {pick_up_xp:true} run tellraw @s ['',{text:'[ \u274c ]',color:'red',click_event:{action:'run_command',command:'function graves:enable_pick_up_xp'},hover_event:{action:'show_text',value:['',{text:'Click to enable ',color:'green'},'XP Collection',{text:'.',color:'green'},{text:'\nWhen enabled, graves collect XP dropped on death.\nNote that players do not drop all their XP on death.',color:'gray'},{text:'\nDefault: Enabled',color:'dark_gray'}]}},' XP Collection']
|
|
execute if data storage graves:config {allow_locating:true} run tellraw @s ['',{text:'[ \u2714 ]',color:'green',click_event:{action:'run_command',command:'function graves:disable_allow_locating'},hover_event:{action:'show_text',value:['',{text:'Click to disable ',color:'red'},'Grave Locating',{text:'.',color:'red'},{text:'\nWhen enabled, players can see the coordinates of their graves.',color:'gray'},{text:'\nDefault: Opposite of /gamerule reducedDebugInfo',color:'dark_gray'}]}},' Grave Locating']
|
|
execute unless data storage graves:config {allow_locating:true} run tellraw @s ['',{text:'[ \u274c ]',color:'red',click_event:{action:'run_command',command:'function graves:enable_allow_locating'},hover_event:{action:'show_text',value:['',{text:'Click to enable ',color:'green'},'Grave Locating',{text:'.',color:'green'},{text:'\nWhen enabled, players can see the coordinates of their graves.',color:'gray'},{text:'\nDefault: Opposite of /gamerule reducedDebugInfo',color:'dark_gray'}]}},' Grave Locating']
|
|
execute if data storage graves:config {compatibility_mode:true} run tellraw @s ['',{text:'[ \u2714 ]',color:'green',click_event:{action:'run_command',command:'function graves:disable_compatibility_mode'},hover_event:{action:'show_text',value:['',{text:'Click to disable ',color:'red'},'Compatibility Mode',{text:'.',color:'red'},{text:"\nThis fixes graves not picking up items from certain modded slots, or not picking up certain modded items with special behavior on death. When enabled, graves pick up every item dropped in the exact same tick and position of death, even if the item wasn't detected in your inventory.",color:'gray'},{text:'\nThis also means if multiple players die in the exact same tick and position, one grave picks up all the items.',color:'red'},{text:'\nDefault: Disabled',color:'dark_gray'}]}},' Compatibility Mode']
|
|
execute unless data storage graves:config {compatibility_mode:true} run tellraw @s ['',{text:'[ \u274c ]',color:'red',click_event:{action:'run_command',command:'function graves:enable_compatibility_mode'},hover_event:{action:'show_text',value:['',{text:'Click to enable ',color:'green'},'Compatibility Mode',{text:'.',color:'green'},{text:"\nThis fixes graves not picking up items from certain modded slots, or not picking up certain modded items with special behavior on death. When enabled, graves pick up every item dropped in the exact same tick and position of death, even if the item wasn't detected in your inventory.",color:'gray'},{text:'\nThis also means if multiple players die in the exact same tick and position, one grave picks up all the items.',color:'red'},{text:'\nDefault: Disabled',color:'dark_gray'}]}},' Compatibility Mode']
|
|
tellraw @s ['',{text:'[ \u270e ]',color:'gray',click_event:{action:'suggest_command',command:'/scoreboard players set $despawn_seconds graves.config '},hover_event:{action:'show_text',value:['',{text:"Click to enter the number of seconds after which a grave and its contents are deleted.\nA grave's despawn timer only runs while the grave is loaded.\nEnter ",color:'gray'},'0',{text:' to disable grave despawning.\nItems normally take ',color:'gray'},'300',{text:' seconds (5 minutes) to despawn.',color:'gray'},{text:'\nAccepts: whole numbers 0+\nDefault: 0',color:'dark_gray'}]}},' Grave Despawn Time ',{text:'(Current: ',color:'gray'},{score:{name:'$despawn_seconds',objective:'graves.config'},color:'gray'},{text:')',color:'gray'}]
|
|
tellraw @s ['',{text:'\n>> ',color:'gold'},{text:'[ List All Graves ]',click_event:{action:'run_command',command:'function graves:list'},hover_event:{action:'show_text',value:[{text:'Click to run ',color:'gray'},{text:'/function graves:list',color:'white'},'.']}}]
|
|
tellraw @s ['',{text:'>> ',color:'gold'},{text:'[ Receive Grave Key ]',click_event:{action:'run_command',command:'function graves:give_grave_key'},hover_event:{action:'show_text',value:{text:'Click to receive a grave key which can be used to forcibly open graves.',color:'gray'}}}]
|
|
tellraw @s {text:' ',color:'dark_gray',strikethrough:true} |