Merge remote-tracking branch 'refs/remotes/MysticTempest/airship_fixes'

This commit is contained in:
Sumyjkl 2023-06-06 15:18:51 +10:00
commit 55241acaba
4 changed files with 41 additions and 7 deletions

View file

@ -1,4 +1,19 @@
# sum_airship
Mod for minetest
[ContentDB](https://content.minetest.net/packages/Sumianvoice/sum_airship/)
[ContentDB](https://content.minetest.net/packages/Sumianvoice/sum_airship/)
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.
### Crafting (mcl)
Craftable with wool > canvas and boats > hull. All items: wool: 27, string: 4, wood: 15, iron_ingot: 4
#### Crafting Guide GIF:
![airship%20crafting.gif](airship%20crafting.gif)
### Air Currents
This optionally uses [sum_air_currents](https://content.minetest.net/packages/Sumianvoice/sum_air_currents/) to apply force based on the weather. Both this mod and the air currents mod are in development so expect changes made regularly.

View file

@ -429,4 +429,9 @@ minetest.register_craftitem("sum_airship:boat", {
})
-- Support SilverSandstone's subtitles mod:
if minetest.get_modpath("subtitles") then
subtitles.register_description('sum_airship_lip_trill', 'Engine purring');
subtitles.register_description('sum_airship_lip_trill_end', 'Engine sputtering');
subtitles.register_description('sum_airship_fire', 'Engine stoked');
end

View file

@ -15,17 +15,21 @@ minetest.register_craftitem("sum_airship:hull", {
stack_max = 1,
groups = { craftitem = 1 },
})
if true then
local w = "group:wool"
if not minetest.get_modpath("farming") then w = "default:paper" end
local b = "default:boat"
local b = "boats:boat"
local m = "default:steel_ingot"
local s = "farming:string"
if minetest.get_modpath("mcl_boats")
and minetest.get_modpath("mcl_wool")
and minetest.get_modpath("mcl_core") then
and minetest.get_modpath("mcl_core")
and minetest.get_modpath("mcl_mobitems") then
w = "group:wool"
b = "mcl_boats:boat"
b = "group:boat"
m = "mcl_core:iron_ingot"
s = "mcl_mobitems:string"
end
minetest.register_craft({
output = "sum_airship:canvas_roll",
@ -42,4 +46,13 @@ if true then
{m, m, m},
},
})
end
minetest.register_craft({
output = "sum_airship:boat",
recipe = {
{"sum_airship:canvas_roll","sum_airship:canvas_roll","sum_airship:canvas_roll",},
{s, m, s,},
{s, "sum_airship:hull", s,},
},
})

View file

@ -2,3 +2,4 @@ local mod_name = minetest.get_current_modname()
local mod_path = minetest.get_modpath(mod_name)
dofile(mod_path .. DIR_DELIM .. "balloon.lua")
dofile(mod_path .. DIR_DELIM .. "crafts.lua")