Repository navigation
MCCompiled 1.15
Much better control flow and API support, along with loads of important bugfixes. No huge features in this update in preparation for all the new types stuff coming in 1.16. Types were completely reworked, so please report any bugs ASAP!
Additions
• Optimized output by only including functions that were used in the project
This allows users to use APIs created in MCCompiled in a more efficient way without bloating their project.
• Web IDE: Macros now show up in autocomplete and fully support templating.
• Added bind('query.is_sleeping') to possible bindings.
• Returning inconsistent types in functions now uses conversion instead of throwing an error.
Reminder: the first instance of
returnalways sets the function return type.
• Swapping >< now converts types if they need to be converted.
• Conversion now only respects the left-hand side of the operation. (thanks SuperFluffyGame!)
• New export attribute which exports a function regardless if it's used or not.
• New auto attribute which makes a function run every tick/interval (if specified).
• Feature uninstall now also removes all temps and return values.
Changes
• (last update) Value names are no longer hashed unless they are longer than 256 characters.
• Function parameters are now global by default, making them work good when used with tick.json.
• Return values are now global by default, making them work good when used with tick.json.
• Removed unnecessary quotation marks in output to make Blockception happy (and me).
• Swapped arguments of setblock command to match vanilla.
• Much better handling of type-related errors.
• Re-evaluated and re-implemented where and how temps are used. More will be used now, but there is less chance of temps overwriting each other when they shouldn't.
Bugfixes
• Fixed --help formatting errors.
• Daemon detects file changes and handles inputs faster.
• 256 character limit for values now actually works.
• Function parameters that exceed the character limit no longer have bugged names.
• Function-call setup subfunctions no longer have . characters in their name.
• Global text commands now properly display values local to the player they are displaying to.
Consider the code
define int scoreandglobalactionbar "Your score is {score}".
Previously, it would show all players the score of the player that executed the command. Now, it will show each individual player's score. This change only affects theglobalXcommands, not the regular ones in order to retain control with the programmer.
• Language server now provides information about macros. This field was accidentally left empty.
• Language server no longer crashes with big projects.
(And has better overall support for browsers.)
• Added missing enchantments mending and swift_sneak
• Fixed grammatical issues with decoration of if-statements.
• OPEN COM.MOJANG button in the IDE works again.