Compare commits
11 Commits
Author | SHA1 | Date | |
---|---|---|---|
f9f10ea2df | |||
49068b6989 | |||
cfa1761593 | |||
7d15429d76 | |||
1c477c4816 | |||
0c3e0adbca | |||
a0e5ab3306 | |||
45462c4bb4 | |||
c13825e29e | |||
95f39450e9 | |||
fb11a9e832 |
37
data/herohost/advancement/herohost/baby_steps.json
Normal file
37
data/herohost/advancement/herohost/baby_steps.json
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
{
|
||||||
|
"parent": "herohost:herohost/root",
|
||||||
|
"display": {
|
||||||
|
"icon": {
|
||||||
|
"id": "minecraft:leather_boots"
|
||||||
|
},
|
||||||
|
"title": {
|
||||||
|
"translate": "hhost.minigame.advancement.herohost.baby_steps.title",
|
||||||
|
"fallback": "Baby steps"
|
||||||
|
},
|
||||||
|
"description": {
|
||||||
|
"translate": "hhost.minigame.advancement.herohost.baby_steps.description",
|
||||||
|
"fallback": "Take your first steps [not working yet]"
|
||||||
|
},
|
||||||
|
"frame": "task",
|
||||||
|
"show_toast": true,
|
||||||
|
"announce_to_chat": false,
|
||||||
|
"hidden": false
|
||||||
|
},
|
||||||
|
"criteria": {
|
||||||
|
"baby_steps": {
|
||||||
|
"trigger": "minecraft:location",
|
||||||
|
"conditions": {
|
||||||
|
"player": {
|
||||||
|
"distance": {
|
||||||
|
"horizontal": {
|
||||||
|
"min": 100
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"rewards": {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
34
data/herohost/advancement/herohost/hands_off.json
Normal file
34
data/herohost/advancement/herohost/hands_off.json
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
{
|
||||||
|
"parent": "herohost:herohost/root",
|
||||||
|
"display": {
|
||||||
|
"icon": {
|
||||||
|
"id": "minecraft:barrier"
|
||||||
|
},
|
||||||
|
"title": {
|
||||||
|
"translate": "hhost.minigame.advancement.herohost.hands_off.title",
|
||||||
|
"fallback": "Hands off"
|
||||||
|
},
|
||||||
|
"description": {
|
||||||
|
"translate": "hhost.minigame.advancement.herohost.hands_off.description",
|
||||||
|
"fallback": "Can't do that, it's not yours"
|
||||||
|
},
|
||||||
|
"frame": "task",
|
||||||
|
"show_toast": true,
|
||||||
|
"announce_to_chat": false,
|
||||||
|
"hidden": true
|
||||||
|
},
|
||||||
|
"criteria": {
|
||||||
|
"hands_off": {
|
||||||
|
"trigger": "minecraft:player_interacted_with_entity",
|
||||||
|
"conditions": {
|
||||||
|
"entity": {
|
||||||
|
"type": "minecraft:interaction",
|
||||||
|
"nbt": "{Tags:[\"locked\"]}"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"rewards": {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
29
data/herohost/advancement/herohost/hard_listener.json
Normal file
29
data/herohost/advancement/herohost/hard_listener.json
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
{
|
||||||
|
"parent": "herohost:herohost/hands_off",
|
||||||
|
"display": {
|
||||||
|
"icon": {
|
||||||
|
"id": "minecraft:barrier"
|
||||||
|
},
|
||||||
|
"title": {
|
||||||
|
"translate": "hhost.minigame.advancement.herohost.hard_listener.title",
|
||||||
|
"fallback": "Hard listener"
|
||||||
|
},
|
||||||
|
"description": {
|
||||||
|
"translate": "hhost.minigame.advancement.herohost.hard_listener.description",
|
||||||
|
"fallback": "This could've been avoided"
|
||||||
|
},
|
||||||
|
"frame": "task",
|
||||||
|
"show_toast": true,
|
||||||
|
"announce_to_chat": false,
|
||||||
|
"hidden": true
|
||||||
|
},
|
||||||
|
"criteria": {
|
||||||
|
"hard_listener": {
|
||||||
|
"trigger": "minecraft:impossible",
|
||||||
|
"conditions": {}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"rewards": {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
25
data/herohost/advancement/herohost/root.json
Normal file
25
data/herohost/advancement/herohost/root.json
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
{
|
||||||
|
"display": {
|
||||||
|
"icon": {
|
||||||
|
"id": "minecraft:axolotl_bucket"
|
||||||
|
},
|
||||||
|
"title": {
|
||||||
|
"translate": "hhost.minigame.advancement.herohost.root.title",
|
||||||
|
"fallback": "HeroHost servers"
|
||||||
|
},
|
||||||
|
"description": {
|
||||||
|
"translate": "hhost.minigame.advancement.herohost.root.description",
|
||||||
|
"fallback": "Welcome to the HeroHost minigame server!"
|
||||||
|
},
|
||||||
|
"frame": "task",
|
||||||
|
"show_toast": true,
|
||||||
|
"announce_to_chat": false,
|
||||||
|
"hidden": false,
|
||||||
|
"background": "minecraft:textures/block/white_concrete_powder.png"
|
||||||
|
},
|
||||||
|
"criteria": {
|
||||||
|
"tick": {
|
||||||
|
"trigger": "minecraft:tick"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
16
data/herohost/advancement/misc/lock.json
Normal file
16
data/herohost/advancement/misc/lock.json
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
{
|
||||||
|
"criteria": {
|
||||||
|
"requirement": {
|
||||||
|
"trigger": "minecraft:player_interacted_with_entity",
|
||||||
|
"conditions": {
|
||||||
|
"entity": {
|
||||||
|
"type": "minecraft:interaction",
|
||||||
|
"nbt": "{Tags:[\"locked\"]}"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"rewards": {
|
||||||
|
"function": "herohost:misc/lock"
|
||||||
|
}
|
||||||
|
}
|
70
data/herohost/enchantment/lobby.json
Normal file
70
data/herohost/enchantment/lobby.json
Normal file
@ -0,0 +1,70 @@
|
|||||||
|
{
|
||||||
|
"description": {
|
||||||
|
"translate": "hhost.minigame.enchantment.lobby.description",
|
||||||
|
"fallback": "Lobby enhanced"
|
||||||
|
},
|
||||||
|
"supported_items": "#minecraft:foot_armor",
|
||||||
|
"weight": 2,
|
||||||
|
"max_level": 1,
|
||||||
|
"min_cost": {
|
||||||
|
"base": 25,
|
||||||
|
"per_level_above_first": 25
|
||||||
|
},
|
||||||
|
"max_cost": {
|
||||||
|
"base": 75,
|
||||||
|
"per_level_above_first": 25
|
||||||
|
},
|
||||||
|
"anvil_cost": 4,
|
||||||
|
"slots": [
|
||||||
|
"feet"
|
||||||
|
],
|
||||||
|
"effects": {
|
||||||
|
"prevent_armor_change": {},
|
||||||
|
"attributes": [
|
||||||
|
{
|
||||||
|
"amount": -1,
|
||||||
|
"attribute": "minecraft:attack_damage",
|
||||||
|
"id": "herohost:enchantment.attack_damage",
|
||||||
|
"operation": "add_multiplied_total"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"minecraft:damage_immunity": [
|
||||||
|
{
|
||||||
|
"effect": {},
|
||||||
|
"requirements": {
|
||||||
|
"condition": "minecraft:damage_source_properties",
|
||||||
|
"predicate": {
|
||||||
|
"tags": [
|
||||||
|
{
|
||||||
|
"expected": true,
|
||||||
|
"id": "minecraft:is_fall"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"expected": false,
|
||||||
|
"id": "minecraft:bypasses_invulnerability"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"effect": {},
|
||||||
|
"requirements": {
|
||||||
|
"condition": "minecraft:damage_source_properties",
|
||||||
|
"predicate": {
|
||||||
|
"tags": [
|
||||||
|
{
|
||||||
|
"expected": true,
|
||||||
|
"id": "minecraft:is_drowning"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"expected": false,
|
||||||
|
"id": "minecraft:bypasses_invulnerability"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
@ -1,10 +1,15 @@
|
|||||||
# --- HeroGames - Copyright (c) HeroHost team (code provided by HeroChris). ---
|
# --- HeroGames - Copyright (c) HeroHost team (code provided by HeroChris). ---
|
||||||
|
|
||||||
tellraw @s [{"text":"» ","color":"gray"},{"text":"Welcome ","color":"white"},{"selector":"@s","color":"yellow"},{"text":", to the ","color":"white"},{"text":"H","color":"#fa6a52"},{"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"},{"text":" server!","color":"white"}]
|
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"},{"text":"Everyone, give ","color":"white"},{"selector":"@s","color":"yellow"},{"text":" a warm welcome!","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:entity.player.levelup master @s ~ ~ ~ 1
|
execute at @s run playsound minecraft:block.amethyst_block.step ambient @s ~ ~ ~ 0.7 0.7
|
||||||
|
|
||||||
# tp player
|
# reset player
|
||||||
|
execute as @s[tag=!hc.debug] run function herohost:core/reset
|
||||||
|
|
||||||
|
# misc
|
||||||
|
scoreboard players enable @s +hc.warp
|
||||||
|
execute at @s run playsound minecraft:block.amethyst_block.step ambient @s ~ ~ ~ 0.7 0.7
|
||||||
|
|
||||||
# initialize player
|
# initialize player
|
||||||
tag @s add hc.initialized
|
tag @s add hc.initialized
|
@ -1,10 +1,15 @@
|
|||||||
# --- HeroGames - Copyright (c) HeroHost team (code provided by HeroChris). ---
|
# --- HeroGames - Copyright (c) HeroHost team (code provided by HeroChris). ---
|
||||||
|
|
||||||
tellraw @s [{"text":"» ","color":"gray"},{"text":"Welcome back ","color":"white"},{"selector":"@s","color":"yellow"},{"text":", to the ","color":"white"},{"text":"H","color":"#fa6a52"},{"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"},{"text":" server!","color":"white"}]
|
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"},{"text":"You are still in debug mode, click ","color":"white"},{"text":"here","color":"red","clickEvent":{"action":"run_command","value":"/tag @s remove hc.debug"},"hoverEvent": {"action": "show_text","value": {"text": "You need to be an operator to use this.","color": "#fc2003"}}},{"text":" to disable it.","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:entity.player.levelup master @s ~ ~ ~ 1
|
execute at @s run playsound minecraft:block.amethyst_block.step ambient @s ~ ~ ~ 0.7 0.7
|
||||||
|
|
||||||
# tp player
|
# reset player
|
||||||
|
execute as @s[tag=!hc.debug] run function herohost:core/reset
|
||||||
|
|
||||||
|
# misc
|
||||||
|
scoreboard players enable @s +hc.warp
|
||||||
|
execute at @s run playsound minecraft:block.amethyst_block.step ambient @s ~ ~ ~ 0.7 0.7
|
||||||
|
|
||||||
# reset player score
|
# reset player score
|
||||||
scoreboard players reset @s +hc.disconnect
|
scoreboard players reset @s +hc.disconnect
|
18
data/herohost/function/core/reset.mcfunction
Normal file
18
data/herohost/function/core/reset.mcfunction
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
# --- HeroGames - Copyright (c) HeroHost team (code provided by HeroChris). ---
|
||||||
|
|
||||||
|
# world below y50 tag
|
||||||
|
execute if entity @s[predicate=herohost:world_y50] run tag @s add hc.world_y50
|
||||||
|
|
||||||
|
# default functionality
|
||||||
|
clear @s[tag=!hc.world_y50]
|
||||||
|
item replace entity @s armor.feet with minecraft:leather_boots[minecraft:enchantments={levels:{"herohost:lobby":1}}]
|
||||||
|
execute in herohost:world run tp @s 5 109 50 -90 0
|
||||||
|
execute in herohost:world run spawnpoint @s 5 109 50 -90
|
||||||
|
|
||||||
|
# stop execution of normal
|
||||||
|
execute if entity @s[tag=!hc.world_y50] run return fail
|
||||||
|
|
||||||
|
# world below y50 execution
|
||||||
|
execute at @s[tag=hc.world_y50] run playsound minecraft:entity.enderman.teleport ambient @s ~ ~ ~ 0.7 0.7
|
||||||
|
title @s[tag=hc.world_y50] actionbar [{"translate":"hhost.minigame."}]
|
||||||
|
tag @s[tag=hc.world_y50] remove hc.world_y50
|
@ -1,10 +1,15 @@
|
|||||||
# --- HeroGames - Copyright (c) HeroHost team (code provided by HeroChris). ---
|
# --- HeroGames - Copyright (c) HeroHost team (code provided by HeroChris). ---
|
||||||
|
|
||||||
tellraw @a [{"text":"» ","color":"green"},{"text": "Datapack resources loaded successfully.","color": "#ffffff"}]
|
tellraw @a [{"text":"» ","color":"green"},{"translate": "hhost.minigame.reload","fallback": "Datapack resources loaded successfully.","color": "#ffffff"}]
|
||||||
tellraw @a[tag=hc.debug] [{"text":"» ","color":"gray"},{"text":"If any issue occurs, click ","color":"white"},{"text":"here","color":"red","clickEvent":{"action":"run_command","value":"/reload"},"hoverEvent": {"action": "show_text","value": {"text": "You need to be an operator to use this.","color": "#fc2003"}}},{"text":" to reload the server.","color":"white"}]
|
tellraw @a[tag=hc.debug] [{"text":"» ","color":"gray"},{"translate":"hhost.minigame.reload_issue","fallback":"If any issues occur, click %s to reload the server.","with":[{"translate":"hhost.minigame.here","fallback":"here","color":"red","clickEvent":{"action":"run_command","value":"/reload"},"hoverEvent":{"action":"show_text","contents":[{"translate":"hhost.minigame.operator_warning","fallback":"You need to be an operator to use this.","color":"red"}]}}],"color":"white"}]
|
||||||
|
|
||||||
# create scoreboard objectives
|
# create scoreboard objectives
|
||||||
scoreboard objectives add +hc.core dummy
|
scoreboard objectives add +hc.core dummy
|
||||||
scoreboard objectives add +hc.disconnect minecraft.custom:minecraft.leave_game
|
scoreboard objectives add +hc.disconnect minecraft.custom:minecraft.leave_game
|
||||||
|
scoreboard objectives add +hc.locked dummy
|
||||||
|
scoreboard objectives add +hc.warp trigger
|
||||||
|
# [ WIP ] scoreboard objectives add +hc.currency dummy
|
||||||
|
# [ WIP ] scoreboard objectives add +hc.currency.add dummy
|
||||||
|
# [ WIP ] scoreboard objectives add +hc.currency.remove dummy
|
||||||
|
|
||||||
# remove depricated scoreboard objectives
|
# remove depricated scoreboard objectives
|
||||||
|
@ -1,19 +1,19 @@
|
|||||||
# --- HeroGames - Copyright (c) HeroHost team (code provided by HeroChris). ---
|
# --- HeroGames - Copyright (c) HeroHost team (code provided by HeroChris). ---
|
||||||
|
|
||||||
# core handling
|
# core handling
|
||||||
execute as @a[tag=!hc.initialized] run function herohost:core/initialize
|
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[scores={+hc.disconnect=1..}] run function herohost:core/reconnect
|
||||||
|
|
||||||
# protection
|
# protection
|
||||||
#kill @e[type=item,tag=!persistent]
|
kill @e[type=item,tag=!persistent]
|
||||||
gamemode adventure @a[tag=!hc.debug]
|
gamemode adventure @a[tag=!hc.debug]
|
||||||
|
|
||||||
|
|
||||||
clear KingNugget minecraft:splash_potion
|
|
||||||
|
|
||||||
|
|
||||||
# hc.debug
|
# hc.debug
|
||||||
|
|
||||||
|
# misc
|
||||||
|
effect give @a[gamemode=!creative] saturation 1 1 true
|
||||||
|
execute as @a[scores={+hc.warp=1..}] run function herohost:misc/warp
|
||||||
|
execute as @a[tag=!hc.debug,predicate=herohost:world_y50] run function herohost:core/reset
|
||||||
|
|
||||||
# games
|
# 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
|
# [ WIP ] execute in herohost:world if entity @p[x=-125,y=50,z=-376,dx=250,dy=100,dz=250] run function herohost:tnt/core
|
9
data/herohost/function/misc/lock.mcfunction
Normal file
9
data/herohost/function/misc/lock.mcfunction
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
# --- HeroGames - Copyright (c) HeroHost team (code provided by HeroChris). ---
|
||||||
|
|
||||||
|
advancement revoke @s only herohost:misc/lock
|
||||||
|
title @s actionbar [{"translate":"hhost.minigame.locked","fallback":"You can't do that! This is not yours to touch."}]
|
||||||
|
playsound minecraft:block.nether_wood.break master @s ~ ~ ~ 1 1 1
|
||||||
|
|
||||||
|
# advancement related
|
||||||
|
scoreboard players add @s +hc.locked 1
|
||||||
|
execute if score @s +hc.locked matches 10.. run advancement grant @s only herohost:herohost/hard_listener
|
12
data/herohost/function/misc/warp.mcfunction
Normal file
12
data/herohost/function/misc/warp.mcfunction
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
# --- HeroGames - Copyright (c) HeroHost team (code provided by HeroChris). ---
|
||||||
|
|
||||||
|
execute if score @s +hc.warp matches 1 in herohost:world run tp @s 5 109 50 -90 0
|
||||||
|
execute if score @s +hc.warp matches 2 in herohost:world run tp @s 50 125 -15 -118 0
|
||||||
|
|
||||||
|
# effects
|
||||||
|
execute at @s run playsound minecraft:block.amethyst_block.step record @s ~ ~ ~ 0.7 0.7
|
||||||
|
# [ WIP ] execute as @s at @s run particle minecraft:reverse_portal ~ ~1 ~ 0.5 0.5 0.5 0.1 20
|
||||||
|
|
||||||
|
# reset
|
||||||
|
scoreboard players set @s +hc.warp 0
|
||||||
|
scoreboard players enable @s +hc.warp
|
3
data/herohost/function/test.mcfunction
Normal file
3
data/herohost/function/test.mcfunction
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
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"}']}]
|
14
data/herohost/predicate/world_y50.json
Normal file
14
data/herohost/predicate/world_y50.json
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"condition": "minecraft:entity_properties",
|
||||||
|
"predicate": {
|
||||||
|
"location": {
|
||||||
|
"position": {
|
||||||
|
"y": {
|
||||||
|
"max": 50
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"dimension": "herohost:world"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"entity":"this"
|
||||||
|
}
|
19
data/minecraft/chat_type/chat.json
Normal file
19
data/minecraft/chat_type/chat.json
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
{
|
||||||
|
"chat": {
|
||||||
|
"parameters": [
|
||||||
|
"sender",
|
||||||
|
"content"
|
||||||
|
],
|
||||||
|
"style": {
|
||||||
|
"color": "#b6b6b6"
|
||||||
|
},
|
||||||
|
"translation_key": "chat.type.text"
|
||||||
|
},
|
||||||
|
"narration": {
|
||||||
|
"parameters": [
|
||||||
|
"sender",
|
||||||
|
"content"
|
||||||
|
],
|
||||||
|
"translation_key": "chat.type.text.narrate"
|
||||||
|
}
|
||||||
|
}
|
18
pack.mcmeta
18
pack.mcmeta
@ -1,6 +1,22 @@
|
|||||||
{
|
{
|
||||||
"pack": {
|
"pack": {
|
||||||
"pack_format": 48,
|
"pack_format": 57,
|
||||||
"description": "HeroHost - HeroChris 2024"
|
"description": "HeroHost - HeroChris 2024"
|
||||||
|
},
|
||||||
|
"filter": {
|
||||||
|
"block": [
|
||||||
|
{
|
||||||
|
"namespace": "minecraft",
|
||||||
|
"path": "advancement/.*"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"namespace": "minecraft",
|
||||||
|
"path": "loot_table/.*"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"namespace": "minecraft",
|
||||||
|
"path": "recipe/.*"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user