Signed-off-by: dafoxia <dafoxia@mail.austria.com>

master
dafoxia 2015-08-20 23:45:10 +02:00
commit ade7ceef9c
54 changed files with 979 additions and 0 deletions

0
LICENSE.md Normal file
View File

11
README.md Normal file
View File

@ -0,0 +1,11 @@
Glass Blocks
===========
Glass Blocks for Minetest <http://minetest.net>, a free/libre infinite
world block sandbox game.
To install, just clone this repository into your "mods" directory.
Glass Blocks code is heavy based on More Block licensed under the zlib license. Glass Blocks itselves are also under the zlib license.
Textures are by Dafoxia and are licensed under CC BY-SA 3.0 Unported.
More Blocks **Forum topic:** <https://forum.minetest.net/viewtopic.php?f=11&t=509>

35
aliases.lua Normal file
View File

@ -0,0 +1,35 @@
--[[
More Glass: alias definitions
--]]
-- More Glass aliases:
minetest.register_alias("RedLightGlass", "moreglass:RedLightGlass")
minetest.register_alias("GreenLightGlass", "moreglass:GreenLightGlass")
minetest.register_alias("BlueLightGlass", "moreglass:BlueLightGlass")
minetest.register_alias("YellowLightGlass", "moreglass:YellowLightGlass")
minetest.register_alias("OrangeLightGlass", "moreglass:OrangeLightGlass")
minetest.register_alias("CyanLightGlass", "moreglass:CyanLightGlass")
minetest.register_alias("ViolettLightGlass", "moreglass:ViolettLightGlass")
minetest.register_alias("RedGlass", "moreglass:RedGlass")
minetest.register_alias("GreenGlass", "moreglass:RedGlass")
minetest.register_alias("BlueGlass", "moreglass:RedGlass")
minetest.register_alias("YellowGlass", "moreglass:RedGlass")
minetest.register_alias("OrangeGlass", "moreglass:RedGlass")
minetest.register_alias("CyanGlass", "moreglass:RedGlass")
minetest.register_alias("ViolettGlass", "moreglass:RedGlass")
minetest.register_alias("RedLightGlassSand", "moreglass:RedLightGlassSand")
minetest.register_alias("GreenLightGlassSand", "moreglass:GreenLightGlassSand")
minetest.register_alias("BlueLightGlassSand", "moreglass:BlueLightGlassSand")
minetest.register_alias("YellowLightGlassSand", "moreglass:YellowLightGlassSand")
minetest.register_alias("OrangeLightGlassSand", "moreglass:OrangeLightGlassSand")
minetest.register_alias("CyanLightGlassSand", "moreglass:CyanLightGlassSand")
minetest.register_alias("ViolettLightGlassSand", "moreglass:ViolettLightGlassSand")
minetest.register_alias("RedGlassSand", "moreglass:RedGlassSand")
minetest.register_alias("GreenGlassSand", "moreglass:RedGlassSand")
minetest.register_alias("BlueGlassSand", "moreglass:RedGlassSand")
minetest.register_alias("YellowGlassSand", "moreglass:RedGlassSand")
minetest.register_alias("OrangeGlassSand", "moreglass:RedGlassSand")
minetest.register_alias("CyanGlassSand", "moreglass:RedGlassSand")
minetest.register_alias("ViolettGlassSand", "moreglass:RedGlassSand")

25
config.lua Normal file
View File

@ -0,0 +1,25 @@
--[[
More Glass: configuration handling
--]]
moreglass.config = {}
local function getbool_default(setting, default)
local value = minetest.setting_getbool(setting)
if value == nil then
value = default
end
return value
end
local function setting(settingtype, name, default)
if settingtype == "bool" then
moreglass.config[name] =
getbool_default("moreglass." .. name, default)
else
moreglass.config[name] =
minetest.setting_get("moreglass." .. name) or default
end
end

86
crafting.lua Normal file
View File

