Mappet 0.3
This update is brought to you by TorayLife and McHorse.
Compatible with McLib 2.4.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.
- Added support for any Java scripting engine. This means that scripts can be written in any language for which there is an engine. You can search for your language by
java <language> scripting engine
. Mappet itself will determine which engine to use by file extension. (js
-javascript
,kts
-Kotlin Script
, etc). Made in cooperation with dyamo - Added the ability to customize the syntax highlighting in the script editor. Use the files in the
config/mappet/highlights/
directory to customize it. Files forjs
andkts
extensions are supplied by default - Added a special error text if no script engine is found
- Added a folder system for events, dialogues, quests, scripts. etc. Use RMB on the file add, rename, remove icons for new functionality. (May contain bugs)
- Added an error when trying to set a position or rotation for an entity as NaN
- Added
IScriptEntity.getWorld()
- Added open folder context menu to all name lists in Mappet data dashboard panels when in singleplayer
- Added
minecraft:player
to kill objective entity list - Changed
unique
toggle for scripts to be enabled by default - Changed
IScriptEntity.setTarget(IScriptEntity)
to acceptnull
, which indicates resetting the attack target - Changed
IScriptPlayer.openUI()
to allow opening a UI when another scripted UI is opened - Fixed
IScriptPlayer.getSkin()
now it works much better - Fixed GraalJS not working with Mappet's scripts
- Fixed Ingredients label present when a recipe has no ingredients