Redesign biome and update

- Updates to 1.21.3
- Biome changes with correct colours
This commit is contained in:
2024-11-19 18:07:59 +01:00
parent dcd2f06fe0
commit cb08afef4c
22 changed files with 196 additions and 91 deletions

View 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

View 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"}}

View 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

View 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

View 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]

View 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

View 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]}}

View File

@ -0,0 +1,4 @@
# --- HeroGames - Copyright (c) HeroHost team (code provided by HeroChris). ---
# tag random
tag @r[] add hc.get_tnt