Player stats

New version of player stats item
This commit is contained in:
HeroChris 2024-12-02 13:20:00 +01:00
parent 45462c4bb4
commit a0e5ab3306
2 changed files with 6 additions and 6 deletions
data/herohost/function

View File

@ -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
# execute in herohost:world if entity @p[x=-125,y=50,z=-376,dx=250,dy=100,dz=250] run function herohost:tnt/core

View File

@ -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"}']}]
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"}']}]