Tags
Creators
Details
7.0.0-26.3
Compatibility
Changes
-
Breaking Change: Structures save and load themselves:
structure:saveandStructure:load- They replace
Server:saveStructureandServer:loadStructure. The returned path has "/" between the folders on every system.struct:save("mickkay:tower") -- before: spell.server:saveStructure("mickkay:tower", struct) local loaded = Structure:load("mickkay:tower") -- before: spell.server:loadStructure("mickkay:tower")
- They replace
-
Breaking Change: A skin is a
Skinobjectplayer.skinis theSkina player wears (nilfor a default skin), no longer an account name. Assign aSkinto put it on,nilfor a default skin.Player:setSkinandPlayer:getSkinare gone.Skin:lookup(account)gets an account's skin from Mojang;skin:save(path)andSkin:load(path)keep it in the world folder.local skin = Skin:lookup("jeb_") -- before: player:setSkin("jeb_") if skin then player.skin = skin end
-
Breaking Change:
MobEntity.lookAtis nowMobEntity.watchTargetlookAtis now a function that turns any entity once, see below.
-
Breaking Change: A mob's attack task counts
task.hitsandtask.shotsaparttask.hitscounts the hits that hurt the target,task.shotsthe shots fired.task.hitscounted both.
-
Breaking Change:
ChatMessageEventalso fires for/sayand/meof anyoneevt.senderis theEntityorSpellthat sent the message (nilfor a command block or the console), not always a player. New:evt.senderNameandevt.kind("chat", "say" or "emote").
-
New: Bot players: players without a client that spells control
Bot:spawn(name, pos)makes a bot that joins like a player, so every event fires as for a player. Use bots to play-test a mini-game, or as companions.- A bot acts like a player at the keyboard. Tasks let it walk along paths it finds, follow, flee, fight, stay, break and place blocks, and fill or empty containers.
BotMessageEventandBotSoundEventtell what it sees and hears. See Bot.
-
New: The Squire example
- A bot that follows you, fights at your side and holds a spot:
/squire hire <name>.
- A bot that follows you, fights at your side and holds a spot:
-
New:
Entity:lookAt(target)turns any entity once to a position or another entityspell:lookAttakes an entity too.
-
New:
Player.flyingtells and sets whether a player flies -
New: An interceptor doesn't get the events it causes itself
- So a callback that answers each chat message in the chat doesn't call itself without end.
-
Fix: The Journey example works on Minecraft 1.21.5, and
/journey cancelsays when there is no journey to cancel -
Fix: An invalid value for
sneakingnamessneakingin the error message
Supplementary resources
| File | Type | Size | |
|---|---|---|---|
| wizards-of-lua-7.0.0-26.3-sources.jar | Sources jar | 537.59 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:1gujtTrT"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:HW3198Ve:1gujtTrT"
}

