1
0
mirror of https://github.com/mt-mods/hangglider.git synced 2025-11-21 01:25:42 +01:00
Medley 17419f721e Add support for games without default game (MTG) (#25)
* Add support for games without `default`

This adds support for games like Mineclonia, and any game xcompat adds
support for. The only asterix is dye support, the pattern for dyes has
been expanded for common dye mods, but if a new dye mod has different
dye names those might not work without an update to the pattern.

* Refactor & fix Farlands dye support

* Add some mcl colors, make names & their order consistent

* Fix old crafting bug & refacfor crafting

* Minor refactor & reorder for clarity

* Fix for Farlands `get_name` returning "" not nil

Farlands seems to return "" instead of nil/0 when no item is present.
By accounting for this, this commit fixes an issue where any empty slot
repaired the glider.

* Separate color handling to new module

* Luacheck fix

* Ignore empty `do end` luacheck warnings

* Replace `minetest.` with `core.`
2025-10-19 10:22:36 -04:00
2018-11-14 20:26:27 -08:00
2023-08-05 16:15:26 +10:00

Hang Glider [hangglider]

luacheck ContentDB

Adds a functional hang glider for exploring. Also works as a parachute to save yourself when falling.

Rewritten and improved fork of https://notabug.org/Piezo_/minetest-hangglider.

Usage

To deploy the hang glider, hold the item in your hand and use it (left-click). The same action also closes the hang glider when it's deployed.

While deployed you can glide around just like walking in the air. Your decent will be slowed until you land on a safe node, which can be any solid node, or a safe liquid like water. Upon landing the hang glider will automatically close.

Coloring

You can color the hang glider by crafting it with any dye. Also supports all unifieddyes colors.

Note that the color will only be visible on the item if you are using Minetest 5.8.0 or above.

Repairing

The hang glider will wear out every time you use it. The hang glider can be repaired by crafting it with wool or paper, or any other method used to repair tools.

Area Flak

If the areas mod is installed, airspace restrictions can be added to areas using the /area_flak command.

When using a hang glider in an area with flak enabled, you will get shot down a few seconds after entering the area, this reduces your HP to 1 and destroys your hang glider.

Description
A mod that adds fully functioning hang-gliders to minetest!
Readme 3.4 MiB
Languages
Lua 100%