Changed controls to more closely match common behavior and updated README

This commit is contained in:
natey2000 2025-04-11 18:13:49 -06:00
parent f5aae11a27
commit 4629825d86
2 changed files with 3 additions and 3 deletions

View file

@ -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. 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 ### Crafting

View file

@ -289,7 +289,7 @@ function ship.on_step(self, dtime, moveresult)
if self._driver and self._driver:is_player() then if self._driver and self._driver:is_player() then
local name = self._driver:get_player_name() local name = self._driver:get_player_name()
pi = self._driver:get_player_control() pi = self._driver:get_player_control()
exit = pi.sneak exit = pi.aux1
end end
if exit then if exit then
me.detach(self) me.detach(self)
@ -316,7 +316,7 @@ function ship.on_step(self, dtime, moveresult)
if pi.up then forward = 1 if pi.up then forward = 1
elseif pi.down then forward = -1 end elseif pi.down then forward = -1 end
if pi.jump then climb = 1 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 if pi.right then right = 1
elseif pi.left then right = -1 end elseif pi.left then right = -1 end