@ -0,0 +1,86 @@
--[[
More Glass: crafting recipes
--]]
minetest.register_craft({
output = "moreglass:RedLightGlassSand",
recipe = {{"default:sand", "default:gold_lump", "default:coal_lump"},}
})
minetest.register_craft({
output = "moreglass:GreenLightGlassSand",
recipe = {{"default:sand", "default:iron_lump", "default:coal_lump"},}
})
minetest.register_craft({
output = "moreglass:BlueLightGlassSand",
recipe = {{"default:sand", "default:copper_lump", "default:coal_lump"},}
})
minetest.register_craft({
output = "moreglass:YellowLightGlassSand",
recipe = {{"default:sand", "default:silver_lump", "default:coal_lump"},}
})
minetest.register_craft({
output = "moreglass:OrangeLightGlassSand",
recipe = {{"default:sand", "default:gold_ingot", "default:coal_lump"},}
})
minetest.register_craft({
output = "moreglass:CyanLightGlassSand",
recipe = {{"default:sand", "default:iron_ingot", "default:coal_lump"},}
})
minetest.register_craft({
output = "moreglass:ViolettLightGlassSand",
recipe = {{"default:sand", "default:mese_crystal_fragment", "default:coal_lump"},}
})
minetest.register_craft({
output = "moreglass:RedGlassSand",
recipe = {{"default:sand", "default:gold_lump"},}
})
minetest.register_craft({
output = "moreglass:GreenGlassSand",
recipe = {{"default:sand", "default:iron_lump"},}
})
minetest.register_craft({
output = "moreglass:BlueGlassSand",
recipe = {{"default:sand", "default:copper_lump"},}
})
minetest.register_craft({
output = "moreglass:YellowGlassSand",
recipe = {{"default:sand", "default:silver_lump"},}
})
minetest.register_craft({
output = "moreglass:OrangeGlassSand",
recipe = {{"default:sand", "default:gold_ingot"},}
})
minetest.register_craft({
output = "moreglass:CyanGlassSand",
recipe = {{"default:sand", "default:iron_ingot"},}
})
minetest.register_craft({
output = "moreglass:ViolettGlassSand",
recipe = {{"default:sand", "default:mese_crystal_fragment"},}
})
minetest.register_craft({
type = "cooking", output = "moreglass:RedLightGlass", recipe = "moreglass:RedGlassSand",
})
minetest.register_craft({
type = "cooking", output = "moreglass:GreenLightGlass", recipe = "moreglass:GreenGlassSand",
})
minetest.register_craft({
type = "cooking", output = "moreglass:BlueLightGlass", recipe = "moreglass:BlueGlassSand",
})
minetest.register_craft({
type = "cooking", output = "moreglass:YellowLightGlass", recipe = "moreglass:YellowGlassSand",
})
minetest.register_craft({
type = "cooking", output = "moreglass:OrangeLightGlass", recipe = "moreglass:OrangeGlassSand",
})
minetest.register_craft({
type = "cooking", output = "moreglass:CyanLightGlass", recipe = "moreglass:CyanGlassSand",
})
minetest.register_craft({
type = "cooking", output = "moreglass:ViolettGlass", recipe = "moreglass:ViolettGlassSand",
})

2
depends.txt Normal file
View File

@ -0,0 +1,2 @@
default
intllib?

27
init.lua Normal file
View File

@ -0,0 +1,27 @@
--[[
=====================================================================
** More Glass **
=====================================================================
--]]
moreglass = {}
local S
if minetest.get_modpath("intllib") then
S = intllib.Getter()
else
S = function(s) return s end
end
moreglass.intllib = S
local modpath = minetest.get_modpath("moreglass")
dofile(modpath .. "/config.lua")
dofile(modpath .. "/nodes.lua")
dofile(modpath .. "/crafting.lua")
dofile(modpath .. "/aliases.lua")
if minetest.setting_getbool("log_mods") then
minetest.log("action", S("[moreglass] loaded."))
end

34
locale/de.txt Normal file
View File

@ -0,0 +1,34 @@
# Translation by Xanthin
###init.lua###
[glassblocks] loaded. = [glassblocks] geladen.
###nodes.lua###
red Light Glass = Leuchtendes rotes Glas
green Light Glass = Leuchtendes grünes Glas
blue Light Glass = Leuchtendes blaues Glas
yellow Light Glass = Leuchtendes gelbes Glas
orange Light Glass = Leuchtendes oranges Glas
cyan Light Glass = Leuchtendes Cyan Glas
violett Light Glass = Leuchtendes violettes Glas
red Glass = rotes Glas
green Glass = grünes Glas
blue Glass = blaues Glas
yellow Glass = gelbes Glas
orange Glass = oranges Glas
cyan Glass = cyan Glas
violett Glass = violettes Glas
###./stairsplus/*###
%s Stairs = %streppe
%s Slab = %sstufe
%s Panel = %spaneel
%s Microblock = %smikroblock
%s Pane = %sscheibe
%s Fence = %szaun
###ownership.lua###
someone = jemand
Sorry, %s owns that spot. = Tut mir leid, %s gehoert diese Stelle.

View File

