4b91ae9522
Before this patch, destroying an obsidian Nether portal frame destroyed Nether portal nodes recursively. In Minetest binaries compiled with Lua 5.1 (i.e. without LuaJIT) this would cause a stack overflow when a huge portal (23×23) was destroyed, crashing the server. This patch implements Nether portal destruction using node timers. When a portal node's timer triggers, it starts the timers of adjacent portal nodes with the same orientation and no active timer and deletes itself. Attempts to solve this problem using minetest.after() seemed promising, but rubenwardy pointed out that anything relying on minetest.after() is bound to fail if a server shuts down while portal nodes are destroyed. |
||
---|---|---|
.. | ||
locale | ||
sounds | ||
textures | ||
LICENSE | ||
README.md | ||
init.lua | ||
mod.conf | ||
portal_end.lua | ||
portal_nether.lua |
README.md
Portals mod for MineClone 2
How to create portals
Nether portal: Build an upright frame of obsidian, 4 blocks wide and 5 blocks high, and use a flint and steel inside it. End portal: Build an upright frame of red nether brick blocks, 4 blocks wide and 5 blocks high, and use an eye of ender inside it.
Credits
Created by maikerumine and Wuzzy.
Code license: MIT License (see LICENSE
).
Texture license: See README.md in main MineClone 2 directory.
mcl_portals_teleport.ogg
* License: CC BY 3.0
* Authors: FreqMan and Wuzzy
* Source: https://freesound.org/people/FreqMan/sounds/32541/
mcl_portals_open_end_portal.ogg
* License: CC0
* Author: Johnnie_Holiday
* Source: https://freesound.org/people/Johnnie_Holiday/sounds/546571/