Compare commits
No commits in common. "48bdeceb93c9278b12b4f5de7192da8b0abcc1d4" and "26183fba462783fe3f77a308ebac9610bf8b5bbe" have entirely different histories.
48bdeceb93
...
26183fba46
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,3 +0,0 @@
|
|||||||
data/
|
|
||||||
data/*
|
|
||||||
.DS_Store
|
|
||||||
2
build.sh
2
build.sh
@ -1,2 +0,0 @@
|
|||||||
pip3 install git+https://github.com/WingedSeal/jmc.git#subdirectory=src
|
|
||||||
jmc compile
|
|
||||||
3
data/ferdinland/function/command/init.mcfunction
Normal file
3
data/ferdinland/function/command/init.mcfunction
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
scoreboard objectives add transportCreative trigger
|
||||||
|
scoreboard objectives add transportSMP 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 @s
|
||||||
@ -0,0 +1 @@
|
|||||||
|
transfer 10.0.0.13 25565 @s
|
||||||
11
data/ferdinland/function/command/trigger.mcfunction
Normal file
11
data/ferdinland/function/command/trigger.mcfunction
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
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 transportSMP
|
||||||
|
execute as @a[scores={transportSMP=1..}] run function ferdinland:command/transport_smp
|
||||||
|
scoreboard players set @a transportSMP 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
|
||||||
5
data/minecraft/tags/function/load.json
Normal file
5
data/minecraft/tags/function/load.json
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"values": [
|
||||||
|
"ferdinland:load"
|
||||||
|
]
|
||||||
|
}
|
||||||
5
data/minecraft/tags/function/tick.json
Normal file
5
data/minecraft/tags/function/tick.json
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"values": [
|
||||||
|
"ferdinland:tick"
|
||||||
|
]
|
||||||
|
}
|
||||||
@ -1,7 +0,0 @@
|
|||||||
{
|
|
||||||
"namespace": "ferdinland",
|
|
||||||
"description": "Custom datapack for the Ferdinland Minecraft Server",
|
|
||||||
"pack_format": "48",
|
|
||||||
"target": "main.jmc",
|
|
||||||
"output": "."
|
|
||||||
}
|
|
||||||
@ -1,5 +0,0 @@
|
|||||||
#define createObjTrigger(x) scoreboard objectives add x trigger
|
|
||||||
#define createObjDummy(x) scoreboard objectives add x dummy
|
|
||||||
|
|
||||||
#command guis
|
|
||||||
#command transfer
|
|
||||||
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": {
|
||||||
"pack_format": 48,
|
"description": "Custom datapack for the Ferdinland Minecraft Server",
|
||||||
"description": "Custom datapack for the Ferdinland Minecraft Server"
|
"pack_format": 48
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,34 +0,0 @@
|
|||||||
@lazy
|
|
||||||
function triggerCommand(objective, function) {
|
|
||||||
scoreboard players enable @a $objective;
|
|
||||||
execute as @a[scores={$objective=1..}] run $function;
|
|
||||||
scoreboard players set @a $objective 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
function command.transport_creative() {
|
|
||||||
transfer 10.0.0.13 25566;
|
|
||||||
}
|
|
||||||
|
|
||||||
function command.transport_SMP() {
|
|
||||||
transfer 10.0.0.13 25565;
|
|
||||||
}
|
|
||||||
|
|
||||||
function command.open_menu() {
|
|
||||||
guis open menu;
|
|
||||||
}
|
|
||||||
|
|
||||||
class command {
|
|
||||||
@add(__load__)
|
|
||||||
function commandsLoad() {
|
|
||||||
createObjTrigger(transportCreative);
|
|
||||||
createObjTrigger(transportSMP);
|
|
||||||
createObjTrigger(menu);
|
|
||||||
}
|
|
||||||
|
|
||||||
@add(__tick__)
|
|
||||||
function commandsTick() {
|
|
||||||
triggerCommand(transportCreative, command.transport_creative());
|
|
||||||
triggerCommand(transportSMP, command.transport_SMP());
|
|
||||||
triggerCommand(menu, command.open_menu());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Loading…
Reference in New Issue
Block a user