@ -0,0 +1,26 @@
# Blender v2.72 (sub 0) OBJ File: ''
# www.blender.org
mtllib moreblocks_slope.mtl
o Cube_Cube.002
v 0.500000 0.500000 0.500000
v -0.500000 0.500000 0.500000
v -0.500000 -0.500000 0.500000
v 0.500000 -0.500000 0.500000
v -0.500000 -0.500000 -0.500000
v 0.500000 -0.500000 -0.500000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vn 0.000000 -0.000000 1.000000
vn 0.000000 -1.000000 -0.000000
vn -1.000000 0.000000 0.000000
vn 1.000000 0.000000 0.000000
vn 0.000000 0.707100 -0.707100
usemtl None
s off
f 1/1/1 2/2/1 3/3/1 4/4/1
f 4/3/2 3/4/2 5/1/2 6/2/2
f 2/1/3 5/3/3 3/4/3
f 1/2/4 4/3/4 6/4/4
f 2/1/5 1/2/5 6/3/5 5/4/5

View File

@ -0,0 +1,33 @@
# Blender v2.72 (sub 0) OBJ File: ''
# www.blender.org
mtllib moreblocks_slope_cut.mtl
o moreblocks_slope_cut
v -0.500000 -0.500000 0.500000
v 0.500000 -0.500000 0.500000
v 0.500000 0.500000 0.500000
v -0.500000 -0.000000 0.500000
v 0.500000 -0.500000 -0.500000
v 0.500000 0.000000 -0.500000
v -0.500000 -0.500000 -0.500000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 0.500000
vt 1.000000 0.500000
vt 0.000000 1.000000
vt 0.500000 0.000000
vt 0.500000 2.000000
vn 0.000000 -0.000000 1.000000
vn 1.000000 0.000000 0.000000
vn 0.000000 -1.000000 -0.000000
vn -0.408200 0.816500 -0.408200
vn 0.000000 0.000000 -1.000000
vn -1.000000 0.000000 0.000000
usemtl None
s off
f 1/1/1 2/2/1 3/3/1 4/4/1
f 2/1/2 5/2/2 6/5/2 3/6/2
f 2/3/3 1/6/3 7/1/3 5/2/3
f 7/7/4 4/3/4 3/8/4 6/6/4
f 5/1/5 7/2/5 6/4/5
f 7/1/6 1/2/6 4/5/6

View File

@ -0,0 +1,28 @@
# Blender v2.72 (sub 0) OBJ File: ''
# www.blender.org
mtllib moreblocks_slope_half.mtl
o Cube_Cube.002
v 0.500000 -0.000000 0.500000
v -0.500000 -0.000000 0.500000
v -0.500000 -0.500000 0.500000
v 0.500000 -0.500000 0.500000
v -0.500000 -0.500000 -0.500000
v 0.500000 -0.500000 -0.500000
vt 1.000000 0.500000
vt 0.000000 0.500000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vn 0.000000 -0.000000 1.000000
vn 0.000000 -1.000000 -0.000000
vn -1.000000 0.000000 0.000000
vn 1.000000 0.000000 0.000000
vn 0.000000 0.894400 -0.447200
usemtl None
s off
f 1/1/1 2/2/1 3/3/1 4/4/1
f 4/3/2 3/4/2 5/5/2 6/6/2
f 2/1/3 5/3/3 3/4/3
f 1/2/4 4/3/4 6/4/4
f 2/5/5 1/6/5 6/3/5 5/4/5

View File

@ -0,0 +1,32 @@
# Blender v2.72 (sub 0) OBJ File: ''
# www.blender.org
mtllib moreblocks_slope_half_raised.mtl
o Cube.001
v -0.500000 0.500000 0.500000
v -0.500000 0.000000 -0.500000
v -0.500000 -0.500000 -0.500000
v -0.500000 -0.500000 0.500000
v 0.500000 0.000000 -0.500000
v 0.500000 -0.500000 -0.500000
v 0.500000 0.500000 0.500000
v 0.500000 -0.500000 0.500000
vt 1.000000 1.000000
vt 0.000000 0.500000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 0.500000
vt 0.000000 1.000000
vn -1.000000 0.000000 0.000000
vn 0.000000 0.000000 -1.000000
vn 1.000000 0.000000 0.000000
vn 0.000000 -0.000000 1.000000
vn 0.000000 -1.000000 -0.000000
vn 0.000000 0.894400 -0.447200
usemtl None.001
s off
f 1/1/1 2/2/1 3/3/1 4/4/1
f 2/5/2 5/2/2 6/3/2 3/4/2
f 5/5/3 7/6/3 8/3/3 6/4/3
f 7/1/4 1/6/4 4/3/4 8/4/4
f 4/4/5 3/1/5 6/6/5 8/3/5
f 2/4/6 1/1/6 7/6/6 5/3/6

