Skip to content

LunaCore 0.8.0

Pre-release
Pre-release

Choose a tag to compare

@STBrian STBrian released this 04 Jun 03:00
· 332 commits to main since this release

Changelog

  • Added field Game.World.Loaded to detect whether there is a World Level currently loaded or not
  • Error messages now includes a prefix about where exactly the error happened internally
  • Fixed "Unknown item" when trying to get an item name not registered, now all items should return their names correctly
  • Added field Game.LocalPlayer.Velocity.get() and Game.LocalPlayer.Velocity.set() (get returns 3 numbers that correspond to x, y and z; and set takes 3 arguments also x, y, z)

If your script shows an error message, you can check the full error in the log file at sdmc:/Minecraft 3DS/log.txt.

If the plugin crashes the game, you can check the log file too to know if the plugin was doing something before crashing, if nothing important showing, you can add log messages to your scripts with Game.Debug.log() which takes 1 required argument (the message) and 1 optional argument (whether show the message on screen or not. Default false)

You can import other lua scripts by doing require("modname"), modname being the name of the script that you want to import. It will search in the paths sdmc:/Minecraft 3DS/scripts/?.lua and sdmc:/Minecraft 3DS/scripts/?/init.lua, where ? is replaced by modname