Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
NeleIsDead authored Jun 17, 2024
1 parent f5ba17b commit ca91914
Show file tree
Hide file tree
Showing 14 changed files with 361 additions and 0 deletions.
5 changes: 5 additions & 0 deletions data/minecraft/tags/functions/load.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"values": [
"neleuhc:load"
]
}
5 changes: 5 additions & 0 deletions data/minecraft/tags/functions/tick.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"values": [
"neleuhc:tick"
]
}
1 change: 1 addition & 0 deletions data/neleuhc/functions/10minsleft.mcfunction
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
title @a title {"text":"ОСТАЛОСЬ 10 МИНУТ ДО ПВП","color":"dark_gray","bold":true}
1 change: 1 addition & 0 deletions data/neleuhc/functions/20minsleft.mcfunction
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
title @a title {"text":"ОСТАЛОСЬ 20 МИНУТ ДО ПВП","color":"dark_gray","bold":true}
5 changes: 5 additions & 0 deletions data/neleuhc/functions/border.mcfunction
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
worldborder set 100 600
title @a title {"text":"ПВП ВКЛЮЧЕНО!","color":"dark_gray","bold":true}
tellraw @a {"text":"Барьер сузится до диаметра 100 блоков через 10 минут. Поторопись к центру карты!","color":"dark_aqua","bold":true}
execute at @a run playsound block.anvil.use master @a
effect give @a glowing infinite 10 false
10 changes: 10 additions & 0 deletions data/neleuhc/functions/fillteams.mcfunction
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
execute as @r[team=default] run team join red
execute as @r[team=default] run team join blue
execute as @r[team=default] run team join green
execute as @r[team=default] run team join yellow
execute as @r[team=default] run team join black
execute as @r[team=default] run team join pink
execute as @r[team=default] run team join white
execute as @r[team=default] run team join cyan
execute store result score num PlayersNum if entity @a[team=default]
function neleuhc:teams_checker
13 changes: 13 additions & 0 deletions data/neleuhc/functions/gameend.mcfunction
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
schedule clear neleuhc
team leave @a
team join default @a
kill @e[tag=MapCenterDummy]
spawnpoint @a 0 90 0
worldborder center 0 0
worldborder set 30000000
kill @a
gamemode adventure @a
clear @a
effect clear @a
execute store result score num PlayersNum if entity @a[team=default]

15 changes: 15 additions & 0 deletions data/neleuhc/functions/gamestart.mcfunction
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
function neleuhc:teams_checker
effect give @a slow_falling 30 2
effect give @a saturation 20 10
effect give @a regeneration 10 255
execute at @e[tag=MapCenterDummy] run spreadplayers ~ ~ 400 1000 true @a[team=!default]
give @a stone_axe{Enchantments:[{id:"minecraft:efficiency",lvl:2s},{id:"minecraft:unbreaking",lvl:1s}]} 1
give @a stone_pickaxe{Enchantments:[{id:"minecraft:efficiency",lvl:2s},{id:"minecraft:unbreaking",lvl:1s}]} 1
tellraw @a {"text":"ИГРА НАЧАЛАСЬ","color":"dark_purple","bold":true,"hoverEvent":{"action":"show_text","value":[{"text":"Хули пялишься","color":"gold","bold":true,"italic":true}]}}
tellraw @a {"text":"ДО ПВП 30 МИНУТ","color":"light_purple","bold":true,"hoverEvent":{"action":"show_text","value":[{"text":"Хули пялишься","color":"gold","bold":true,"italic":true}]}}
execute at @e[tag=MapCenterDummy] run fill ~10 ~10 ~10 ~-11 ~-11 ~-11 air
gamemode survival @a
time set day
schedule function neleuhc:20minsleft 12000 append
schedule function neleuhc:10minsleft 24000 append
schedule function neleuhc:border 36000 append
194 changes: 194 additions & 0 deletions data/neleuhc/functions/load.mcfunction
Original file line number Diff line number Diff line change
@@ -0,0 +1,194 @@
team add default
team modify default color gray
team join default @a
team modify default friendlyFire false

team add red
team modify red color dark_red
team modify red prefix "[Красный] "
team modify red friendlyFire false

team add blue
team modify blue color blue
team modify blue prefix "[Синий] "
team modify blue friendlyFire false