View File

@ -0,0 +1,35 @@
# Blender v2.72 (sub 0) OBJ File: ''
# www.blender.org
mtllib moreblocks_slope_inner.mtl
o Cube_Cube.000
v 0.500000 0.500000 -0.500000
v 0.500000 0.500000 0.500000
v 0.500000 -0.500000 0.500000
v 0.500000 -0.500000 -0.500000
v -0.500000 0.500000 0.500000
v -0.500000 -0.500000 -0.500000
v -0.500000 -0.500000 0.500000
v -0.500000 -0.500000 -0.500000
v 0.500000 -0.500000 0.500000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vn 1.000000 0.000000 0.000000
vn -1.000000 0.000000 0.000000
vn 0.000000 0.707100 -0.707100
vn 0.000000 0.000000 -1.000000
vn 0.000000 -1.000000 -0.000000
vn 0.000000 -0.000000 1.000000
vn -0.707100 0.707100 0.000000
usemtl None
s off
f 1/1/1 2/2/1 3/3/1 4/4/1
f 5/1/2 6/3/2 7/4/2
f 5/1/3 2/2/3 6/4/3
f 1/2/4 4/3/4 8/4/4
f 8/1/5 4/2/5 3/3/5 7/4/5
f 7/3/6 3/4/6 2/1/6 5/2/6
f 2/1/7 1/2/7 8/3/7
l 7 9
l 2 9

View File

@ -0,0 +1,32 @@
# Blender v2.72 (sub 0) OBJ File: ''
# www.blender.org
mtllib moreblocks_slope_inner_cut.mtl
o moreblocks_slope_inner_cut
v 0.500000 -0.500000 0.500000
v 0.500000 -0.500000 -0.500000
v 0.500000 0.500000 -0.500000
v 0.500000 0.500000 0.500000
v -0.500000 -0.500000 0.500000
v -0.500000 0.500000 0.500000
v -0.500000 -0.500000 -0.500000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.500000 0.000000
vn 1.000000 0.000000 0.000000
vn 0.000000 -0.000000 1.000000
vn 0.000000 -1.000000 -0.000000
vn 0.000000 1.000000 0.000000
vn -1.000000 0.000000 0.000000
vn 0.000000 0.000000 -1.000000
vn -0.577400 0.577400 -0.577400
usemtl None
s off
f 1/1/1 2/2/1 3/3/1 4/4/1
f 5/1/2 1/2/2 4/3/2 6/4/2
f 2/1/3 1/2/3 5/3/3 7/4/3
f 6/1/4 4/2/4 3/3/4
f 7/1/5 5/2/5 6/3/5
f 2/1/6 7/2/6 3/4/6
f 7/5/7 6/3/7 3/4/7

View File

@ -0,0 +1,34 @@
# Blender v2.72 (sub 0) OBJ File: ''
# www.blender.org
mtllib moreblocks_slope_inner_cut_half.mtl
o moreblocks_slope_inner_cut_half
v 0.500000 -0.500000 0.500000
v 0.500000 -0.500000 -0.500000
v 0.500000 0.000000 -0.500000
v 0.500000 -0.000000 0.500000
v -0.500000 -0.500000 0.500000
v -0.500000 -0.000000 0.500000
v -0.500000 -0.500000 -0.500000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 0.500000
vt 0.000000 0.500000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.500000 0.000000
vn 1.000000 0.000000 0.000000
vn 0.000000 -0.000000 1.000000
vn 0.000000 -1.000000 -0.000000
vn 0.000000 1.000000 0.000000
vn -1.000000 0.000000 0.000000
vn 0.000000 0.000000 -1.000000
vn -0.408200 0.816500 -0.408200
usemtl None
s off
f 1/1/1 2/2/1 3/3/1 4/4/1
f 5/1/2 1/2/2 4/3/2 6/4/2
f 2/1/3 1/2/3 5/5/3 7/6/3
f 6/1/4 4/2/4 3/5/4
f 7/1/5 5/2/5 6/3/5
f 2/1/6 7/2/6 3/4/6
f 7/7/7 6/5/7 3/6/7

View File

