Initial commit (version 0.1-test)
26
mods/vessels/README.TXT
Normal file
@@ -0,0 +1,26 @@
|
||||
Minetest Game mod: vessels
|
||||
==========================
|
||||
See license.txt for license information.
|
||||
|
||||
Authors of source code
|
||||
----------------------
|
||||
Originally by Vanessa Ezekowitz (LGPL v2.1+)
|
||||
Modified by Perttu Ahola <celeron55@gmail.com> (LGPL v2.1+)
|
||||
Modified by MCL Software <temp1@cubesoftware.xyz> (LGPL v2.1+)
|
||||
Various Minetest developers and contributors (LGPL v2.1+)
|
||||
|
||||
Authors of media (textures)
|
||||
---------------------------
|
||||
All not listed below, Vanessa Ezekowitz (CC BY-SA 3.0)
|
||||
|
||||
The following textures were modified by Thomas-S (CC BY-SA 3.0):
|
||||
vessels_drinking_glass.png
|
||||
vessels_drinking_glass_inv.png
|
||||
vessels_glass_bottle.png
|
||||
vessels_steel_bottle.png
|
||||
|
||||
The following texture was created by Wuzzy (CC BY-SA 3.0):
|
||||
vessels_shelf_slot.png (based on vessels_glass_bottle.png)
|
||||
|
||||
The following texture was created by MCL (CC BY-SA 4.0 International):
|
||||
vessels_shelf.png
|
||||
118
mods/vessels/init.lua
Normal file
@@ -0,0 +1,118 @@
|
||||
-- vessels/init.lua
|
||||
|
||||
-- Minetest 0.4 mod: vessels
|
||||
-- See README.TXT for licensing and other information.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
local function update_vessels_shelf(pos)
|
||||
local meta = minetest.get_meta(pos)
|
||||
|
||||
|
||||
-- Inventory slots overlay
|
||||
|
||||
|
||||
|
||||
|
||||
end
|
||||
|
||||
local vessels_shelf_def = {
|
||||
description = "Vessels Shelf",
|
||||
tiles = {"main_planks_oak.png", "main_planks_oak.png", "main_planks_oak.png",
|
||||
"main_planks_oak.png", "vessels_shelf.png", "main_planks_oak.png"},
|
||||
paramtype2 = "facedir",
|
||||
is_ground_content = false,
|
||||
groups = {choppy = 3, oddly_breakable_by_hand = 2, flammable = 3},
|
||||
--sounds = default.node_sound_wood_defaults(),
|
||||
|
||||
on_construct = function(pos)
|
||||
local meta = minetest.get_meta(pos)
|
||||
update_vessels_shelf(pos)
|
||||
local inv = meta:get_inventory()
|
||||
inv:set_size("vessels", 8 * 2)
|
||||
end,
|
||||
can_dig = function(pos,player)
|
||||
local inv = minetest.get_meta(pos):get_inventory()
|
||||
return inv:is_empty("vessels")
|
||||
end,
|
||||
allow_metadata_inventory_put = function(pos, listname, index, stack, player)
|
||||
if minetest.get_item_group(stack:get_name(), "vessel") ~= 0 then
|
||||
return stack:get_count()
|
||||
end
|
||||
return 0
|
||||
end,
|
||||
on_blast = function(pos)
|
||||
local drops = {}
|
||||
--default.get_inventory_drops(pos, "vessels", drops)
|
||||
drops[#drops + 1] = "vessels:shelf"
|
||||
minetest.remove_node(pos)
|
||||
return drops
|
||||
end,
|
||||
}
|
||||
--default.set_inventory_action_loggers(vessels_shelf_def, "vessels shelf")
|
||||
minetest.register_node("vessels:shelf", vessels_shelf_def)
|
||||
|
||||
|
||||
minetest.register_node("vessels:glass_bottle", {
|
||||
description = "Empty Glass Bottle",
|
||||
drawtype = "plantlike",
|
||||
tiles = {"vessels_glass_bottle.png"},
|
||||
inventory_image = "vessels_glass_bottle.png",
|
||||
wield_image = "vessels_glass_bottle.png",
|
||||
paramtype = "light",
|
||||
is_ground_content = false,
|
||||
walkable = false,
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-0.25, -0.5, -0.25, 0.25, 0.3, 0.25}
|
||||
},
|
||||
groups = {vessel = 1, dig_immediate = 3, attached_node = 1},
|
||||
--sounds = default.node_sound_glass_defaults(),
|
||||
})
|
||||
|
||||
|
||||
minetest.register_node("vessels:drinking_glass", {
|
||||
description = "Empty Drinking Glass",
|
||||
drawtype = "plantlike",
|
||||
tiles = {"vessels_drinking_glass.png"},
|
||||
inventory_image = "vessels_drinking_glass_inv.png",
|
||||
wield_image = "vessels_drinking_glass.png",
|
||||
paramtype = "light",
|
||||
is_ground_content = false,
|
||||
walkable = false,
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-0.25, -0.5, -0.25, 0.25, 0.3, 0.25}
|
||||
},
|
||||
groups = {vessel = 1, dig_immediate = 3, attached_node = 1},
|
||||
--sounds = default.node_sound_glass_defaults(),
|
||||
})
|
||||
|
||||
|
||||
minetest.register_node("vessels:steel_bottle", {
|
||||
description = "Empty Heavy Steel Bottle",
|
||||
drawtype = "plantlike",
|
||||
tiles = {"vessels_steel_bottle.png"},
|
||||
inventory_image = "vessels_steel_bottle.png",
|
||||
wield_image = "vessels_steel_bottle.png",
|
||||
paramtype = "light",
|
||||
is_ground_content = false,
|
||||
walkable = false,
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-0.25, -0.5, -0.25, 0.25, 0.3, 0.25}
|
||||
},
|
||||
groups = {vessel = 1, dig_immediate = 3, attached_node = 1},
|
||||
--sounds = default.node_sound_defaults(),
|
||||
})
|
||||
|
||||
|
||||
|
||||
-- Glass and steel recycling
|
||||
|
||||
minetest.register_craftitem("vessels:glass_fragments", {
|
||||
description = "Glass Fragments",
|
||||
inventory_image = "vessels_glass_fragments.png",
|
||||
})
|
||||
55
mods/vessels/license.txt
Normal file
@@ -0,0 +1,55 @@
|
||||
License of source code
|
||||
----------------------
|
||||
|
||||
GNU Lesser General Public License, version 2.1
|
||||
Copyright (C) 2012-2016 Vanessa Ezekowitz
|
||||
Copyright (C) 2012-2016 celeron55, Perttu Ahola <celeron55@gmail.com>
|
||||
Copyright (C) 2012-2016 Various Minetest developers and contributors
|
||||
Copyright (C) 2022 MCL <temp1@cubesoftware.xyz>
|
||||
|
||||
This program is free software; you can redistribute it and/or modify it under the terms
|
||||
of the GNU Lesser General Public License as published by the Free Software Foundation;
|
||||
either version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
||||
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
See the GNU Lesser General Public License for more details:
|
||||
https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html
|
||||
|
||||
|
||||
Licenses of media (textures)
|
||||
----------------------------
|
||||
|
||||
Attribution-ShareAlike 4.0 International (CC BY-SA 4.0 Int'l)
|
||||
|
||||
Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0)
|
||||
Copyright (C) 2012-2016 Vanessa Ezekowitz
|
||||
Copyright (C) 2016 Thomas-S
|
||||
|
||||
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.
|
||||
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.
|
||||
|
||||
For more details:
|
||||
http://creativecommons.org/licenses/by-sa/3.0/
|
||||
3
mods/vessels/mod.conf
Normal file
@@ -0,0 +1,3 @@
|
||||
name = vessels
|
||||
description = Vessels mod from MTG modified for Adsurv
|
||||
depends = main
|
||||
BIN
mods/vessels/textures/vessels_drinking_glass.png
Normal file
|
After Width: | Height: | Size: 194 B |
BIN
mods/vessels/textures/vessels_drinking_glass_inv.png
Normal file
|
After Width: | Height: | Size: 156 B |
BIN
mods/vessels/textures/vessels_glass_bottle.png
Normal file
|
After Width: | Height: | Size: 176 B |
BIN
mods/vessels/textures/vessels_glass_fragments.png
Normal file
|
After Width: | Height: | Size: 494 B |
BIN
mods/vessels/textures/vessels_shelf.png
Normal file
|
After Width: | Height: | Size: 517 B |
BIN
mods/vessels/textures/vessels_shelf_slot.png
Normal file
|
After Width: | Height: | Size: 130 B |
BIN
mods/vessels/textures/vessels_steel_bottle.png
Normal file
|
After Width: | Height: | Size: 196 B |