A mod that adds fully functioning hang-gliders to minetest!
Go to file
Niklp 104ebd4ee7
Rename function based on feedback
2024-04-11 13:44:29 +02:00
.github/workflows Hangglider rewrite and improvements (#11) 2023-08-03 08:33:36 +02:00
models Hangglider rewrite and improvements (#11) 2023-08-03 08:33:36 +02:00
sounds Hangglider rewrite and improvements (#11) 2023-08-03 08:33:36 +02:00
textures Hangglider rewrite and improvements (#11) 2023-08-03 08:33:36 +02:00
.gitattributes Hangglider rewrite and improvements (#11) 2023-08-03 08:33:36 +02:00
.luacheckrc Add API to register custom "can fly checks" 2024-02-21 14:22:04 +01:00
GNU_GPL.txt GPL Compliance for minetest_systemd 2018-11-29 21:51:04 -08:00
GNU_LGPL.txt Mod upload 2018-11-14 20:26:27 -08:00
LICENSE.txt Added option to shoot down hanggliders flying in restricted airspace 2018-12-09 22:43:13 +01:00
README.md Seperate area flak and custom checks 2024-03-01 15:31:00 +01:00
crafts.lua fix pattern to match dye name with underscores 2023-08-06 00:49:16 +10:00
init.lua Rename function based on feedback 2024-04-11 13:44:29 +02:00
mod.conf Hangglider rewrite and improvements (#11) 2023-08-03 08:33:36 +02:00
screenshot.png new screenshot 2023-08-05 16:15:26 +10:00
settingtypes.txt Hangglider rewrite and improvements (#11) 2023-08-03 08:33:36 +02:00

README.md

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.

API

Custom "can fly" checks

hangglider.add_fly_check(function(name, player)
	-- `name` is the playername
	-- `player` is the PlayerRef
	-- Add your code here
	-- Must return `true` (can fly) or `false` (can't fly)
	return true
end)