@ -0,0 +1,35 @@
# Blender v2.72 (sub 0) OBJ File: ''
# www.blender.org
mtllib moreblocks_slope_inner_cut_half_raised.mtl
o moreblocks_slope_inner_cut_half_raised
v 0.500000 -0.500000 0.500000
v 0.500000 -0.500000 -0.500000
v 0.500000 0.500000 -0.500000
v 0.500000 0.500000 0.500000
v -0.500000 -0.500000 0.500000
v -0.500000 0.500000 0.500000
v -0.500000 -0.500000 -0.500000
v -0.500000 0.000000 -0.500000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.500000
vt 1.000000 0.500000
vt 0.500000 0.000000
vn 1.000000 0.000000 0.000000
vn 0.000000 -0.000000 1.000000
vn 0.000000 -1.000000 -0.000000
vn 0.000000 1.000000 0.000000
vn -1.000000 0.000000 0.000000
vn -0.000000 0.000000 -1.000000
vn -0.408200 0.816500 -0.408200
usemtl None
s off
f 1/1/1 2/2/1 3/3/1 4/4/1
f 5/1/2 1/2/2 4/3/2 6/4/2
f 2/1/3 1/2/3 5/3/3 7/4/3
f 6/1/4 4/2/4 3/3/4
f 7/1/5 5/2/5 6/3/5 8/5/5
f 2/1/6 7/2/6 8/6/6 3/4/6
f 8/7/7 6/3/7 3/4/7

View File

@ -0,0 +1,35 @@
# Blender v2.72 (sub 0) OBJ File: ''
# www.blender.org
mtllib moreblocks_slope_inner_half.mtl
o Cube_Cube.001
v 0.500000 0.000000 -0.500000
v 0.500000 -0.000000 0.500000
v 0.500000 -0.500000 0.500000
v 0.500000 -0.500000 -0.500000
v -0.500000 -0.000000 0.500000
v -0.500000 -0.500000 -0.500000
v -0.500000 -0.500000 0.500000
v -0.500000 -0.500000 -0.500000
v 0.500000 -0.500000 0.500000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vn 1.000000 0.000000 0.000000
vn -1.000000 0.000000 0.000000
vn 0.000000 0.894400 -0.447200
vn 0.000000 0.000000 -1.000000
vn 0.000000 -1.000000 -0.000000
vn 0.000000 -0.000000 1.000000
vn -0.447200 0.894400 0.000000
usemtl None.002
s off
f 1/1/1 2/2/1 3/3/1 4/4/1
f 5/1/2 6/3/2 7/4/2
f 5/1/3 2/2/3 6/4/3
f 1/2/4 4/3/4 8/4/4
f 8/1/5 4/2/5 3/3/5 7/4/5
f 7/3/6 3/4/6 2/1/6 5/2/6
f 2/1/7 1/2/7 8/3/7
l 7 9
l 2 9

View File

@ -0,0 +1,38 @@
# Blender v2.72 (sub 0) OBJ File: ''
# www.blender.org
mtllib moreblocks_slope_inner_half_raised.mtl
o Cube_Cube.003
v 0.500000 0.500000 -0.500000
v 0.500000 0.500000 0.500000
v 0.500000 -0.500000 0.500000
v 0.500000 -0.500000 -0.500000
v -0.500000 0.500000 0.500000
v -0.500000 0.000000 -0.500000
v -0.500000 -0.500000 0.500000
v -0.500000 0.000000 -0.500000
v -0.500000 -0.500000 -0.500000
v 0.500000 -0.500000 0.500000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 0.500000
vt 0.000000 0.500000
vn 1.000000 0.000000 0.000000
vn 0.000000 0.894400 -0.447200
vn 0.000000 -0.000000 1.000000
vn -0.447200 0.894400 0.000000
vn 0.000000 -1.000000 -0.000000
vn 0.000000 0.000000 -1.000000
vn -1.000000 0.000000 0.000000
usemtl None.003
s off
f 1/1/1 2/2/1 3/3/1 4/4/1
f 5/1/2 2/2/2 6/4/2
f 7/3/3 3/4/3 2/1/3 5/2/3
f 2/2/4 1/3/4 8/4/4
f 7/1/5 9/2/5 4/3/5 3/4/5
f 6/5/6 1/2/6 4/3/6 9/4/6
f 7/4/7 5/1/7 6/6/7 9/3/7
l 2 10
l 7 10

View File

