From 143a00e06d5901b5ff3596fcf0cddb063e5f1d94 Mon Sep 17 00:00:00 2001 From: natey2000 Date: Thu, 10 Apr 2025 15:27:58 -0600 Subject: [PATCH 1/3] Changed controls to more closely match expected behavior --- balloon.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/balloon.lua b/balloon.lua index 1400571..b622245 100644 --- a/balloon.lua +++ b/balloon.lua @@ -287,7 +287,7 @@ function ship.on_step(self, dtime, moveresult) if self._driver and self._driver:is_player() then local name = self._driver:get_player_name() pi = self._driver:get_player_control() - exit = pi.sneak + exit = pi.aux1 end if exit then me.detach(self) @@ -314,7 +314,7 @@ function ship.on_step(self, dtime, moveresult) if pi.up then forward = 1 elseif pi.down then forward = -1 end if pi.jump then climb = 1 - elseif pi.aux1 then climb = -1 end + elseif pi.sneak then climb = -1 end if pi.right then right = 1 elseif pi.left then right = -1 end From e06d50a57aff4dc598015b8d45540ed963df8877 Mon Sep 17 00:00:00 2001 From: natey2000 Date: Thu, 10 Apr 2025 15:46:19 -0600 Subject: [PATCH 2/3] Updated README to reflect control changes --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 835d193..592a69a 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Mod for minetest This adds an airship to minetest_game or mcl2. Not tested on any other games. If it uses default:steel_ingot or mcl_core:iron_ingot for example, then it should work. It should not crash no matter what game you use though, this is only for the crafting recipes. The dependency on MTG or MCL2 is only for crafting, otherwise the ship it self can still be used just not crafted (because I don't know what your game calls each item / node etc) -Flies like a boat, WSAD, jump and aux1 (sprint) for up and down. Shift to dismount. Does not require fuel but will go faster when given any type of coal. +Flies like a boat, WSAD controls with the addition of jump for up, sneak for down, and aux1 (sprint) to dismount. Does not require fuel but will go faster when given any type of coal. ### Crafting (mcl) Craftable with wool > canvas and boats > hull. All items: wool: 27, string: 4, wood: 15, iron_ingot: 4 From 4629825d8600accf898aafd8d19456e98f51b253 Mon Sep 17 00:00:00 2001 From: natey2000 Date: Fri, 11 Apr 2025 18:13:49 -0600 Subject: [PATCH 3/3] Changed controls to more closely match common behavior and updated README --- README.md | 2 +- balloon.lua | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9b8e1d2..ab69733 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ Mod for [Luanti](https://luanti.org). You can download it from the in-game conte This mod adds an airship to Minetest. It should work in most games, but only Minetest Game, MineClone (VoxeLibre) and RePixture are supported for crafting recipes. Games based on those may still have crafting if they use the same items. Other games are not because the mod doesn't know what each game calls each item or node. Although, it shouldn't crash no matter what game you use, this is only for crafting recipes. -**Controls:** Flies like a boat, WASD, jump and aux1 (sprint) for up and down. Shift to dismount. Does not require fuel but will go faster when given any type of coal. +**Controls:** Flies like a boat, WSAD controls with the addition of jump for up, sneak for down, and aux1 (sprint) to dismount. Does not require fuel but will go faster when given any type of coal. ### Crafting diff --git a/balloon.lua b/balloon.lua index 65e3593..4982783 100644 --- a/balloon.lua +++ b/balloon.lua @@ -289,7 +289,7 @@ function ship.on_step(self, dtime, moveresult) if self._driver and self._driver:is_player() then local name = self._driver:get_player_name() pi = self._driver:get_player_control() - exit = pi.sneak + exit = pi.aux1 end if exit then me.detach(self) @@ -316,7 +316,7 @@ function ship.on_step(self, dtime, moveresult) if pi.up then forward = 1 elseif pi.down then forward = -1 end if pi.jump then climb = 1 - elseif pi.aux1 then climb = -1 end + elseif pi.sneak then climb = -1 end if pi.right then right = 1 elseif pi.left then right = -1 end