new stuff

master
crazyginger72 2014-07-20 23:41:51 -04:00
parent 17597b1f4c
commit ea50907630
13 changed files with 300 additions and 0 deletions

View File

@ -31,6 +31,7 @@ for _, row in ipairs(coloured_glass.dyes) do
minetest.register_node("default:coloured_glass"..name, {
description = desc.." coloured glass",
drawtype = "glasslike",
sunlight_propagates = true,
tiles = {"default_glass_"..name..".png"},
use_texture_alpha = true,
groups = {cracky=3,oddly_breakable_by_hand=3},

View File

@ -0,0 +1,62 @@
-- This file supplies disco balls
minetest.register_node("defalut:disco_ball", {
description = "Disco Ball",
drawtype = "nodebox",
tiles = {
{name="disco_ball_animated.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=3.0}}
},
paramtype = "light",
paramtype2 = "facedir",
light_source = 13,
buildable_to = true,
sounds = default.node_sound_glass_defaults(),
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2},
drawtype = "nodebox",
selection_box = {
type = "fixed",
fixed = {
{ -0.353, -0.353, -0.353, 0.353, 0.353, 0.353 }, -- Box
{ -0.495, -0.064, -0.064, 0.495, 0.064, 0.064 }, -- Circle +-x
{ -0.483, -0.128, -0.128, 0.483, 0.128, 0.128 },
{ -0.462, -0.191, -0.191, 0.462, 0.191, 0.191 },
{ -0.433, -0.249, -0.249, 0.433, 0.249, 0.249 },
{ -0.397, -0.303, -0.303, 0.397, 0.303, 0.303 },
{ -0.305, -0.396, -0.305, 0.305, 0.396, 0.305 }, -- Circle +-y
{ -0.250, -0.432, -0.250, 0.250, 0.432, 0.250 },
{ -0.191, -0.461, -0.191, 0.191, 0.461, 0.191 },
{ -0.130, -0.482, -0.130, 0.130, 0.482, 0.130 },
{ -0.066, -0.495, -0.066, 0.066, 0.495, 0.066 },
{ -0.064, -0.064, -0.495, 0.064, 0.064, 0.495 }, -- Circle +-z
{ -0.128, -0.128, -0.483, 0.128, 0.128, 0.483 },
{ -0.191, -0.191, -0.462, 0.191, 0.191, 0.462 },
{ -0.249, -0.249, -0.433, 0.249, 0.249, 0.433 },
{ -0.303, -0.303, -0.397, 0.303, 0.303, 0.397 },
}
},
node_box = {
type = "fixed",
fixed = {
{ -0.353, -0.353, -0.353, 0.353, 0.353, 0.353 }, -- Box
{ -0.495, -0.064, -0.064, 0.495, 0.064, 0.064 }, -- Circle +-x
{ -0.483, -0.128, -0.128, 0.483, 0.128, 0.128 },
{ -0.462, -0.191, -0.191, 0.462, 0.191, 0.191 },
{ -0.433, -0.249, -0.249, 0.433, 0.249, 0.249 },
{ -0.397, -0.303, -0.303, 0.397, 0.303, 0.303 },
{ -0.305, -0.396, -0.305, 0.305, 0.396, 0.305 }, -- Circle +-y
{ -0.250, -0.432, -0.250, 0.250, 0.432, 0.250 },
{ -0.191, -0.461, -0.191, 0.191, 0.461, 0.191 },
{ -0.130, -0.482, -0.130, 0.130, 0.482, 0.130 },
{ -0.066, -0.495, -0.066, 0.066, 0.495, 0.066 },
{ -0.064, -0.064, -0.495, 0.064, 0.064, 0.495 }, -- Circle +-z
{ -0.128, -0.128, -0.483, 0.128, 0.128, 0.483 },
{ -0.191, -0.191, -0.462, 0.191, 0.191, 0.462 },
{ -0.249, -0.249, -0.433, 0.249, 0.249, 0.433 },
{ -0.303, -0.303, -0.397, 0.303, 0.303, 0.397 },
}
},
})

View File

@ -0,0 +1,29 @@
-- This file supplies dance floor
minetest.register_node("default:dance_floor", {
description = "Dance floor",
drawtype = "nodebox",
tiles = {
{name="dance_floor_animated.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=3.0}}
},
paramtype = "light",
light_source = 11,
walkable = false,
buildable_to = true,
sounds = default.node_sound_glass_defaults(),
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2},
drawtype = "nodebox",
node_box = {
type = "fixed",
fixed = {
{-0.5, -0.49, -0.5, 0.5, -0.5, 0.5},
},
},
selection_box = {
type = "fixed",
fixed = {
{-0.5, -0.49, -0.5, 0.5, -0.5, 0.5},
},
},
})

156
mods/default/glasses.lua Normal file
View File

@ -0,0 +1,156 @@
-- This file supplies glasses
minetest.register_node("default:shotglass", {
description = "Shotglass",
drawtype = "nodebox",
tiles = {
'glass_top.png', -- top
'glass_top.png', -- bottom
'glass.png', -- side
'glass.png', -- side
'glass.png', -- back
'glass.png', -- front
},
paramtype = "light",
paramtype2 = "facedir",
buildable_to = true,
walkable = false,
use_texture_alpha = true,
sounds = default.node_sound_glass_defaults(),
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2},
drawtype = "nodebox",
node_box = {
type = "fixed",
fixed = {
{-0.09, -0.35, -0.09, 0.09, -0.3, 0.09}, -- upper
{-0.08, -0.48, -0.08, 0.08, -0.35, 0.08}, -- body
{-0.07, -0.5, -0.07, 0.07, -0.48, 0.07}, -- bottom
},
},
selection_box = {
type = "fixed",
fixed = {
{-0.09, -0.35, -0.09, 0.09, -0.3, 0.09}, -- upper
{-0.08, -0.48, -0.08, 0.08, -0.35, 0.08}, -- body
{-0.07, -0.5, -0.07, 0.07, -0.48, 0.07}, -- bottom
},
},
})
minetest.register_node("default:highball", {
description = "Highball glass",
drawtype = "nodebox",
tiles = {
'glass_top.png', -- top
'glass_top.png', -- bottom
'glass.png', -- side
'glass.png', -- side
'glass.png', -- back
'glass.png', -- front
},
paramtype = "light",
paramtype2 = "facedir",
buildable_to = true,
walkable = false,
use_texture_alpha = true,
sounds = default.node_sound_glass_defaults(),
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2},
drawtype = "nodebox",
node_box = {
type = "fixed",
fixed = {
{-0.12, -0.0, -0.12, 0.12, -0.4, 0.12}, -- upper
{-0.11, -0.45, -0.11, 0.11, -0.4, 0.11}, -- body
{-0.1, -0.5, -0.1, 0.1, -0.45, 0.1}, -- bottom
},
},
selection_box = {
type = "fixed",
fixed = {
{-0.12, -0.0, -0.12, 0.12, -0.4, 0.12}, -- upper
{-0.11, -0.45, -0.11, 0.11, -0.4, 0.11}, -- body
{-0.1, -0.5, -0.1, 0.1, -0.45, 0.1}, -- bottom
},
},
})
minetest.register_node("default:pint_glass", {
description = "Pint glass",
drawtype = "nodebox",
tiles = {
'glass_top.png', -- top
'glass_top.png', -- bottom
'glass.png', -- side
'glass.png', -- side
'glass.png', -- back
'glass.png', -- front
},
paramtype = "light",
paramtype2 = "facedir",
buildable_to = true,
walkable = false,
use_texture_alpha = true,
sounds = default.node_sound_glass_defaults(),
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2},
drawtype = "nodebox",
node_box = {
type = "fixed",
fixed = {
{-0.13, -0.2, -0.13, 0.13, -0.15, 0.13}, -- lip
{-0.11, -0.2, -0.11, 0.11, -0.35, 0.11}, -- upper
{-0.09, -0.45, -0.09, 0.09, -0.35, 0.09}, -- body
{-0.1, -0.5, -0.1, 0.1, -0.45, 0.1}, -- bottom
},
},
selection_box = {
type = "fixed",
fixed = {
{-0.13, -0.2, -0.13, 0.13, -0.15, 0.13}, -- lip
{-0.11, -0.2, -0.11, 0.11, -0.35, 0.11}, -- upper
{-0.09, -0.45, -0.09, 0.09, -0.35, 0.09}, -- body
{-0.1, -0.5, -0.1, 0.1, -0.45, 0.1}, -- bottom
},
},
})
minetest.register_node("default:martini", {
description = "Martini glass",
drawtype = "nodebox",
tiles = {
'glass_top.png', -- top
'glass_top.png', -- bottom
'glass.png', -- side
'glass.png', -- side
'glass.png', -- back
'glass.png', -- front
},
paramtype = "light",
paramtype2 = "facedir",
buildable_to = true,
walkable = false,
use_texture_alpha = true,
sounds = default.node_sound_glass_defaults(),
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2},
drawtype = "nodebox",
node_box = {
type = "fixed",
fixed = {
{-0.15, -0.2, -0.15, 0.15, -0.25, 0.15}, -- upper
{-0.13, -0.3, -0.13, 0.15, -0.25, 0.13}, --
{-0.11, -0.35, -0.11, 0.11, -0.3, 0.11}, -- body
{-0.01, -0.48, -0.01, 0.01, -0.35, 0.01}, --
{-0.09, -0.5, -0.09, 0.09, -0.48, 0.09}, -- bottom
},
},
selection_box = {
type = "fixed",
fixed = {
{-0.15, -0.2, -0.15, 0.15, -0.25, 0.15}, -- upper
{-0.13, -0.3, -0.13, 0.15, -0.25, 0.13}, --
{-0.11, -0.35, -0.11, 0.11, -0.3, 0.11}, -- body
{-0.01, -0.48, -0.01, 0.01, -0.35, 0.01}, --
{-0.09, -0.5, -0.09, 0.09, -0.48, 0.09}, -- bottom
},
},
})