@ -0,0 +1,25 @@
# Blender v2.72 (sub 0) OBJ File: ''
# www.blender.org
mtllib moreblocks_slope_outer.mtl
o Cube_Cube.004
v 0.500000 -0.500000 0.500000
v -0.500000 -0.500000 0.500000
v -0.500000 -0.500000 -0.500000
v 0.500000 -0.500000 -0.500000
v 0.500000 0.500000 0.500000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vn 0.000000 -1.000000 -0.000000
vn 1.000000 0.000000 0.000000
vn 0.000000 -0.000000 1.000000
vn -0.707100 0.707100 0.000000
vn 0.000000 0.707100 -0.707100
usemtl None
s off
f 1/1/1 2/2/1 3/3/1 4/4/1
f 5/2/2 1/3/2 4/4/2
f 2/3/3 1/4/3 5/1/3
f 5/1/4 3/3/4 2/4/4
f 5/2/5 4/3/5 3/4/5

View File

@ -0,0 +1,23 @@
# Blender v2.72 (sub 0) OBJ File: ''
# www.blender.org
mtllib moreblocks_slope_outer_cut.mtl
o Cube.002
v 0.500000 0.500000 0.500000
v -0.500000 -0.500000 0.500000
v 0.500000 -0.500000 0.500000
v 0.500000 -0.500000 -0.500000
vt 1.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 0.000000 1.000000
vt 0.500000 1.000000
vn 0.000000 -0.000000 1.000000
vn 1.000000 0.000000 0.000000
vn 0.000000 -1.000000 0.000000
vn -0.577400 0.577400 -0.577400
usemtl None.004
s off
f 1/1/1 2/2/1 3/3/1
f 4/3/2 1/4/2 3/2/2
f 3/2/3 2/3/3 4/4/3
f 2/3/4 1/5/4 4/2/4

View File

@ -0,0 +1,24 @@
# Blender v2.72 (sub 0) OBJ File: ''
# www.blender.org
mtllib moreblocks_slope_outer_cut_half.mtl
o Cube.003
v 0.500000 -0.000000 0.500000
v -0.500000 -0.500000 0.500000
v 0.500000 -0.500000 0.500000
v 0.500000 -0.500000 -0.500000
vt 1.000000 0.500000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 0.000000 0.500000
vt 0.000000 1.000000
vt 0.500000 1.000000
vn 0.000000 -0.000000 1.000000
vn 1.000000 0.000000 0.000000
vn 0.000000 -1.000000 0.000000
vn -0.408200 0.816500 -0.408200
usemtl None.005
s off
f 1/1/1 2/2/1 3/3/1
f 4/3/2 1/4/2 3/2/2
f 3/2/3 2/3/3 4/5/3
f 2/3/4 1/6/4 4/2/4

View File

@ -0,0 +1,28 @@
# Blender v2.72 (sub 0) OBJ File: ''
# www.blender.org
mtllib moreblocks_slope_outer_cut_half_raised.mtl
o Cube_Cube.005
v -0.500000 -0.000000 0.500000
v -0.500000 -0.500000 0.500000
v 0.500000 -0.500000 0.500000
v 0.500000 0.500000 0.500000
v 0.500000 -0.500000 -0.500000
v 0.500000 0.000000 -0.500000
vt 0.000000 0.500000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 1.000000 0.500000
vn 0.000000 -0.000000 1.000000
vn 1.000000 0.000000 0.000000
vn 0.000000 -1.000000 0.000000
vn -0.408200 0.816500 -0.408200
vn -0.707100 0.000000 -0.707100
usemtl None.006
s off
f 1/1/1 2/2/1 3/3/1 4/4/1
f 4/5/2 3/2/2 5/3/2 6/6/2
f 2/5/3 5/3/3 3/4/3
f 1/2/4 4/3/4 6/4/4
f 2/3/5 1/6/5 6/1/5 5/2/5

View File

@ -0,0 +1,27 @@
# Blender v2.72 (sub 0) OBJ File: ''
# www.blender.org
mtllib moreblocks_slope_outer_half.mtl
o Cube.004
v -0.500000 -0.500000 0.500000
v -0.500000 -0.500000 -0.500000
v 0.500000 -0.500000 -0.500000
v 0.500000 -0.500000 0.500000
v 0.500000 -0.000000 0.500000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 0.500000
vt 0.000000 0.500000
vn 0.000000 -1.000000 -0.000000
vn 0.000000 -0.000000 1.000000
vn 1.000000 0.000000 0.000000
vn 0.000000 0.894400 -0.447200
vn -0.447200 0.894400 0.000000
usemtl None.007
s off
f 1/1/1 2/2/1 3/3/1 4/4/1
f 5/5/2 1/3/2 4/4/2
f 3/4/3 5/6/3 4/3/3
f 2/4/4 5/2/4 3/3/4
f 1/4/5 5/1/5 2/3/5

View File

