1
0
mirror of https://github.com/mt-mods/hangglider.git synced 2024-11-16 07:20:39 +01:00
A mod that adds fully functioning hang-gliders to minetest!
Go to file
2024-04-25 14:28:19 +10:00
.github/workflows Hangglider rewrite and improvements (#11) 2023-08-03 08:33:36 +02:00
locale Add translation support and ca, de and es translations (#18) 2024-04-25 14:23:20 +10: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 translation support and ca, de and es translations (#18) 2024-04-25 14:23:20 +10:00
crafts.lua Add translation support and ca, de and es translations (#18) 2024-04-25 14:23:20 +10: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
init.lua Merge 104ebd4ee7 into 3e304e3e5d 2024-04-25 14:28:19 +10:00
LICENSE.txt Added option to shoot down hanggliders flying in restricted airspace 2018-12-09 22:43:13 +01:00
mod.conf Hangglider rewrite and improvements (#11) 2023-08-03 08:33:36 +02:00
README.md Seperate area flak and custom checks 2024-03-01 15:31:00 +01: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

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)