Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
67a4bcd
Add feature rule id store
respectZ Dec 28, 2025
cc9404b
Add recipe id store
respectZ Dec 28, 2025
c858120
Add base mcfunction handler
respectZ Dec 30, 2025
39532e1
Rename package to builtin
ink0rr Jan 19, 2026
d75b795
Move json document parsing to a separate method
ink0rr Jan 20, 2026
1ab7ee7
Add paramspec suffix to string
respectZ Dec 31, 2025
732ac31
Fix item nbt snippet cursor
respectZ Dec 31, 2025
81241ff
Change set contains to containsone
respectZ Jan 1, 2026
fdbd696
Add selector arg
respectZ Jan 1, 2026
205881a
Add command node
respectZ Jan 20, 2026
1b3e358
Change infinite loop detection
respectZ Jan 20, 2026
0b333c2
Fix relative number offset lexer
respectZ Jan 20, 2026
b03cf72
Fix command ident start with number
respectZ Apr 26, 2026
30cc863
Fix emit command slash token
respectZ Apr 26, 2026
65ea99b
Add slash command handling
respectZ Apr 26, 2026
af8d311
Add escape quotes to mcfunction lexer
respectZ May 14, 2026
c2ff3ca
Add json embed command
respectZ May 14, 2026
13fcab0
Rename mcfunction node param interface
respectZ May 14, 2026
686dfc1
Refactor mcfunction lexer
respectZ May 14, 2026
5d14cf8
Fix entity queue command path
respectZ May 14, 2026
9439a2f
Fix slash parser
respectZ May 14, 2026
11eb86a
Add endOffset parseLine
respectZ May 14, 2026
47f15c9
Move mcfunction lexer instance to parse runtime
respectZ May 15, 2026
d59fdcd
Fix mcfunction lexer string terminate condition
respectZ May 15, 2026
10bf588
Add event alias
respectZ May 15, 2026
549536a
Add embed command dialogue initiator
respectZ May 15, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions handlers/animation.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,9 @@ var Animation = &JsonHandler{
shared.JsonValue("animations/*/anim_time_update"),
shared.JsonValue("animations/*/timeline/*/*"),
},
CommandEntry: JsonCommandEntry{
Handler: EmbedEventCommand,
RequireSlash: true,
Path: []shared.JsonPath{shared.JsonValue("animations/*/timeline/*/*")},
},
}
10 changes: 10 additions & 0 deletions handlers/animation_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,4 +132,14 @@ var AnimationController = &JsonHandler{
shared.JsonValue("animation_controllers/*/states/*/on_entry/*"),
shared.JsonValue("animation_controllers/*/states/*/on_exit/*"),
},
CommandEntry: JsonCommandEntry{
Handler: EmbedEventCommand,
RequireSlash: true,
Path: []shared.JsonPath{
shared.JsonValue("animation_controllers/*/states/*/animations/*/*"),
shared.JsonValue("animation_controllers/*/states/*/transitions/*/*"),
shared.JsonValue("animation_controllers/*/states/*/on_entry/*"),
shared.JsonValue("animation_controllers/*/states/*/on_exit/*"),
},
},
}
9 changes: 9 additions & 0 deletions handlers/dialogue.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,13 @@ var Dialogue = &JsonHandler{
},
},
},
CommandEntry: JsonCommandEntry{
Handler: EmbedDialogueCommand,
RequireSlash: true,
Path: []shared.JsonPath{
shared.JsonValue("minecraft:npc_dialogue/scenes/*/on_open_commands/*"),
shared.JsonValue("minecraft:npc_dialogue/scenes/*/on_close_commands/*"),
shared.JsonValue("minecraft:npc_dialogue/scenes/*/buttons/*/commands/*"),
},
},
}
8 changes: 8 additions & 0 deletions handlers/entity.go
Original file line number Diff line number Diff line change
Expand Up @@ -784,4 +784,12 @@ var Entity = &JsonHandler{
}
}),
),
CommandEntry: JsonCommandEntry{
Handler: EmbedCommand,
RequireSlash: false,
Path: []shared.JsonPath{
shared.JsonValue("minecraft:entity/events/**/queue_command/command"),
shared.JsonValue("minecraft:entity/events/**/queue_command/command/*"),
},
},
}
10 changes: 10 additions & 0 deletions handlers/feature_rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,16 @@ import (
var FeatureRule = &JsonHandler{
Pattern: shared.FeatureRuleGlob,
Entries: []JsonEntry{
{
Store: stores.FeatureRuleId.Source,
Path: []shared.JsonPath{shared.JsonValue("minecraft:feature_rules/description/identifier")},
Source: func(ctx *JsonContext) []core.Symbol {
return stores.FeatureRuleId.References.Get()
},
References: func(ctx *JsonContext) []core.Symbol {
return stores.FeatureRuleId.Source.Get()
},
},
{
Store: stores.FeatureId.References,
Path: []shared.JsonPath{shared.JsonValue("minecraft:feature_rules/description/places_feature")},
Expand Down
Loading