mirror of
https://gitlab.com/lunovox/computing.git
synced 2025-03-21 17:11:25 +00:00
[add] Adding integration to the 'components' mod.
This commit is contained in:
parent
0ba1ecf6e3
commit
67bcbf4f0d
2 changed files with 21 additions and 10 deletions
|
@ -138,15 +138,26 @@ core.register_craftitem("computing:smartphone", {
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
--[[
|
--[[ ]]
|
||||||
core.register_craft({
|
if not minetest.get_modpath("components") then
|
||||||
output = 'computing:smartphone',
|
core.register_craft({
|
||||||
recipe = {
|
output = 'computing:smartphone',
|
||||||
{"default:obsidian_glass" ,"default:obsidian_glass" ,"default:book"},
|
recipe = {
|
||||||
{"default:obsidian_glass" ,"default:obsidian_glass" ,"default:mese_crystal"},
|
{"default:obsidian_glass" ,"default:obsidian_glass" ,"default:book"},
|
||||||
{"default:obsidian_glass" ,"default:obsidian_glass" ,"keys:skeleton_key"},
|
{"default:obsidian_glass" ,"default:obsidian_glass" ,"default:mese_crystal"},
|
||||||
}
|
{"default:obsidian_glass" ,"default:obsidian_glass" ,"keys:skeleton_key"},
|
||||||
})
|
}
|
||||||
|
})
|
||||||
|
else
|
||||||
|
core.register_craft({
|
||||||
|
output = 'computing:smartphone',
|
||||||
|
recipe = {
|
||||||
|
{"default:obsidian_glass" ,"default:obsidian_glass" ,"components:speaker"},
|
||||||
|
{"default:obsidian_glass" ,"components:touch_screen" ,"components:computer"},
|
||||||
|
{"default:obsidian_glass" ,"default:obsidian_glass" ,"components:power_cell"},
|
||||||
|
}
|
||||||
|
})
|
||||||
|
end
|
||||||
--[[ ]]
|
--[[ ]]
|
||||||
|
|
||||||
core.register_alias("smartphone", "computing:smartphone")
|
core.register_alias("smartphone", "computing:smartphone")
|
||||||
|
|
2
mod.conf
2
mod.conf
|
@ -7,7 +7,7 @@ license = GNU AGPL-3.0
|
||||||
media_license = CC BY-SA 4.0
|
media_license = CC BY-SA 4.0
|
||||||
supported_games = minetest_game
|
supported_games = minetest_game
|
||||||
depends = default,keys
|
depends = default,keys
|
||||||
optional_depends =
|
optional_depends = components
|
||||||
min_minetest_version = 5.7
|
min_minetest_version = 5.7
|
||||||
max_minetest_version =
|
max_minetest_version =
|
||||||
author = Lunovox Heavenfinder: [email](mailto:lunovox@disroot.org), [social web](http:qoto.org/@lunovox), [webchat](https://cloud.disroot.org/call/9aa2t7ib), [xmpp](xmpp:lunovox@disroot.org?join), [Mumble](mumble:mumble.disroot.org), [more contacts](https:libreplanet.org/wiki/User:Lunovox)
|
author = Lunovox Heavenfinder: [email](mailto:lunovox@disroot.org), [social web](http:qoto.org/@lunovox), [webchat](https://cloud.disroot.org/call/9aa2t7ib), [xmpp](xmpp:lunovox@disroot.org?join), [Mumble](mumble:mumble.disroot.org), [more contacts](https:libreplanet.org/wiki/User:Lunovox)
|
||||||
|
|
Loading…
Add table
Reference in a new issue