Commit Graph

13 Commits

Author SHA1 Message Date
Treer
7b72364d15 Update copyrights & require Minetest v0.4.16 or greater
Also adds nether.register_wormhole_node(), moving the wormhole node template into portal_api.lua, and allowing wormhole nodes with custom post_effect_color to be more easily created.
2020-02-15 16:04:00 +11:00
Treer
672069d798 Add PortalShape_Platform
and other work on the portal examples
also documentation and fixing issue where apples prevented volume_is_natural() from returning true
2020-02-15 16:03:58 +11:00
Treer
f9692faaa7 Standardize files as LF without CR, and UTF-8 without BOM
UTF-8 with BOM crashes some systems according to 6551f5c120 comment, and there are several cases where Minetest is buggy with files that use CRLF line endings (though none I'm aware that affect these files), so strip CRs and BOM
2020-02-15 16:03:58 +11:00
Treer
f11669f388 documentation 2020-02-15 16:03:57 +11:00
Treer
ceb7148ce8 Check no other mod is already using a portal definition 2020-02-15 16:03:57 +11:00
Treer
c934cfa481 Add animated particle support
Also implements an ignition failure sound.
2020-02-15 16:03:56 +11:00
Treer
a679d2ca81 Add example alternative shape PortalShape_Circular
Also fixes up a few bugs that only became apparent when not using the traditional portal shape
2020-02-15 16:03:56 +11:00
Treer
e82d9e3f16 Add portal ignition sparks 2020-02-15 16:03:55 +11:00
Treer
fc90d79396 Implement sound and events in API 2020-02-15 16:03:54 +11:00
Treer
d4d3af2cdf Unlinks target portal if it's linked to a different portal
This is effectively a missing part to the change that made locate_or_build_portal() enforce that portals only link together in mutual pairs. As target portals that didn't need to be located or built we not being updated to link back to where the player travelled from.

Also
* implements events: on_run_wormhole, on_extinguish
* adds a lot of debug info
2020-02-15 16:03:54 +11:00
Treer
711c930697 fix bugs
fixes nullreference in find_surface_target_y, and ensure_remote_portal_then_teleport assuming a traditional portal shape.
minor documentation work.
2020-02-15 16:03:54 +11:00
Treer
44f4f5ed91 Portals connect to nearby targets
Records portal positions. More testing required
2020-02-15 16:03:53 +11:00
Treer
5fe2c86866 provide Portal API 2020-02-15 16:03:52 +11:00