diff --git a/data/herohost/function/main.mcfunction b/data/herohost/function/main.mcfunction index 3efe706..02d013c 100644 --- a/data/herohost/function/main.mcfunction +++ b/data/herohost/function/main.mcfunction @@ -1,15 +1,15 @@ # --- HeroGames - Copyright (c) HeroHost team (code provided by HeroChris). --- # core handling -execute as @a[tag=!hc.initialized] run function herohost:core/initialize -execute as @a[scores={+hc.disconnect=1..}] run function herohost:core/reconnect + execute as @a[tag=!hc.initialized] run function herohost:core/initialize + execute as @a[scores={+hc.disconnect=1..}] run function herohost:core/reconnect # protection -kill @e[type=item,tag=!persistent] -gamemode adventure @a[tag=!hc.debug] + #kill @e[type=item,tag=!persistent] + gamemode adventure @a[tag=!hc.debug] # hc.debug # games -# execute in herohost:world if entity @p[x=-125,y=50,z=-376,dx=250,dy=100,dz=250] run function herohost:tnt/core \ No newline at end of file + # execute in herohost:world if entity @p[x=-125,y=50,z=-376,dx=250,dy=100,dz=250] run function herohost:tnt/core \ No newline at end of file diff --git a/data/herohost/function/test.mcfunction b/data/herohost/function/test.mcfunction index 02c09b3..59d3bb3 100644 --- a/data/herohost/function/test.mcfunction +++ b/data/herohost/function/test.mcfunction @@ -1 +1 @@ -execute as @p run give @s minecraft:written_book[minecraft:item_model="minecraft:wind_charge",minecraft:custom_name='[{"translate":"hhost.minigame.book.player_stats.title","fallback":"Player stats","color":"#5c89a8","italic":false}]',minecraft:lore=['[{"translate":"hhost.minigame.book.player_stats.lore","fallback":"Everything about you.","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"}']}] \ No newline at end of file +execute as @p run give @s minecraft:written_book[minecraft:item_model="minecraft:knowledge_book",minecraft:custom_name='[{"translate":"hhost.minigame.book.player_stats.title","fallback":"Player Profile","color":"#5c89a8","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