customize armor stands
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"display": {
|
||||
"icon": {
|
||||
"item": "minecraft:armor_stand"
|
||||
},
|
||||
"title": {
|
||||
"text": "Customisable Armour Stands",
|
||||
"color": "white",
|
||||
"bold": false,
|
||||
"italic": false
|
||||
},
|
||||
"description": {
|
||||
"text": "Customise armour stands using a book of clickable links",
|
||||
"color": "green",
|
||||
"bold": false,
|
||||
"italic": true
|
||||
},
|
||||
"show_toast": false,
|
||||
"announce_to_chat": false,
|
||||
"frame": "goal"
|
||||
},
|
||||
"parent": "main:main/root",
|
||||
"criteria": {
|
||||
"tick": {
|
||||
"trigger": "minecraft:tick"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"display": {
|
||||
"icon": {
|
||||
"item": "minecraft:chest"
|
||||
},
|
||||
"title": {
|
||||
"text": "Vanilla Tweaks",
|
||||
"bold": true,
|
||||
"color": "gold"
|
||||
},
|
||||
"description": {
|
||||
"text": "All currently installed datapacks",
|
||||
"color": "white",
|
||||
"bold": false,
|
||||
"italic": true
|
||||
},
|
||||
"background": "minecraft:textures/block/black_concrete.png",
|
||||
"show_toast": false,
|
||||
"announce_to_chat": false,
|
||||
"frame": "challenge"
|
||||
},
|
||||
"criteria": {
|
||||
"tick": {
|
||||
"trigger": "minecraft:tick"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
# Desc: Creates required global scores
|
||||
#
|
||||
# Called by: #main:init
|
||||
|
||||
scoreboard objectives add hc_tick dummy
|
||||
scoreboard objectives add hc_uninstall dummy
|
||||
@@ -0,0 +1,17 @@
|
||||
# Desc: Controls all function to run on the server. Make funtions run much less
|
||||
#
|
||||
# Called by: #minecraft:tick
|
||||
|
||||
scoreboard players add #hc_tick hc_tick 1
|
||||
|
||||
# Every tick
|
||||
function #main:tick
|
||||
|
||||
# Every 1 second
|
||||
execute if score #hc_tick hc_tick matches 1 run function #main:second
|
||||
execute if score #hc_tick hc_tick matches 21 run function #main:second
|
||||
execute if score #hc_tick hc_tick matches 41 run function #main:second
|
||||
execute if score #hc_tick hc_tick matches 61 run function #main:second
|
||||
execute if score #hc_tick hc_tick matches 81 run function #main:second
|
||||
|
||||
execute if score #hc_tick hc_tick matches 100.. run scoreboard players set #hc_tick hc_tick 0
|
||||
@@ -0,0 +1,9 @@
|
||||
# Desc: Main uninstall message. Will only be displayed once.
|
||||
#
|
||||
# Called by: #main:uninstall
|
||||
|
||||
scoreboard players add @s hc_uninstall 1
|
||||
tellraw @s[scores={hc_uninstall=1}] ["",{"text":"All ","color":"red"},{"text":"datapacks ","color":"yellow"},{"text":"removed. \nTo complete the process, remove all ","color":"red"},{"text":"unwanted datapacks ","color":"yellow"},{"text":"from your ","color":"red"},{"text":"datapacks ","color":"yellow"},{"text":"folder. ","color":"red"},{"text":"/reload ","color":"yellow"},{"text":"after.","color":"red"}]
|
||||
|
||||
scoreboard objectives remove hc_tick
|
||||
scoreboard objectives remove hc_uninstall
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"values": [
|
||||
"main:init",
|
||||
"as:init"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"values": [
|
||||
"as:second"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"values": [
|
||||
"as:tick"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"values": [
|
||||
"main:uninstall_message",
|
||||
"as:uninstall"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user