Redesign biome and update
- Updates to 1.21.3 - Biome changes with correct colours
This commit is contained in:
10
data/herohost/function/core/initialize.mcfunction
Normal file
10
data/herohost/function/core/initialize.mcfunction
Normal file
@ -0,0 +1,10 @@
|
||||
# --- 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 @a[tag=hc.initialized] [{"text":"» ","color":"gray"},{"text":"Everyone, give ","color":"white"},{"selector":"@s","color":"yellow"},{"text":" a warm welcome!","color":"white"}]
|
||||
execute at @s run playsound minecraft:entity.player.levelup master @s ~ ~ ~ 1
|
||||
|
||||
# tp player
|
||||
|
||||
# initialize player
|
||||
tag @s add hc.initialized
|
10
data/herohost/function/core/reconnect.mcfunction
Normal file
10
data/herohost/function/core/reconnect.mcfunction
Normal file
@ -0,0 +1,10 @@
|
||||
# --- 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[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"}]
|
||||
execute at @s run playsound minecraft:entity.player.levelup master @s ~ ~ ~ 1
|
||||
|
||||
# tp player
|
||||
|
||||
# reset player score
|
||||
scoreboard players reset @s +hc.disconnect
|
10
data/herohost/function/init.mcfunction
Normal file
10
data/herohost/function/init.mcfunction
Normal file
@ -0,0 +1,10 @@
|
||||
# --- HeroGames - Copyright (c) HeroHost team (code provided by HeroChris). ---
|
||||
|
||||
tellraw @a [{"text":"» ","color":"green"},{"text": "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"}]
|
||||
|
||||
# create scoreboard objectives
|
||||
scoreboard objectives add +hc.core dummy
|
||||
scoreboard objectives add +hc.disconnect minecraft.custom:minecraft.leave_game
|
||||
|
||||
# remove depricated scoreboard objectives
|
19
data/herohost/function/main.mcfunction
Normal file
19
data/herohost/function/main.mcfunction
Normal file
@ -0,0 +1,19 @@
|
||||
# --- 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
|
||||
|
||||
# protection
|
||||
#kill @e[type=item,tag=!persistent]
|
||||
gamemode adventure @a[tag=!hc.debug]
|
||||
|
||||
|
||||
clear KingNugget minecraft:splash_potion
|
||||
|
||||
|
||||
# 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
|
17
data/herohost/function/tnt/core.mcfunction
Normal file
17
data/herohost/function/tnt/core.mcfunction
Normal file
@ -0,0 +1,17 @@
|
||||
# --- HeroGames - Copyright (c) HeroHost team (code provided by HeroChris). ---
|
||||
|
||||
# give and remove tnt
|
||||
item replace entity @a[tag=hc.get_tnt] armor.head with \
|
||||
tnt[minecraft:enchantments={levels:{'minecraft:binding_curse':1},show_in_tooltip:false},minecraft:enchantment_glint_override=false,minecraft:attribute_modifiers={modifiers:[{type:'minecraft:movement_speed',amount:0.01,operation:'add_value',id:'herohost:custom_speed',slot:'head'}],show_in_tooltip:false},max_stack_size=1,minecraft:custom_name='[{"text":"Hostile boom box","color":"#de3131","italic":false}]',minecraft:lore=['[{"text":"Stop reading.. get rid of it!","color":"blue"}]','[""]','[{"text":"- keanu poopie stinky <3"}]']] 1
|
||||
clear @a[tag=hc.give_tnt] minecraft:tnt
|
||||
|
||||
# tnt in offhand
|
||||
execute as @a[nbt={Inventory:[{Slot:103b,id:"minecraft:tnt"}]}] unless entity @s[nbt={Inventory:[{Slot:-106b,id:"minecraft:tnt"}]}] run clear @s minecraft:tnt[minecraft:custom_data={clear:1b}]
|
||||
execute as @a[nbt={Inventory:[{Slot:103b,id:"minecraft:tnt"}]}] if entity @s[nbt=!{Inventory:[{Slot:-106b,id:"minecraft:tnt"}]}] run item replace entity @s weapon.offhand with minecraft:tnt[minecraft:custom_data={clear:1b}]
|
||||
|
||||
# remove get/give tag
|
||||
tag @a remove hc.get_tnt
|
||||
tag @a remove hc.give_tnt
|
||||
|
||||
# game loops
|
||||
execute if score $hc.tt_timer +hc.core matches 0.. run function herohost:tnt/run with storage minecraft:hc.tnt
|
18
data/herohost/function/tnt/explosion.mcfunction
Normal file
18
data/herohost/function/tnt/explosion.mcfunction
Normal file
@ -0,0 +1,18 @@
|
||||
# --- HeroGames - Copyright (c) HeroHost team (code provided by HeroChris). ---
|
||||
|
||||
# effects
|
||||
execute as @a[nbt={Inventory:[{Slot:103b,id:"minecraft:tnt"}]}] run playsound minecraft:entity.generic.explode record @a ~ ~ ~ 1 1 1
|
||||
execute as @a[nbt={Inventory:[{Slot:103b,id:"minecraft:tnt"}]}] run particle minecraft:explosion ~ ~1 ~ 0 0 0 1 2 normal
|
||||
|
||||
# reset player
|
||||
execute in herohost:world run tp @a[tag=!hc.debug,nbt={Inventory:[{Slot:103b,id:"minecraft:tnt"}]}] ~ ~ ~
|
||||
clear @a[tag=!hc.debug,nbt={Inventory:[{Slot:103b,id:"minecraft:tnt"}]}] minecraft:tnt
|
||||
|
||||
# start explosion timer
|
||||
execute store result storage hc.tnt tt_timer int 1 run random value 25..35
|
||||
$schedule function herohost:tnt/explosion $(tt_timer)s
|
||||
|
||||
# tag next
|
||||
schedule function herohost:tnt/schedule/tag 3s
|
||||
|
||||
summon minecraft:block_display 5 101 -245 {block_state:{Name:"minecraft:scaffolding"}}
|
12
data/herohost/function/tnt/get_tnt.mcfunction
Normal file
12
data/herohost/function/tnt/get_tnt.mcfunction
Normal file
@ -0,0 +1,12 @@
|
||||
# --- HeroGames - Copyright (c) HeroHost team (code provided by HeroChris). ---
|
||||
|
||||
# effects
|
||||
playsound minecraft:entity.firework_rocket.launch record @a ~ ~ ~ 1 1 1
|
||||
particle minecraft:totem_of_undying ~ ~1 ~ 0 0 0 1 30 normal
|
||||
|
||||
# hitback cooldown
|
||||
effect give @s weakness 1 2 true
|
||||
|
||||
# reset
|
||||
advancement revoke @s only herohost:tnt/get_tnt
|
||||
tag @s add hc.get_tnt
|
5
data/herohost/function/tnt/give_tnt.mcfunction
Normal file
5
data/herohost/function/tnt/give_tnt.mcfunction
Normal file
@ -0,0 +1,5 @@
|
||||
# --- HeroGames - Copyright (c) HeroHost team (code provided by HeroChris). ---
|
||||
|
||||
# reset
|
||||
advancement revoke @s only herohost:tnt/give_tnt
|
||||
tag @s add hc.give_tnt
|
6
data/herohost/function/tnt/reset_decor.mcfunction
Normal file
6
data/herohost/function/tnt/reset_decor.mcfunction
Normal file
@ -0,0 +1,6 @@
|
||||
# --- HeroGames - Copyright (c) HeroHost team (code provided by HeroChris). ---
|
||||
|
||||
execute as @e[tag=decor] run kill @e[tag=tnt_tag]
|
||||
|
||||
schedule function herohost:tnt/schedule/decor 2s
|
||||
# kill @e[type=minecraft:block_display]
|
31
data/herohost/function/tnt/run.mcfunction
Normal file
31
data/herohost/function/tnt/run.mcfunction
Normal file
@ -0,0 +1,31 @@
|
||||
# --- HeroGames - Copyright (c) HeroHost team (code provided by HeroChris). ---
|
||||
|
||||
# loop
|
||||
execute unless score $hc.tt_timer +hc.core matches 1.. run scoreboard players set $hc.tt_timer +hc.core 201
|
||||
scoreboard players remove $hc.tt_timer +hc.core 1
|
||||
|
||||
# countdown
|
||||
execute if score $hc.tt_timer +hc.core matches 200 run \
|
||||
tellraw @a[] [{"text":"» ","color":"#e4f171"},{"text":"Starting in 10 seconds...","color":"white"}]
|
||||
execute if score $hc.tt_timer +hc.core matches 100 run \
|
||||
tellraw @a[] [{"text":"» ","color":"#e4f171"},{"text":"5","color":"white"}]
|
||||
execute if score $hc.tt_timer +hc.core matches 80 run \
|
||||
tellraw @a[] [{"text":"» ","color":"#e4f171"},{"text":"4","color":"white"}]
|
||||
execute if score $hc.tt_timer +hc.core matches 60 run \
|
||||
tellraw @a[] [{"text":"» ","color":"#e4f171"},{"text":"3","color":"white"}]
|
||||
execute if score $hc.tt_timer +hc.core matches 40 run \
|
||||
tellraw @a[] [{"text":"» ","color":"#e4f171"},{"text":"2","color":"white"}]
|
||||
execute if score $hc.tt_timer +hc.core matches 20 run \
|
||||
tellraw @a[] [{"text":"» ","color":"#e4f171"},{"text":"1","color":"white"}]
|
||||
execute if score $hc.tt_timer +hc.core matches 0 run \
|
||||
tellraw @a[] [{"text":"» ","color":"#e4f171"},{"text":"GO!","color":"white"}]
|
||||
|
||||
# start explosion timer
|
||||
execute if score $hc.tt_timer +hc.core matches 0 store result storage hc.tnt tt_timer int 1 run random value 25..35
|
||||
$execute if score $hc.tt_timer +hc.core matches 0 run schedule function herohost:tnt/explosion $(tt_timer)s
|
||||
|
||||
# tag random
|
||||
execute if score $hc.tt_timer +hc.core matches 0 run tag @r[] add hc.get_tnt
|
||||
|
||||
# reset
|
||||
execute if score $hc.tt_timer +hc.core matches ..0 run scoreboard players reset $hc.tt_timer
|
32
data/herohost/function/tnt/schedule/decor.mcfunction
Normal file
32
data/herohost/function/tnt/schedule/decor.mcfunction
Normal file
@ -0,0 +1,32 @@
|
||||
# --- HeroGames - Copyright (c) HeroHost team (code provided by HeroChris). ---
|
||||
|
||||
# bouy
|
||||
execute in herohost:world run \
|
||||
summon minecraft:armadillo 34.5 99.7 -226 {Silent:1b,Invulnerable:1b,PersistenceRequired:1b,Tags:["decor","tnt_tag"],state:scared,NoAI:1b,NoGravity:1b,leash: [I; 36, 101, -230],UUID: [I; 4, 1, 1, 1],Rotation:[40.0f,0.0f]}
|
||||
execute in herohost:world run \
|
||||
summon minecraft:armadillo 29.5 99.7 -223 {Silent:1b,Invulnerable:1b,PersistenceRequired:1b,Tags:["decor","tnt_tag"],state:scared,NoAI:1b,NoGravity:1b,leash:{UUID: [I; 4, 1, 1, 1]},UUID:[I;4,1,1,2],Rotation:[70.0f,0.0f]}
|
||||
execute in herohost:world run \
|
||||
summon minecraft:armadillo 23.5 99.7 -221 {Silent:1b,Invulnerable:1b,PersistenceRequired:1b,Tags:["decor","tnt_tag"],state:scared,NoAI:1b,NoGravity:1b,leash:{UUID: [I; 4, 1, 1, 2]},UUID:[I;4,1,1,3],Rotation:[65.0f,0.0f]}
|
||||
execute in herohost:world run \
|
||||
summon minecraft:armadillo 17.5 99.7 -218 {Silent:1b,Invulnerable:1b,PersistenceRequired:1b,Tags:["decor","tnt_tag"],state:scared,NoAI:1b,NoGravity:1b,leash:{UUID: [I; 4, 1, 1, 3]},UUID:[I;4,1,1,4],Rotation:[55.0f,0.0f]}
|
||||
execute in herohost:world run \
|
||||
summon minecraft:armadillo 12.5 99.7 -214 {Silent:1b,Invulnerable:1b,PersistenceRequired:1b,Tags:["decor","tnt_tag"],state:scared,NoAI:1b,NoGravity:1b,leash:{UUID: [I; 4, 1, 1, 4]},UUID:[I;4,1,1,5],Rotation:[55.0f,0.0f]}
|
||||
execute in herohost:world run \
|
||||
summon minecraft:armadillo 7.5 99.7 -212 {Silent:1b,Invulnerable:1b,PersistenceRequired:1b,Tags:["decor","tnt_tag"],state:scared,NoAI:1b,NoGravity:1b,leash:{UUID: [I; 4, 1, 1, 5]},UUID:[I;4,1,1,6],Rotation:[80.0f,0.0f]}
|
||||
execute in herohost:world run \
|
||||
summon minecraft:armadillo 1.5 99.7 -212 {Silent:1b,Invulnerable:1b,PersistenceRequired:1b,Tags:["decor","tnt_tag"],state:scared,NoAI:1b,NoGravity:1b,leash:{UUID: [I; 4, 1, 1, 6]},UUID:[I;4,1,1,7],Rotation:[100.0f,0.0f]}
|
||||
execute in herohost:world run \
|
||||
summon minecraft:armadillo -3.5 99.7 -215 {Silent:1b,Invulnerable:1b,PersistenceRequired:1b,Tags:["decor","tnt_tag"],state:scared,NoAI:1b,NoGravity:1b,leash:{UUID: [I; 4, 1, 1, 7]},UUID:[I;4,1,1,8],Rotation:[120.0f,0.0f]}
|
||||
execute in herohost:world run \
|
||||
summon minecraft:armadillo -9.5 99.7 -218 {Silent:1b,Invulnerable:1b,PersistenceRequired:1b,Tags:["decor","tnt_tag"],state:scared,NoAI:1b,NoGravity:1b,leash:{UUID: [I; 4, 1, 1, 8]},UUID:[I;4,1,1,9],Rotation:[110.0f,0.0f]}
|
||||
execute in herohost:world run \
|
||||
summon minecraft:armadillo -15.5 99.7 -219 {Silent:1b,Invulnerable:1b,PersistenceRequired:1b,Tags:["decor","tnt_tag"],state:scared,NoAI:1b,NoGravity:1b,leash:{UUID: [I; 4, 1, 1, 9]},UUID:[I;4,1,1,10],Rotation:[105.0f,0.0f]}
|
||||
execute in herohost:world run \
|
||||
summon minecraft:armadillo -21.5 99.7 -221 {Silent:1b,Invulnerable:1b,PersistenceRequired:1b,Tags:["decor","tnt_tag"],state:scared,NoAI:1b,NoGravity:1b,leash:{UUID: [I; 4, 1, 1, 10]},UUID:[I;4,1,1,11],Rotation:[115.0f,0.0f]}
|
||||
execute in herohost:world run \
|
||||
summon minecraft:armadillo -26.5 99.7 -224 {Silent:1b,Invulnerable:1b,PersistenceRequired:1b,Tags:["decor","tnt_tag"],state:scared,NoAI:1b,NoGravity:1b,leash:{UUID: [I; 4, 1, 1, 11]},UUID:[I;4,1,1,12],Rotation:[140.0f,0.0f]}
|
||||
|
||||
# test
|
||||
# execute in herohost:world run summon minecraft:block_display 4.5 100.5 -245.5 {block_state:{Name:flower_pot},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.75f,0f,-0.75f],scale:[1.5f,1.5f,1.5f]}}
|
||||
# execute in herohost:world run summon minecraft:block_display 4.5 101 -245.5 {block_state:{Name:scaffolding},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.25f,0f,-0.25f],scale:[0.5f,0.5f,0.5f]}}
|
||||
# execute in herohost:world run summon minecraft:block_display 4.5 101.5 -245.5 {block_state:{Name:flower_pot},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.375f,0f,-0.375f],scale:[0.75f,0.75f,0.75f]}}
|
4
data/herohost/function/tnt/schedule/tag.mcfunction
Normal file
4
data/herohost/function/tnt/schedule/tag.mcfunction
Normal file
@ -0,0 +1,4 @@
|
||||
# --- HeroGames - Copyright (c) HeroHost team (code provided by HeroChris). ---
|
||||
|
||||
# tag random
|
||||
tag @r[] add hc.get_tnt
|
Reference in New Issue
Block a user