Compare commits

..

3 Commits

Author SHA1 Message Date
2497087360 Add magic.shardblade module 2025-03-12 01:23:34 -05:00
cd81fbb70a Improve control of imports
`import` is really just an alias for copy/paste. Ensure import order
reflects intended execution order.
2025-03-12 01:22:16 -05:00
1681ea71bb Add props.jmc
Define reusable, dynamic text props. These must be defined in the load
function and can be accessed globally, hence the added module.
2025-03-12 01:20:11 -05:00
3 changed files with 15 additions and 1 deletions

View File

@ -1,3 +1,6 @@
import "src/*";
import "src/props.jmc";
import "src/logger.jmc";
import "src/commands.jmc";
import "src/magic/*";
function __tick__() {}

5
src/magic/shardblade.jmc Normal file
View File

@ -0,0 +1,5 @@
class magic.shardblade {
function give() {
printf("&<SelectedItem>");
}
}

6
src/props.jmc Normal file
View File

@ -0,0 +1,6 @@
TextProp.nbt(
propertyName = "SelectedItem",
type = player,
source = "@s",
path = SelectedItem
);