Tags
Creators
Details
8.1.1-1.21.8
Compatibility
Changes
-
Change: Lua error messages as in Lua 5.3 (rembulan #53, #55, #60)
- Wizards of Lua now uses rembulan 0.6.0.
- Runtime errors and
error("message")start with the position, as in Lua:command-line:3: attempt to index a nil value. Compile errors name the line too. io.openand the otheriofunctions returnnil, a message that starts with the file name, and an error number when they fail:nil, "notes.txt: No such file or directory", 2.- Also fixed: patterns with
$in the middle,^after the start or a lone]; the escape\u{10FFFF}; an explicitnilin an optional argument of a library function;loadwith a reader function;gotopast a local variable.
-
Fix: Endless recursion in a spell should end the spell with an error, not crash the server (rembulan #45)
- A function that calls itself without end, or a loop of
__indexor__newindextables, now raises the Lua error "stack overflow" or "'__index' chain too long; possible loop", whichpcallcatches.
- A function that calls itself without end, or a loop of
-
Fix: An event interceptor whose result is no boolean should end its spell, not crash the server
- An interceptor that returned a string, for example, crashed the server when the event came from the game, such as an entity taking damage. Now its spell ends with an error and the event goes on.
-
Fix:
loadshould count the time compiling takes against the spell's tickLimit- It counted the size of the code only, a third of what compiling code with many functions costs, so a loop over
loadcould hold a game tick for some 30 ms instead of 10. Compiling the modules ofrequirestill doesn't count.
- It counted the size of the code only, a third of what compiling code with many functions costs, so a loop over
Supplementary resources
| File | Type | Size | |
|---|---|---|---|
| wizards-of-lua-neoforge-8.1.1-1.21.8-sources.jar | Sources jar | 619 KiB |
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:HW3198Ve:tRqGA7D3"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:HW3198Ve:tRqGA7D3"
}

