Compare commits
8 Commits
6fb5ad5f94
...
fc37caa161
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fc37caa161 | ||
|
|
f4fb8952e9 | ||
|
|
4ae184f42a | ||
|
|
3a4e6fde9a | ||
|
|
440715feea | ||
|
|
ec4c076efa | ||
|
|
c2f6aba6e3 | ||
|
|
86b4c5b909 |
2
data/ferdinland/function/command/init.mcfunction
Normal file
2
data/ferdinland/function/command/init.mcfunction
Normal file
@ -0,0 +1,2 @@
|
||||
scoreboard objectives add transportCreative trigger
|
||||
scoreboard objectives add menu trigger
|
||||
1
data/ferdinland/function/command/menu_open.mcfunction
Normal file
1
data/ferdinland/function/command/menu_open.mcfunction
Normal file
@ -0,0 +1 @@
|
||||
guis open menu
|
||||
@ -0,0 +1 @@
|
||||
transfer 10.0.0.13 25566
|
||||
7
data/ferdinland/function/command/trigger.mcfunction
Normal file
7
data/ferdinland/function/command/trigger.mcfunction
Normal file
@ -0,0 +1,7 @@
|
||||
scoreboard players enable @a transportCreative
|
||||
execute as @a[scores={transportCreative=1..}] run function ferdinland:command/transport_creative
|
||||
scoreboard players set @a transportCreative 0
|
||||
|
||||
scoreboard players enable @a menu
|
||||
execute as @a[scores={menu=1..}] run function ferdinland:command/menu_open
|
||||
scoreboard players set @a menu 0
|
||||
3
data/ferdinland/function/load.mcfunction
Normal file
3
data/ferdinland/function/load.mcfunction
Normal file
@ -0,0 +1,3 @@
|
||||
# load function
|
||||
say This load function
|
||||
function ferdinland:command/init
|
||||
4
data/ferdinland/function/tick.mcfunction
Normal file
4
data/ferdinland/function/tick.mcfunction
Normal file
@ -0,0 +1,4 @@
|
||||
# tick function
|
||||
#
|
||||
|
||||
function ferdinland:command/trigger
|
||||
@ -1,23 +0,0 @@
|
||||
{
|
||||
"display": {
|
||||
"icon": {
|
||||
"id": "<item-or-block>"
|
||||
},
|
||||
"title": "<Data Pack Name>",
|
||||
"description": [
|
||||
"",
|
||||
{
|
||||
"text": "<description>",
|
||||
"color": "gold"
|
||||
}
|
||||
],
|
||||
"show_toast": false,
|
||||
"announce_to_chat": false
|
||||
},
|
||||
"parent": "global:root",
|
||||
"criteria": {
|
||||
"tick": {
|
||||
"trigger": "minecraft:tick"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,34 +0,0 @@
|
||||
{
|
||||
"display": {
|
||||
"icon": {
|
||||
"id": "minecraft:player_head",
|
||||
"components": {
|
||||
"minecraft:profile": {
|
||||
"properties": [
|
||||
{
|
||||
"name": "textures",
|
||||
"value": "<skin-here>"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"title": "<Put what you want>",
|
||||
"frame": "challenge",
|
||||
"description": [
|
||||
"",
|
||||
{
|
||||
"text": "Data Pack Loaded\n",
|
||||
"color": "gold"
|
||||
}
|
||||
],
|
||||
"background": "minecraft:textures/block/black_concrete.png",
|
||||
"show_toast": false,
|
||||
"announce_to_chat": false
|
||||
},
|
||||
"criteria": {
|
||||
"tick": {
|
||||
"trigger": "minecraft:tick"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,5 +1,5 @@
|
||||
{
|
||||
"values": [
|
||||
"namespace:load"
|
||||
"ferdinland:load"
|
||||
]
|
||||
}
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
{
|
||||
"values": [
|
||||
"namespace:tick"
|
||||
"ferdinland:tick"
|
||||
]
|
||||
}
|
||||
|
||||
@ -1,17 +0,0 @@
|
||||
{
|
||||
"display": {
|
||||
"title": "Data_Pack_Template",
|
||||
"description": "Data Pack Template",
|
||||
"icon": {
|
||||
"item": "minecraft:emerald"
|
||||
},
|
||||
"show_toast": false,
|
||||
"announce_to_chat": false
|
||||
},
|
||||
"parent": "global:namespace",
|
||||
"criteria": {
|
||||
"trigger": {
|
||||
"trigger": "minecraft:tick"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1 +0,0 @@
|
||||
#This function will run on world loading or data pack loading
|
||||
@ -1 +0,0 @@
|
||||
#This function runs every tick
|
||||
10
pack.mcmeta
10
pack.mcmeta
@ -1,6 +1,10 @@
|
||||
{
|
||||
"__comment": "The datapack is assembled by Datapack Assembler",
|
||||
"__link": "https://far.ddns.me",
|
||||
"__patreon": "Thank you to Someone, NatNATTO, Andrew and CadeMade for the support on https://patreon.com/GalSergey",
|
||||
|
||||
"pack": {
|
||||
"pack_format": 61,
|
||||
"description": "Data Pack Template"
|
||||
"description": "Custom datapack for the Ferdinland Minecraft Server",
|
||||
"pack_format": 48
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user