Add files via upload
parent
fc5ac101ee
commit
d8efa07149
|
@ -0,0 +1,30 @@
|
|||
Licenses of media (3D Meshes and textures)
|
||||
---------------------------------------
|
||||
|
||||
Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)
|
||||
|
||||
Copyright (C) 2019 - 2020 Steamed_Punk steamedpunk.mt at gmail.com
|
||||
|
||||
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
|
||||
You are free to:
|
||||
|
||||
Share — copy and redistribute the material in any medium or format
|
||||
Adapt — remix, transform, and build upon the material
|
||||
for any purpose, even commercially.
|
||||
|
||||
This license is acceptable for Free Cultural Works.
|
||||
|
||||
The licensor cannot revoke these freedoms as long as you follow the license terms.
|
||||
|
||||
Under the following terms:
|
||||
|
||||
Attribution — You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
|
||||
|
||||
ShareAlike — If you remix, transform, or build upon the material, you must distribute your contributions under the same license as the original.
|
||||
|
||||
No additional restrictions — You may not apply legal terms or technological measures that legally restrict others from doing anything the license permits.
|
||||
|
||||
Notices:
|
||||
|
||||
You do not have to comply with the license for elements of the material in the public domain or where your use is permitted by an applicable exception or limitation.
|
||||
No warranties are given. The license may not give you all of the permissions necessary for your intended use. For example, other rights such as publicity, privacy, or moral rights may limit how you use the material.
|
|
@ -0,0 +1,116 @@
|
|||
-- Licenses of media (3D Meshes and textures)
|
||||
-- ---------------------------------------
|
||||
|
||||
-- Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)
|
||||
|
||||
-- Copyright (C) 2019 - 2020 Steamed_Punk steamedpunk.mt at gmail.com
|
||||
|
||||
-- NODES
|
||||
|
||||
-- HUTS
|
||||
|
||||
minetest.register_node("mt_buildings:hut01", {
|
||||
description = "Gun Shop",
|
||||
drawtype = "mesh",
|
||||
mesh = "hut01.obj",
|
||||
tiles = {"GunsFREE.jpg"},
|
||||
inventory_image = "GunsFREE.jpg",
|
||||
wield_image = "GunsFREE.jpg",
|
||||
buildable_to = false,
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
groups = {choppy=2, oddly_breakable_by_hand=2, flammable=3},
|
||||
on_place = minetest.rotate_node,
|
||||
collisionbox = {-1.5, -0.5, -1.5, 1.5, 1.5, 1.5},
|
||||
|
||||
})
|
||||
|
||||
minetest.register_node("mt_buildings:hut02", {
|
||||
description = "Medic",
|
||||
drawtype = "mesh",
|
||||
mesh = "hut01.obj",
|
||||
tiles = {"MedicFREE.jpg"},
|
||||
inventory_image = "MedicFREE.jpg",
|
||||
wield_image = "MedicFREE.jpg",
|
||||
buildable_to = false,
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
groups = {choppy=2, oddly_breakable_by_hand=2, flammable=3},
|
||||
on_place = minetest.rotate_node,
|
||||
selectionbox = {-1.0, -0.5, -1.5, 1.5, 1.5, 1.5},
|
||||
collisionbox = {-1.5, -0.5, -1.5, 1.5, 1.5, 1.5},
|
||||
|
||||
})
|
||||
|
||||
minetest.register_node("mt_buildings:hut03", {
|
||||
description = "Old Shop",
|
||||
drawtype = "mesh",
|
||||
mesh = "hut01.obj",
|
||||
tiles = {"ShopFREE.jpg"},
|
||||
inventory_image = "ShopFREE.jpg",
|
||||
wield_image = "ShopFREE.jpg",
|
||||
buildable_to = false,
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
groups = {choppy=2, oddly_breakable_by_hand=2, flammable=3},
|
||||
on_place = minetest.rotate_node,
|
||||
selectionbox = {-1.5, -0.5, -1.5, 1.5, 1.5, 1.5},
|
||||
collisionbox = {-1.5, -0.5, -1.5, 1.5, 1.5, 1.5},
|
||||
|
||||
})
|
||||
|
||||
minetest.register_node("mt_buildings:hut04", {
|
||||
description = "Cottage",
|
||||
drawtype = "mesh",
|
||||
mesh = "hut01.obj",
|
||||
use_texture_alpha = true,
|
||||
tiles = {"CottageFREE.png"},
|
||||
inventory_image = "CottageFREE.png",
|
||||
wield_image = "CottageFREE.png",
|
||||
buildable_to = false,
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
groups = {choppy=2, oddly_breakable_by_hand=2, flammable=3},
|
||||
on_place = minetest.rotate_node,
|
||||
selectionbox = {-1.5, -0.5, -1.5, 1.5, 1.5, 1.5},
|
||||
collisionbox = {-1.5, -0.5, -1.5, 1.5, 1.5, 1.5},
|
||||
|
||||
})
|
||||
|
||||
-- TOTEM_CRAFT
|
||||
|
||||
minetest.register_craft({
|
||||
output = "mt_buildings:hut01",
|
||||
recipe = {
|
||||
{'', 'group:tree', ''},
|
||||
{'','group:tree', ''},
|
||||
{'', 'group:tree', ''},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "mt_buildings:hut02",
|
||||
recipe = {
|
||||
{'', '', ''},
|
||||
{'group:tree','group:tree', 'group:tree'},
|
||||
{'', '', ''},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "mt_buildings:hut03",
|
||||
recipe = {
|
||||
{'', '', 'group:tree'},
|
||||
{'','group:tree', ''},
|
||||
{'group:tree', '', ''},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "mt_buildings:hut04",
|
||||
recipe = {
|
||||
{'group:tree', '', ''},
|
||||
{'','group:tree', ''},
|
||||
{'', '', 'group:tree'},
|
||||
}
|
||||
})
|
|
@ -0,0 +1,11 @@
|
|||
-- MT_Buildings by Steamed_Punk (CC BY-NC 3.0)
|
||||
local path = minetest.get_modpath("mt_buildings")
|
||||
|
||||
-- Load support for intllib.
|
||||
local MP = minetest.get_modpath(minetest.get_current_modname())
|
||||
local S, NS = dofile(MP.."/intllib.lua")
|
||||
|
||||
-- MT_Buildings
|
||||
|
||||
dofile(path .. "/huts.lua") -- Steamed_Punk
|
||||
print (S("[MOD] Huts are loaded"))
|
|
@ -0,0 +1,45 @@
|
|||
|
||||
-- Fallback functions for when `intllib` is not installed.
|
||||
-- Code released under Unlicense <http://unlicense.org>.
|
||||
|
||||
-- Get the latest version of this file at:
|
||||
-- https://raw.githubusercontent.com/minetest-mods/intllib/master/lib/intllib.lua
|
||||
|
||||
local function format(str, ...)
|
||||
local args = { ... }
|
||||
local function repl(escape, open, num, close)
|
||||
if escape == "" then
|
||||
local replacement = tostring(args[tonumber(num)])
|
||||
if open == "" then
|
||||
replacement = replacement..close
|
||||
end
|
||||
return replacement
|
||||
else
|
||||
return "@"..open..num..close
|
||||
end
|
||||
end
|
||||
return (str:gsub("(@?)@(%(?)(%d+)(%)?)", repl))
|
||||
end
|
||||
|
||||
local gettext, ngettext
|
||||
if minetest.get_modpath("intllib") then
|
||||
if intllib.make_gettext_pair then
|
||||
-- New method using gettext.
|
||||
gettext, ngettext = intllib.make_gettext_pair()
|
||||
else
|
||||
-- Old method using text files.
|
||||
gettext = intllib.Getter()
|
||||
end
|
||||
end
|
||||
|
||||
-- Fill in missing functions.
|
||||
|
||||
gettext = gettext or function(msgid, ...)
|
||||
return format(msgid, ...)
|
||||
end
|
||||
|
||||
ngettext = ngettext or function(msgid, msgid_plural, n, ...)
|
||||
return format(n==1 and msgid or msgid_plural, ...)
|
||||
end
|
||||
|
||||
return gettext, ngettext
|
Loading…
Reference in New Issue