Skip to content

Mappet 0.6

Compare
Choose a tag to compare
@mchorse mchorse released this 31 May 07:43
· 149 commits to master since this release

This update is brought to you by @TorayLife. It features a lot of scripting related features like listening to Forge events, inline scripts, documentation improvements, and more!

Compatible with McLib 2.4.1, Aperture 1.8.1, Blockbuster 2.6 and Metamorph 1.3.1. It doesn't mean that future versions of McLib, Blockbuster and Metamorph would be incompatible, but older versions are most likely incompatible.

  • New triggers:
    • Added Player: toss an item trigger
  • New features:
    • Added Forge event triggers that allow you to listen to Forge events. WARNING: this feature can corrupt your world. Use at own fear and risk!
    • Added Inline scripts feature from BBS, that allows you to write JS (ES5) code directly in script trigger, without creating a script file
    • Added F6 keybind to run currently open script in the script editor
    • Added Ctrl + D keybind to duplicate current line in script editor
    • Added ability to translate documentation. Copy docs.json file from Mappet’s jar file, rename it to your language code (i.e. ru_ru.json for Russian) and put into .minecraft/config/mappet/documentation/
    • Added Ignore NBT option in crafts and events
    • Added search to documentation overlay
    • Added link to JavaDocs in documentation
    • Added new documentation sctructure. You can enable it in the config
  • API changes:
    • Added IScriptNpc.setFaction() method
    • Added entityItem variable to Player: picked up an item trigger
    • Added IScriptEntity.setMaxHp(float) method
    • Added IScriptFactory.getIScriptEntity(minecraftEntity) method
    • Added IMappetSchematic interface, that works with existing .schematic format
    • Added methods to disable creative search and count in UIStackComponent
    • Added IScriptEntityItemStack interface, that represents EntityItemStack (item that dropped into the world)
    • Added IScriptPlayer.giveItem(IScriptItemStack) method
  • Bugfixes:
    • Fixed UIStringListComponent doesn’t update if you set empty array as a value
    • Fixed IScriptEvent.scheduleScript(int) doesn’t work
    • Fixed region block doesn’t work, if you disable passible option
    • Fixed Kotlin doesn’t work with obfuscated methods
    • Fixed crashes when you try to cancel uncancelable event
    • Fixed crash when you open executeScript in documentation
    • Fixed Player: Respawn trigger not working
    • Fixed createBlockState issue with metadata
  • Other:
    • Completely rewrite Russian localization