Skip to content

Commit 5df4046

Browse files
committed
initial commit
0 parents  commit 5df4046

7 files changed

Lines changed: 19 additions & 0 deletions

File tree

test/data/test.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
from pymcfunction import *
2+
3+
execute().asEntity(selector("@e")).ifBlock("~ ~ ~", "minecraft:glass").run(
4+
say("hi"), function("testdir/testtt")
5+
)

test/data/testdir/testtt.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from pymcfunction import *
2+
3+
say("Hello world")

test/data/ticker.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
##pymcfunction-tick

test/pymcfunctionconfig.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
namespace = "testdp"
2+
compiled_folder_name = "testdpfolder"
3+
description = "Test datapack"
4+
datapack_folder = "/run/media/paddecraft/4EE0F299E0F2870D/Dev/PythonScripting/pyfunction/test"
5+
pack_version = 10
6+
7+
[includes]
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"values": []}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"values": ["testdp:ticker"]}

test/testdpfolder/pack.mcmeta

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"pack": {"pack_format": 10, "description": "Test datapack"}}

0 commit comments

Comments
 (0)