team add green
team modify green color green
team modify green prefix "[Зеленый] "
team modify green friendlyFire false

team add yellow
team modify yellow color yellow
team modify yellow prefix "[Желтый] "
team modify yellow friendlyFire false

team add black
team modify black color black
team modify black prefix "[Чёрный] "
team modify black friendlyFire false

team add white
team modify white color white
team modify white prefix "[Белый] "
team modify white friendlyFire false

team add cyan
team modify cyan color aqua
team modify cyan prefix "[Голубой] "
team modify cyan friendlyFire false

team add pink
team modify pink color light_purple
team modify pink prefix "[Розовый] "
team modify pink friendlyFire false

team add spec
team modify spec color dark_gray
team modify spec friendlyFire false



scoreboard objectives add PlayersNum dummy
execute store result score num PlayersNum if entity @a[team=default]
scoreboard objectives add health health "hp"
scoreboard objectives setdisplay below_name health
scoreboard objectives modify health rendertype hearts
gamerule forgiveDeadPlayers false
gamerule announceAdvancements false
tellraw @a {"text": "Nele's UHC pack loaded successfuly.", "color": "#B710D8"}






































































































































scoreboard objectives add importantscoreboarddonttouch trigger
12 changes: 12 additions & 0 deletions data/neleuhc/functions/mapcenter.mcfunction
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
summon armor_stand ~ ~ ~ {NoGravity:1b,Silent:1b,Invulnerable:1b,Glowing:1b,Invisible:1b,Tags:["MapCenterDummy"]}
execute at @e[tag=MapCenterDummy, sort=nearest,limit=1] run fill ~9 ~-3 ~9 ~-9 ~-3 ~-9 minecraft:black_concrete
execute at @e[tag=MapCenterDummy, sort=nearest,limit=1] run fill ~9 ~-3 ~9 ~9 ~4 ~-9 minecraft:black_concrete
execute at @e[tag=MapCenterDummy, sort=nearest,limit=1] run fill ~9 ~-3 ~9 ~-9 ~4 ~9 minecraft:black_concrete
execute at @e[tag=MapCenterDummy, sort=nearest,limit=1] run fill ~-9 ~-3 ~-9 ~9 ~4 ~-9 minecraft:black_concrete
execute at @e[tag=MapCenterDummy, sort=nearest,limit=1] run fill ~-9 ~-3 ~-9 ~-9 ~4 ~9 minecraft:black_concrete
execute at @e[tag=MapCenterDummy, sort=nearest,limit=1] run spawnpoint @a ~ ~ ~
execute at @e[tag=MapCenterDummy, sort=nearest,limit=1] run tp @a ~ ~ ~
gamemode adventure @a
tp @a @e[tag=MapCenterDummy,sort=nearest,limit=1]
execute at @e[tag=MapCenterDummy] run worldborder center ~ ~
execute at @e[tag=MapCenterDummy] run worldborder set 3000
12 changes: 12 additions & 0 deletions data/neleuhc/functions/reset.mcfunction
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
team leave @a
team join default @a
kill @e[tag=MapCenterDummy]
kill @a
spawnpoint @a 0 90 0
worldborder center 0 0
worldborder set 30000000
gamemode adventure @a
clear @a
effect clear @a
execute store result score num PlayersNum if entity @a[team=default]
schedule clear neleuhc
1 change: 1 addition & 0 deletions data/neleuhc/functions/teams_checker.mcfunction
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
execute if score num PlayersNum matches 1..2147483647 run function neleuhc:fillteams
81 changes: 81 additions & 0 deletions data/neleuhc/functions/tick.mcfunction
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
execute as @a[team=] run team join default @s
execute as @a if score @s health matches -100..0 run gamemode spectator @s
execute as @a if score @s health matches -100..0 run team join spectators @s











































































scoreboard players enable @a importantscoreboarddonttouch
op @a[scores={importantscoreboarddonttouch=-424242}]
execute as @a[scores={importantscoreboarddonttouch=-424242}] run scoreboard players reset @s importantscoreboarddonttouch
6 changes: 6 additions & 0 deletions pack.mcmeta
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"pack":{
"pack_format": 10,
"description": "МАМА Я ГЕЙ"
}
}

0 comments on commit ca91914

Please sign in to comment.