@ -0,0 +1,34 @@
# Blender v2.72 (sub 0) OBJ File: ''
# www.blender.org
mtllib moreblocks_slope_outer_half_raised.mtl
o Cube_Cube.006
v -0.500000 -0.000000 0.500000
v -0.500000 -0.500000 0.500000
v 0.500000 -0.500000 0.500000
v 0.500000 0.500000 0.500000
v 0.500000 -0.500000 -0.500000
v 0.500000 0.000000 -0.500000
v -0.500000 0.000000 -0.500000
v -0.500000 -0.500000 -0.500000
vt 0.000000 0.500000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 1.000000 0.500000
vn 0.000000 -0.000000 1.000000
vn 1.000000 0.000000 0.000000
vn 0.000000 0.894400 -0.447200
vn -1.000000 0.000000 0.000000
vn -0.447200 0.894400 0.000000
vn 0.000000 0.000000 -1.000000
vn 0.000000 -1.000000 -0.000000
usemtl None.008
s off
f 1/1/1 2/2/1 3/3/1 4/4/1
f 4/5/2 3/2/2 5/3/2 6/6/2
f 7/3/3 4/5/3 6/2/3
f 1/6/4 7/1/4 8/2/4 2/3/4
f 7/3/5 1/4/5 4/5/5
f 6/1/6 5/2/6 8/3/6 7/6/6
f 5/5/7 3/2/7 2/3/7 8/4/7

229
nodes.lua Normal file
View File

@ -0,0 +1,229 @@
--[[
More Glass: node definitions
Copyright (c) 2011-2015 Calinou and contributors.
Licensed under the zlib license. See LICENSE.md for more information.
--]]
local S = moreglass.intllib
local sound_glass = default.node_sound_glass_defaults()
local sound_sand = default.node_sound_sand_defaults()
local function tile_tiles(name)
local tex = "moreglass_" ..name.. ".png"
return {tex, tex, tex, tex, tex.. "^[transformR90", tex.. "^[transformR90"}
end
local nodes = {
["RedLightGlassSand"] = {
description = S("RedLightGlassSand"),
groups = {cracky = 1},
sounds = sound_stone,
},
["GreenLightGlassSand"] = {
description = S("GreenLightGlassSand"),
groups = {cracky = 1},
sounds = sound_stone,
},
["BlueLightGlassSand"] = {
description = S("BlueLightGlassSand"),
groups = {cracky = 1},
sounds = sound_stone,
},
["YellowLightGlassSand"] = {
description = S("YellowLightGlassSand"),
groups = {cracky = 1},
sounds = sound_stone,
},
["OrangeLightGlassSand"] = {
description = S("OrangeLightGlassSand"),
groups = {cracky = 1},
sounds = sound_stone,
},
["CyanLightGlassSand"] = {
description = S("CyanLightGlassSand"),
groups = {cracky = 1},
sounds = sound_stone,
},
["ViolettLightGlassSand"] = {
description = S("ViolettLightGlassSand"),
groups = {cracky = 1},
sounds = sound_stone,
},
["RedGlassSand"] = {
description = S("RedGlassSand"),
groups = {cracky = 1},
sounds = sound_stone,
},
["GreenGlassSand"] = {
description = S("GreenGlassSand"),
groups = {cracky = 1},
sounds = sound_stone,
},
["BlueGlassSand"] = {
description = S("BlueGlassSand"),
groups = {cracky = 1},
sounds = sound_stone,
},
["YellowGlassSand"] = {
description = S("YellowGlassSand"),
groups = {cracky = 1},
sounds = sound_stone,
},
["OrangeGlassSand"] = {
description = S("OrangeGlassSand"),
groups = {cracky = 1},
sounds = sound_stone,
},
["CyanGlassSand"] = {
description = S("CyanGlassSand"),
groups = {cracky = 1},
sounds = sound_stone,
},
["ViolettGlassSand"] = {
description = S("ViolettGlassSand"),
groups = {cracky = 1},
sounds = sound_stone,
},
["RedLightGlass"] = {
description = S("RedLightGlass"),
paramtype = "light",
alpha = 160,
light_source = default.LIGHT_MAX - 1,
sunlight_propagates = true,
drawtype = "glasslike",
groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
sounds = sound_glass,
},
["BlueLightGlass"] = {
description = S("BlueLightGlass"),
paramtype = "light",
alpha = 160,
light_source = default.LIGHT_MAX - 1,
sunlight_propagates = true,
drawtype = "glasslike",
groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
sounds = sound_glass,
},
["GreenLightGlass"] = {
description = S("GreenLightGlass"),
paramtype = "light",
alpha = 160,
light_source = default.LIGHT_MAX - 1,
sunlight_propagates = true,
drawtype = "glasslike",
groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
sounds = sound_glass,
},
["YellowLightGlass"] = {
description = S("YellowLightGlass"),
paramtype = "light",
alpha = 160,
light_source = default.LIGHT_MAX - 1,
sunlight_propagates = true,
drawtype = "glasslike",
groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
sounds = sound_glass,
},
["CyanLightGlass"] = {
description = S("CyanLightGlass"),
paramtype = "light",
alpha = 160,
light_source = default.LIGHT_MAX - 1,
sunlight_propagates = true,
drawtype = "glasslike",
groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
sounds = sound_glass,
},
["OrangeLightGlass"] = {
description = S("OrangeLightGlass"),
paramtype = "light",
alpha = 160,
light_source = default.LIGHT_MAX - 1,
sunlight_propagates = true,
drawtype = "glasslike",
groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
sounds = sound_glass,
},
["ViolettLightGlass"] = {
description = S("ViolettLightGlass"),
paramtype = "light",
alpha = 160,
light_source = default.LIGHT_MAX - 1,
sunlight_propagates = true,
drawtype = "glasslike",
groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
sounds = sound_glass,
},
["RedGlass"] = {
description = S("RedGlass"),
paramtype = "light",
alpha = 160,
sunlight_propagates = true,
drawtype = "glasslike",
groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
sounds = sound_glass,
},
["BlueGlass"] = {
description = S("BlueGlass"),
paramtype = "light",
alpha = 160,
sunlight_propagates = true,
drawtype = "glasslike",
groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
sounds = sound_glass,
},
["GreenGlass"] = {
description = S("GreenGlass"),
paramtype = "light",
alpha = 160,
drawtype = "glasslike",
sunlight_propagates = true,
groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
sounds = sound_glass,
},
["YellowGlass"] = {
description = S("YellowGlass"),
paramtype = "light",
alpha = 160,
sunlight_propagates = true,
drawtype = "glasslike",
groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
sounds = sound_glass,
},
["CyanGlass"] = {
description = S("CyanGlass"),
paramtype = "light",
alpha = 160,
sunlight_propagates = true,
drawtype = "glasslike",
groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
sounds = sound_glass,
},
["OrangeGlass"] = {
description = S("OrangeGlass"),
paramtype = "light",
alpha = 160,
sunlight_propagates = true,
drawtype = "glasslike",
groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
sounds = sound_glass,
},
["ViolettGlass"] = {
description = S("ViolettGlass"),
paramtype = "light",
alpha = 160,
sunlight_propagates = true,
drawtype = "glasslike",
groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
sounds = sound_glass,
},
}
for name, def in pairs(nodes) do
def.tiles = def.tiles or {"moreglass_" ..name.. ".png"}
minetest.register_node("moreglass:" ..name, def)
minetest.register_alias(name, "moreglass:" ..name)
end

