From 7d15429d761a70ce6647a09afbbe7f8981eeeda8 Mon Sep 17 00:00:00 2001 From: HeroChris Date: Sat, 7 Dec 2024 22:26:42 +0100 Subject: [PATCH] Audio reassigning - changed record to ambient for certain sounds --- data/herohost/function/core/initialize.mcfunction | 2 +- data/herohost/function/core/reconnect.mcfunction | 2 +- data/herohost/function/test.mcfunction | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/data/herohost/function/core/initialize.mcfunction b/data/herohost/function/core/initialize.mcfunction index 4873427..61df14e 100644 --- a/data/herohost/function/core/initialize.mcfunction +++ b/data/herohost/function/core/initialize.mcfunction @@ -2,7 +2,7 @@ tellraw @s [{"text":"» ","color":"gray"},{"translate":"hhost.minigame.welcome","fallback":"Welcome %s to the %s server!","with":[{"selector":"@s","color":"yellow"},{"text":"H","color":"#fa6a52","extra":[{"text":"e","color":"#fc7551"},{"text":"r","color":"#fd8051"},{"text":"o","color":"#fe8a52"},{"text":"H","color":"#ff9454"},{"text":"o","color":"#ff9e56"},{"text":"s","color":"#ffa85a"},{"text":"t","color":"#ffb15e"}]}],"color":"white"}] tellraw @a[tag=hc.initialized] [{"text":"» ","color":"gray"},{"translate":"hhost.minigame.wish_welcome","fallback":"Everyone, give %s a warm welcome!","with":[{"selector":"@s","color":"yellow"}],"color":"white"}] -execute at @s run playsound minecraft:block.amethyst_block.step record @s ~ ~ ~ 0.7 0.7 +execute at @s run playsound minecraft:block.amethyst_block.step ambient @s ~ ~ ~ 0.7 0.7 # reset player clear @s[tag=!hc.debug] diff --git a/data/herohost/function/core/reconnect.mcfunction b/data/herohost/function/core/reconnect.mcfunction index eea1cb2..ef939d3 100644 --- a/data/herohost/function/core/reconnect.mcfunction +++ b/data/herohost/function/core/reconnect.mcfunction @@ -2,7 +2,7 @@ tellraw @s [{"text":"» ","color":"gray"},{"translate":"hhost.minigame.welcome_back","fallback":"Welcome back %s to the %s server!","with":[{"selector":"@s","color":"yellow"},{"text":"H","color":"#fa6a52","extra":[{"text":"e","color":"#fc7551"},{"text":"r","color":"#fd8051"},{"text":"o","color":"#fe8a52"},{"text":"H","color":"#ff9454"},{"text":"o","color":"#ff9e56"},{"text":"s","color":"#ffa85a"},{"text":"t","color":"#ffb15e"}]}],"color":"white"}] tellraw @s[tag=hc.debug] [{"text":"» ","color":"red"},{"translate":"hhost.minigame.debug_warning","fallback":"You are still in debug mode, click %s to disable it.","with":[{"translate":"hhost.minigame.here","fallback":"here","color":"red","clickEvent":{"action":"run_command","value":"/tag @s remove hc.debug"},"hoverEvent":{"action":"show_text","contents":[{"translate":"hhost.minigame.operator_warning","fallback":"You need to be an operator to use this.","color":"red"}]}}],"color":"white"}] -execute at @s run playsound minecraft:block.amethyst_block.step record @s ~ ~ ~ 0.7 0.7 +execute at @s run playsound minecraft:block.amethyst_block.step ambient @s ~ ~ ~ 0.7 0.7 # reset player clear @s[tag=!hc.debug] diff --git a/data/herohost/function/test.mcfunction b/data/herohost/function/test.mcfunction index 80afafb..9397f3d 100644 --- a/data/herohost/function/test.mcfunction +++ b/data/herohost/function/test.mcfunction @@ -1,3 +1,3 @@ -execute as @p run give @s minecraft:book[minecraft:item_model="minecraft:book",minecraft:custom_name='[{"translate":"hhost.minigame.book.warper.title","fallback":"Warp journal","color":"#ffb15e","italic":false}]',minecraft:lore=['[{"translate":"hhost.minigame.book.warper.lore","fallback":"Waypoint navigation","italic":false,"color":"white"}]','[""]','[{"translate":"hhost.minigame.by","fallback":"By: %s","with":[{"text":"H","color":"#fa6a52","extra":[{"text":"e","color":"#fc7551"},{"text":"r","color":"#fd8051"},{"text":"o","color":"#fe8a52"},{"text":"H","color":"#ff9454"},{"text":"o","color":"#ff9e56"},{"text":"s","color":"#ffa85a"},{"text":"t","color":"#ffb15e"}]}],"color":"white","italic":false}]'],minecraft:enchantment_glint_override=false,hide_additional_tooltip={},minecraft:written_book_content={title:"",author:"",pages:['{"translate":"hhost.minigame.book.warper.intro","fallback":"Test"}']}] +execute as @p run give @s minecraft:written_book[minecraft:item_model="minecraft:book",minecraft:custom_name='[{"translate":"hhost.minigame.book.warper.title","fallback":"Warp journal","color":"#ffb15e","italic":false}]',minecraft:lore=['[{"translate":"hhost.minigame.book.warper.lore","fallback":"Waypoint navigation","italic":false,"color":"white"}]','[""]','[{"translate":"hhost.minigame.by","fallback":"By: %s","with":[{"text":"H","color":"#fa6a52","extra":[{"text":"e","color":"#fc7551"},{"text":"r","color":"#fd8051"},{"text":"o","color":"#fe8a52"},{"text":"H","color":"#ff9454"},{"text":"o","color":"#ff9e56"},{"text":"s","color":"#ffa85a"},{"text":"t","color":"#ffb15e"}]}],"color":"white","italic":false}]'],minecraft:enchantment_glint_override=false,hide_additional_tooltip={},minecraft:written_book_content={title:"",author:"",pages:['[{"translate":"hhost.minigame.book.warper.intro","fallback":"Intro"},{"text":"\\n"},{"text":"\\n» ","color":"gray"},{"translate":"hhost.minigame.lobby","fallback":"Lobby","clickEvent":{"action":"run_command","value":"/trigger +hc.warp set 1"},"color":"#7EA270","underlined":true},{"text":"\\n» ","color":"gray"},{"translate":"hhost.minigame.payload","fallback":"Push the Payload","clickEvent":{"action":"run_command","value":"/trigger +hc.warp set 2"},"color":"#7970a2","underlined":true}]']}] execute as @p run give @s minecraft:written_book[minecraft:item_model="minecraft:knowledge_book",minecraft:custom_name='[{"translate":"hhost.minigame.book.herohost.title","fallback":"%s servers","with":[{"text":"H","color":"#fa6a52","extra":[{"text":"e","color":"#fc7551"},{"text":"r","color":"#fd8051"},{"text":"o","color":"#fe8a52"},{"text":"H","color":"#ff9454"},{"text":"o","color":"#ff9e56"},{"text":"s","color":"#ffa85a"},{"text":"t","color":"#ffb15e"}]}],"color":"#ffb15e","italic":false}]',minecraft:lore=['[{"translate":"hhost.minigame.book.herohost.lore","fallback":"Server handbook","italic":false,"color":"white"}]','[""]','[{"translate":"hhost.minigame.by","fallback":"By: %s","with":[{"text":"H","color":"#fa6a52","extra":[{"text":"e","color":"#fc7551"},{"text":"r","color":"#fd8051"},{"text":"o","color":"#fe8a52"},{"text":"H","color":"#ff9454"},{"text":"o","color":"#ff9e56"},{"text":"s","color":"#ffa85a"},{"text":"t","color":"#ffb15e"}]}],"color":"white","italic":false}]'],minecraft:enchantment_glint_override=false,hide_additional_tooltip={},minecraft:written_book_content={title:"",author:"",pages:['{"translate":"hhost.minigame.book.warper.intro","fallback":"Test"}']}] execute as @p run give @s minecraft:written_book[minecraft:item_model="minecraft:writable_book",minecraft:custom_name='[{"translate":"hhost.minigame.book.player_stats.title","fallback":"Player profile","color":"#ffb15e","italic":false}]',minecraft:lore=['[{"translate":"hhost.minigame.book.player_stats.lore","fallback":"Stats & Settings","italic":false,"color":"white"}]','[""]','[{"translate":"hhost.minigame.by","fallback":"By: %s","with":[{"text":"H","color":"#fa6a52","extra":[{"text":"e","color":"#fc7551"},{"text":"r","color":"#fd8051"},{"text":"o","color":"#fe8a52"},{"text":"H","color":"#ff9454"},{"text":"o","color":"#ff9e56"},{"text":"s","color":"#ffa85a"},{"text":"t","color":"#ffb15e"}]}],"color":"white","italic":false}]'],minecraft:enchantment_glint_override=false,hide_additional_tooltip={},minecraft:written_book_content={title:"",author:"",pages:['{"translate":"hhost.minigame.book.player_stats.intro","fallback":"Test"}']}] \ No newline at end of file