
Wizards of Lua
Wizards of Lua brings the power of Lua scripting to Minecraft. It adds the /lua command, allowing you to cast spells and interact with the game using Lua scripts.
Оцените первым
2.9K
15
Список изменений
-
Breaking Change: Item access now always returns and stores copies (#26)
- All item getters return a copy of the underlying item. Modifying the returned value does not affect the original.
- All item setters store a copy of the provided item. The original value passed in is not consumed or modified.
- Migration: Code that relied on in-place modification of item references must now write the value back explicitly. For example:
-- Before (no longer works): local item = player:getItemInHand("MAIN_HAND") item.count = 5 -- had an effect on the actual item in hand -- After (correct): local item = player:getItemInHand("MAIN_HAND") item.count = 5 -- has NO effect on the actual item in hand player:setItemInHand("MAIN_HAND", item) -- NOW affects the item in hand - Affected APIs:
LivingEntity:getItemInHand(),LivingEntity:setItemInHand(),LivingEntity:getEquipment(),LivingEntity:setEquipment(),Player.mainHandItem,PlayerInventory[slot],Entity:dropItem(),ItemEntity:new(),ItemEntity.item.
-
New:
spell.worldis now writable (#25)- Assign a world to move a spell to a different dimension:
spell.world = spell.server:getWorld("the_nether") - Chunk-force tickets are correctly transferred when the spell changes worlds.
- Assign a world to move a spell to a different dimension:
-
New:
Server.worlds- Read-only list of all currently loaded server worlds.
-
New:
World.timeOfDay- Read-only property returning the current time-of-day tick (0–23999).
-
Fix:
and/orshort-circuit chain returns wrong result when condition is a comparison (#27)- Upgraded the internal Lua runtime (rembulan 0.3.2) which contains the fix for this logic bug.
Метаданные
Канал релиза
Release
Номер версии
4.0.0-1.21.8
Загрузчики
Fabric
Версии игры
1.21.8
Загрузок
5
Дата публикации
02.04.2026