View File

@ -56,6 +56,14 @@ dofile(minetest.get_modpath("default").."/plastic.lua")
--dofile(minetest.get_modpath("default").."/compass.lua")
dofile(minetest.get_modpath("default").."/markers.lua")
dofile(minetest.get_modpath("default").."/coloured_glass.lua")
dofile(minetest.get_modpath("default").."/disco_ball.lua")
dofile(minetest.get_modpath("default").."/disco_floor.lua")
dofile(minetest.get_modpath("default").."/glasses.lua")
dofile(minetest.get_modpath("default").."/rum.lua")
----------------------------------------------------------

44
mods/default/rum.lua Normal file
View File

@ -0,0 +1,44 @@
-- This file supplies rum
minetest.register_node("default:rum", {
description = "Rum",
drawtype = "nodebox",
tiles = {
'red_wine_top.png', -- top
'red_wine_top.png', -- bottom
'rum.png', -- side
'rum.png', -- side
'rum.png', -- back
'rum_label.png', -- front
},
paramtype = "light",
paramtype2 = "facedir",
buildable_to = true,
walkable = false,
use_texture_alpha = true,
sounds = default.node_sound_glass_defaults(),
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2},
drawtype = "nodebox",
node_box = {
type = "fixed",
fixed = {
{-0.07, 0.3, -0.07, 0.07, 0.33, 0.07}, -- lip
{-0.065, 0, -0.065, 0.065, 0.35, 0.065}, -- stem
{-0.13, -0.08, -0.13, 0.13, 0, 0.13}, -- taper
{-0.18, -0.45, -0.18, 0.18, -0.08, 0.18}, -- body
{-0.15, -0.5, -0.15, 0.15, -0.45, 0.15}, -- bottom
},
},
selection_box = {
type = "fixed",
fixed = {
{-0.07, 0.3, -0.07, 0.07, 0.33, 0.07}, -- lip
{-0.065, 0, -0.065, 0.065, 0.35, 0.065}, -- stem
{-0.13, -0.08, -0.13, 0.13, 0, 0.13}, -- taper
{-0.18, -0.45, -0.18, 0.18, -0.08, 0.18}, -- body
{-0.15, -0.5, -0.15, 0.15, -0.45, 0.15}, -- bottom
},
},
},
})

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 168 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 350 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 337 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1009 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB