Repository navigation
MCCompiled 1.17
Additions: Dialogue Support
• dialogue new <name> { ... }
dialogue new "tradingDialogue" {
name: "Trader"
text: "Care to trade? I'm looking for only the finest pelts.\n§oHe squints at you."
onClose: {
print "You leave with purpose. Something about him wasn't quite right."
}
button "Common Pelt" {
clear @s common_pelt 1
print "'This will absolutely do.'\n\n+10 Gold"
gold[@s] += 10
}
button "Rare Pelt" {
clear @s rare_pelt 1
print "'Exemplary quality.'\n\n+50 Gold"
gold[@s] += 50
}
}• Supports code blocks and compiles right into the dialogue file.
• dialogue open syntax and dialogue change like vanilla.
• Includes compile-time selector validation.
• Support for localization natively.
• Support for using \n in text, if localization is enabled.
The method used to support newlines requires the component{ translate: "...", with: ["\n"] }
Additions
• Added feature audiofiles which allows the playsound command to accept audio file inputs.
• Location of audio file in relation to project has effect on where it's copied to the RP!
• Audio file is placed in 'RP/sounds' root if no relative path is found.
• Added proper function overloading.
• Added partial functions, which when re-defined, are appended to rather than overwritten.
• Added support for @r
• Added errors for defining a function with the same parameters.
• Added more compile-time checking to MANY commands/comparisons (especially regarding selectors).
• Localization now lets the BP/RP use pack.name and pack.description
• Updated documentation
Changes
• Localization no longer applies to whitespace strings or strings without letters.
• Removed support for @i selector, as it's not used in MCCompiled's dialogue implementation.
• Changed syntax of fill to match vanilla, because wow, it was awful before.
• Missing/unexpected parameters have more informative messages.
Bugfixes
• Fixed a bug which prevented more than one function from being resolved in a single statement.
• Fixed a bug which prevented more than one dereference from being resolved in a single statement (sometimes).
• Builder fields on their own lines now have tokens properly processed.
• $included files now execute relative to their location, not the caller's location.
• Fixed an issue with dummy entities having incorrect tick_world component.
• Updated the summon command (exploders and dummy entities) to work with the Minecraft 1.20.51+.
• Declaring functions located in folders as auto now works as intended.
• Removed actionbar times syntax because it's not a thing.
• Code created by generative functions like round() is now properly omitted if used in unused code.
• Code created by generative functions no longer generates more than once for the same configuration.
• You can now escape definitions.def entries (e.g., \[color: red])