Version 2.4 for Minecraft 1.16
Changes compared to 2.3.7-pre6
- Updated to Minecraft 1.16
- Changes to scripting:
player.openContainer
attribute renamed toplayer.currentContainer
- new function
player.openContainer
, which opens a container at a coordinate or entity - new function
player.pathTo
(pathfinding) - new function
player.craft
, which makes it way easier to do crafting with scripts - new function
world.getClosestVisiblePoint
- new functions
Inventory.findSlot
,Inventory.findSlots
andInventory.moveItems
, new utility functions for item handling in inventories - new interface
Position
- new interface
PathFindingHints
- the scripting API can now be considered stable, meaning that existing scripts should no longer break except in exceptional circumstances
Changes compared to 2.3.6
- Updated to Minecraft 1.16
- Added a scripting API
- accessible through the
/cscript
command - documented in
docs/clientcommands.ts
in the repository, example scripts can also be found nearby - scripts are JavaScript (ECMAScript 5) files in the
config/clientcommands/scripts
directory in your.minecraft
folder - to change them while the game is running, you must reload them using
/cscript reload
- accessible through the
- Added German and Slovene translations. Contributions to translations are welcome