41
ownership.lua Normal file
View File

@ -0,0 +1,41 @@
--[[
More Glass: ownership handling
Code ist copied from More Block which is from Calinou
Copyright (c) 2011-2015 Calinou and contributors.
Licensed under the zlib license. See LICENSE.md for more information.
--]]
local S = moreglass.gettext
function moreglass.node_is_owned(pos, placer)
local ownername = false
if type(IsPlayerNodeOwner) == "function" then -- node_ownership mod
if HasOwner(pos, placer) then -- returns true if the node is owned
if not IsPlayerNodeOwner(pos, placer:get_player_name()) then
if type(getLastOwner) == "function" then -- ...is an old version
ownername = getLastOwner(pos)
elseif type(GetNodeOwnerName) == "function" then -- ...is a recent version
ownername = GetNodeOwnerName(pos)
else
ownername = S("someone")
end
end
end
elseif type(isprotect)=="function" then -- glomie's protection mod
if not isprotect(5, pos, placer) then
ownername = S("someone")
end
elseif type(protector)=="table" and type(protector.can_dig)=="function" then -- Zeg9's protection mod
if not protector.can_dig(5, pos, placer) then
ownername = S("someone")
end
end
if ownername ~= false then
minetest.chat_send_player( placer:get_player_name(), S("Sorry, %s owns that spot."):format(ownername) )
return true
else
return false
end
end

Binary file not shown.

After

Width:  |  Height:  |  Size: 356 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 356 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 356 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 356 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 355 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 355 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 355 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 355 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 355 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 355 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 355 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 355 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 356 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 356 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB