glowtest/glowtest/glowtest/crystal.lua

751 lines
24 KiB
Lua

--Crystal 1
minetest.register_node("glowtest:blue_crystal_1", {
description = "Blue Crystal",
drawtype = "nodebox",
tiles = {"glowtest_blue.png"},
paramtype = "light",
sunlight_propagates = true,
light_source = 8,
alpha = 200,
is_ground_content = false,
groups = {cracky=3,oddly_breakable_by_hand=3,crystal=1},
sounds = default.node_sound_glass_defaults(),
node_box = {
type = "fixed",
fixed = {
{-0.1875,-0.5,-0.125,0.1875,0.3125,0.1875},
{0.0625,-0.5,-0.25,0.3125,0,0},
{0.0625,-0.5,0.1875,0.25,0.1875,0.375},
{-0.3125,-0.5,-0.3125,-0.0625,0.0625,0},
{-0.375,-0.5,0.0625,-0.125,-0.0625,0.3125},
}
},
on_place = function(itemstack, placer, pointed_thing)
local stack = ItemStack("glowtest:blue_crystal_"..math.random(1,5))
local ret = minetest.item_place(stack, placer, pointed_thing)
return ItemStack("glowtest:blue_crystal_1 "..itemstack:get_count()-(1-ret:get_count()))
end,
})
minetest.register_node("glowtest:green_crystal_1", {
description = "Green Crystal",
drawtype = "nodebox",
tiles = {"glowtest_green.png"},
paramtype = "light",
sunlight_propagates = true,
light_source = 8,
alpha = 200,
is_ground_content = false,
groups = {cracky=3,oddly_breakable_by_hand=3,crystal=1},
sounds = default.node_sound_glass_defaults(),
node_box = {
type = "fixed",
fixed = {
{-0.1875,-0.5,-0.125,0.1875,0.3125,0.1875},
{0.0625,-0.5,-0.25,0.3125,0,0},
{0.0625,-0.5,0.1875,0.25,0.1875,0.375},
{-0.3125,-0.5,-0.3125,-0.0625,0.0625,0},
{-0.375,-0.5,0.0625,-0.125,-0.0625,0.3125},
}
},
on_place = function(itemstack, placer, pointed_thing)
local stack = ItemStack("glowtest:green_crystal_"..math.random(1,5))
local ret = minetest.item_place(stack, placer, pointed_thing)
return ItemStack("glowtest:green_crystal_1 "..itemstack:get_count()-(1-ret:get_count()))
end,
})
minetest.register_node("glowtest:red_crystal_1", {
description = "Red Crystal",
drawtype = "nodebox",
tiles = {"glowtest_red.png"},
paramtype = "light",
sunlight_propagates = true,
light_source = 8,
alpha = 200,
is_ground_content = false,
groups = {cracky=3,oddly_breakable_by_hand=3,crystal_cursed=1},
sounds = default.node_sound_glass_defaults(),
node_box = {
type = "fixed",
fixed = {
{-0.1875,-0.5,-0.125,0.1875,0.3125,0.1875},
{0.0625,-0.5,-0.25,0.3125,0,0},
{0.0625,-0.5,0.1875,0.25,0.1875,0.375},
{-0.3125,-0.5,-0.3125,-0.0625,0.0625,0},
{-0.375,-0.5,0.0625,-0.125,-0.0625,0.3125},
}
},
on_place = function(itemstack, placer, pointed_thing)
local stack = ItemStack("glowtest:red_crystal_"..math.random(1,5))
local ret = minetest.item_place(stack, placer, pointed_thing)
return ItemStack("glowtest:red_crystal_1 "..itemstack:get_count()-(1-ret:get_count()))
end,
})
minetest.register_node("glowtest:pink_crystal_1", {
description = "Pink Crystal",
drawtype = "nodebox",
tiles = {"glowtest_pink.png"},
paramtype = "light",
sunlight_propagates = true,
light_source = 8,
alpha = 200,
is_ground_content = false,
groups = {cracky=3,oddly_breakable_by_hand=3,crystal=1},
sounds = default.node_sound_glass_defaults(),
node_box = {
type = "fixed",
fixed = {
{-0.1875,-0.5,-0.125,0.1875,0.3125,0.1875},
{0.0625,-0.5,-0.25,0.3125,0,0},
{0.0625,-0.5,0.1875,0.25,0.1875,0.375},
{-0.3125,-0.5,-0.3125,-0.0625,0.0625,0},
{-0.375,-0.5,0.0625,-0.125,-0.0625,0.3125},
}
},
on_place = function(itemstack, placer, pointed_thing)
local stack = ItemStack("glowtest:pink_crystal_"..math.random(1,5))
local ret = minetest.item_place(stack, placer, pointed_thing)
return ItemStack("glowtest:pink_crystal_1 "..itemstack:get_count()-(1-ret:get_count()))
end,
})
minetest.register_node("glowtest:yellow_crystal_1", {
description = "Yellow Crystal",
drawtype = "nodebox",
tiles = {"glowtest_yellow.png"},
paramtype = "light",
sunlight_propagates = true,
light_source = 8,
alpha = 200,
is_ground_content = false,
groups = {cracky=3,oddly_breakable_by_hand=3,crystal=1},
sounds = default.node_sound_glass_defaults(),
node_box = {
type = "fixed",
fixed = {
{-0.1875,-0.5,-0.125,0.1875,0.3125,0.1875},
{0.0625,-0.5,-0.25,0.3125,0,0},
{0.0625,-0.5,0.1875,0.25,0.1875,0.375},
{-0.3125,-0.5,-0.3125,-0.0625,0.0625,0},
{-0.375,-0.5,0.0625,-0.125,-0.0625,0.3125},
}
},
on_place = function(itemstack, placer, pointed_thing)
local stack = ItemStack("glowtest:yellow_crystal_"..math.random(1,5))
local ret = minetest.item_place(stack, placer, pointed_thing)
return ItemStack("glowtest:yellow_crystal_1 "..itemstack:get_count()-(1-ret:get_count()))
end,
})
--Crystal 2
minetest.register_node("glowtest:blue_crystal_2", {
drawtype = "nodebox",
tiles = {"glowtest_blue.png"},
paramtype = "light",
sunlight_propagates = true,
light_source = 8,
alpha = 200,
is_ground_content = false,
groups = {cracky=3,oddly_breakable_by_hand=3,not_in_creative_inventory=1},
sounds = default.node_sound_glass_defaults(),
drop = "glowtest:blue_crystal_1",
node_box = {
type = "fixed",
fixed = {
{-0.1875,-0.5,-0.125,0.1875,0.5,0.1875},
{0.1875,-0.5,-0.25,0.5,0.1875,0},
{0.0625,-0.5,0.1875,0.375,0.375,0.375},
{-0.375,-0.5,-0.3125,-0.0625,0.25,0},
{-0.5,-0.5,-0.0625,-0.125,0,0.3125},
{0,-0.5,-0.5,0.3125,-0.0625,-0.1875},
}
}
})
minetest.register_node("glowtest:green_crystal_2", {
drawtype = "nodebox",
tiles = {"glowtest_green.png"},
paramtype = "light",
sunlight_propagates = true,
light_source = 8,
alpha = 200,
is_ground_content = false,
groups = {cracky=3,oddly_breakable_by_hand=3,not_in_creative_inventory=1},
sounds = default.node_sound_glass_defaults(),
drop = "glowtest:green_crystal_1",
node_box = {
type = "fixed",
fixed = {
{-0.1875,-0.5,-0.125,0.1875,0.5,0.1875},
{0.1875,-0.5,-0.25,0.5,0.1875,0},
{0.0625,-0.5,0.1875,0.375,0.375,0.375},
{-0.375,-0.5,-0.3125,-0.0625,0.25,0},
{-0.5,-0.5,-0.0625,-0.125,0,0.3125},
{0,-0.5,-0.5,0.3125,-0.0625,-0.1875},
}
}
})
minetest.register_node("glowtest:red_crystal_2", {
drawtype = "nodebox",
tiles = {"glowtest_red.png"},
paramtype = "light",
sunlight_propagates = true,
light_source = 8,
alpha = 200,
is_ground_content = false,
groups = {cracky=3,oddly_breakable_by_hand=3,not_in_creative_inventory=1},
sounds = default.node_sound_glass_defaults(),
drop = "glowtest:red_crystal_1",
node_box = {
type = "fixed",
fixed = {
{-0.1875,-0.5,-0.125,0.1875,0.5,0.1875},
{0.1875,-0.5,-0.25,0.5,0.1875,0},
{0.0625,-0.5,0.1875,0.375,0.375,0.375},
{-0.375,-0.5,-0.3125,-0.0625,0.25,0},
{-0.5,-0.5,-0.0625,-0.125,0,0.3125},
{0,-0.5,-0.5,0.3125,-0.0625,-0.1875},
}
}
})
minetest.register_node("glowtest:pink_crystal_2", {
drawtype = "nodebox",
tiles = {"glowtest_pink.png"},
paramtype = "light",
sunlight_propagates = true,
light_source = 8,
alpha = 200,
is_ground_content = false,
groups = {cracky=3,oddly_breakable_by_hand=3,not_in_creative_inventory=1},
sounds = default.node_sound_glass_defaults(),
drop = "glowtest:pink_crystal_1",
node_box = {
type = "fixed",
fixed = {
{-0.1875,-0.5,-0.125,0.1875,0.5,0.1875},
{0.1875,-0.5,-0.25,0.5,0.1875,0},
{0.0625,-0.5,0.1875,0.375,0.375,0.375},
{-0.375,-0.5,-0.3125,-0.0625,0.25,0},
{-0.5,-0.5,-0.0625,-0.125,0,0.3125},
{0,-0.5,-0.5,0.3125,-0.0625,-0.1875},
}
}
})
minetest.register_node("glowtest:yellow_crystal_2", {
drawtype = "nodebox",
tiles = {"glowtest_yellow.png"},
paramtype = "light",
sunlight_propagates = true,
light_source = 8,
alpha = 200,
is_ground_content = false,
groups = {cracky=3,oddly_breakable_by_hand=3,not_in_creative_inventory=1},
sounds = default.node_sound_glass_defaults(),
drop = "glowtest:yellow_crystal_1",
node_box = {
type = "fixed",
fixed = {
{-0.1875,-0.5,-0.125,0.1875,0.5,0.1875},
{0.1875,-0.5,-0.25,0.5,0.1875,0},
{0.0625,-0.5,0.1875,0.375,0.375,0.375},
{-0.375,-0.5,-0.3125,-0.0625,0.25,0},
{-0.5,-0.5,-0.0625,-0.125,0,0.3125},
{0,-0.5,-0.5,0.3125,-0.0625,-0.1875},
}
}
})
--Crystal 3
minetest.register_node("glowtest:blue_crystal_3", {
drawtype = "nodebox",
tiles = {"glowtest_blue.png"},
paramtype = "light",
sunlight_propagates = true,
light_source = 8,
alpha = 200,
is_ground_content = false,
groups = {cracky=3,oddly_breakable_by_hand=3,not_in_creative_inventory=1},
sounds = default.node_sound_glass_defaults(),
drop = "glowtest:blue_crystal_1",
node_box = {
type = "fixed",
fixed = {
{-0.125,-0.5,-0.25,0.25,0.5,0.1875},
{-0.125,-0.5,-0.4375,0.125,0.25,-0.1875},
{0,-0.5,-0.125,0.461539,0,0.3125},
{-0.5,-0.5,0,-0.0625,0.25,0.413465},
{-0.375,-0.5,-0.25,-0.0625,-0.0625,0.0625},
{0.1875,-0.5,-0.5,0.5,-0.25,-0.1875},
{-0.4375,-0.5,-0.5,-0.0625,-0.25,-0.125},
}
}
})
minetest.register_node("glowtest:green_crystal_3", {
drawtype = "nodebox",
tiles = {"glowtest_green.png"},
paramtype = "light",
sunlight_propagates = true,
light_source = 8,
alpha = 200,
is_ground_content = false,
groups = {cracky=3,oddly_breakable_by_hand=3,not_in_creative_inventory=1},
sounds = default.node_sound_glass_defaults(),
drop = "glowtest:green_crystal_1",
node_box = {
type = "fixed",
fixed = {
{-0.125,-0.5,-0.25,0.25,0.5,0.1875},
{-0.125,-0.5,-0.4375,0.125,0.25,-0.1875},
{0,-0.5,-0.125,0.461539,0,0.3125},
{-0.5,-0.5,0,-0.0625,0.25,0.413465},
{-0.375,-0.5,-0.25,-0.0625,-0.0625,0.0625},
{0.1875,-0.5,-0.5,0.5,-0.25,-0.1875},
{-0.4375,-0.5,-0.5,-0.0625,-0.25,-0.125},
}
}
})
minetest.register_node("glowtest:red_crystal_3", {
drawtype = "nodebox",
tiles = {"glowtest_red.png"},
paramtype = "light",
sunlight_propagates = true,
light_source = 8,
alpha = 200,
is_ground_content = false,
groups = {cracky=3,oddly_breakable_by_hand=3,not_in_creative_inventory=1},
sounds = default.node_sound_glass_defaults(),
drop = "glowtest:red_crystal_1",
node_box = {
type = "fixed",
fixed = {
{-0.125,-0.5,-0.25,0.25,0.5,0.1875},
{-0.125,-0.5,-0.4375,0.125,0.25,-0.1875},
{0,-0.5,-0.125,0.461539,0,0.3125},
{-0.5,-0.5,0,-0.0625,0.25,0.413465},
{-0.375,-0.5,-0.25,-0.0625,-0.0625,0.0625},
{0.1875,-0.5,-0.5,0.5,-0.25,-0.1875},
{-0.4375,-0.5,-0.5,-0.0625,-0.25,-0.125},
}
}
})
minetest.register_node("glowtest:pink_crystal_3", {
drawtype = "nodebox",
tiles = {"glowtest_pink.png"},
paramtype = "light",
sunlight_propagates = true,
light_source = 8,
alpha = 200,
is_ground_content = false,
groups = {cracky=3,oddly_breakable_by_hand=3,not_in_creative_inventory=1},
sounds = default.node_sound_glass_defaults(),
drop = "glowtest:pink_crystal_1",
node_box = {
type = "fixed",
fixed = {
{-0.125,-0.5,-0.25,0.25,0.5,0.1875},
{-0.125,-0.5,-0.4375,0.125,0.25,-0.1875},
{0,-0.5,-0.125,0.461539,0,0.3125},
{-0.5,-0.5,0,-0.0625,0.25,0.413465},
{-0.375,-0.5,-0.25,-0.0625,-0.0625,0.0625},
{0.1875,-0.5,-0.5,0.5,-0.25,-0.1875},
{-0.4375,-0.5,-0.5,-0.0625,-0.25,-0.125},
}
}
})
minetest.register_node("glowtest:yellow_crystal_3", {
drawtype = "nodebox",
tiles = {"glowtest_yellow.png"},
paramtype = "light",
sunlight_propagates = true,
light_source = 8,
alpha = 200,
is_ground_content = false,
groups = {cracky=3,oddly_breakable_by_hand=3,not_in_creative_inventory=1},
sounds = default.node_sound_glass_defaults(),
drop = "glowtest:yellow_crystal_1",
node_box = {
type = "fixed",
fixed = {
{-0.125,-0.5,-0.25,0.25,0.5,0.1875},
{-0.125,-0.5,-0.4375,0.125,0.25,-0.1875},
{0,-0.5,-0.125,0.461539,0,0.3125},
{-0.5,-0.5,0,-0.0625,0.25,0.413465},
{-0.375,-0.5,-0.25,-0.0625,-0.0625,0.0625},
{0.1875,-0.5,-0.5,0.5,-0.25,-0.1875},
{-0.4375,-0.5,-0.5,-0.0625,-0.25,-0.125},
}
}
})
--Crystal 4
minetest.register_node("glowtest:blue_crystal_4", {
drawtype = "nodebox",
tiles = {"glowtest_blue.png"},
paramtype = "light",
sunlight_propagates = true,
light_source = 8,
alpha = 200,
is_ground_content = false,
groups = {cracky=3,oddly_breakable_by_hand=3,not_in_creative_inventory=1},
sounds = default.node_sound_glass_defaults(),
drop = "glowtest:blue_crystal_1",
node_box = {
type = "fixed",
fixed = {
{0.125,-0.5,-0.25,0.5,-0.125,0.125},
{-0.125,-0.5,-0.0625,0.1875,0.375,0.3125},
{0.0625,-0.5,-0.5,0.375,-0.0625,-0.125},
{-0.3125,-0.5,-0.3125,0,-0.1875,0.0625},
{-0.0625,-0.5,-0.1875,0.375,0.25,0.125},
{-0.375,-0.5,0.125,0,0.25,0.5},
}
}
})
minetest.register_node("glowtest:green_crystal_4", {
drawtype = "nodebox",
tiles = {"glowtest_green.png"},
paramtype = "light",
sunlight_propagates = true,
light_source = 8,
alpha = 200,
is_ground_content = false,
groups = {cracky=3,oddly_breakable_by_hand=3,not_in_creative_inventory=1},
sounds = default.node_sound_glass_defaults(),
drop = "glowtest:green_crystal_1",
node_box = {
type = "fixed",
fixed = {
{0.125,-0.5,-0.25,0.5,-0.125,0.125},
{-0.125,-0.5,-0.0625,0.1875,0.375,0.3125},
{0.0625,-0.5,-0.5,0.375,-0.0625,-0.125},
{-0.3125,-0.5,-0.3125,0,-0.1875,0.0625},
{-0.0625,-0.5,-0.1875,0.375,0.25,0.125},
{-0.375,-0.5,0.125,0,0.25,0.5},
}
}
})
minetest.register_node("glowtest:red_crystal_4", {
drawtype = "nodebox",
tiles = {"glowtest_red.png"},
paramtype = "light",
sunlight_propagates = true,
light_source = 8,
alpha = 200,
is_ground_content = false,
groups = {cracky=3,oddly_breakable_by_hand=3,not_in_creative_inventory=1},
sounds = default.node_sound_glass_defaults(),
drop = "glowtest:red_crystal_1",
node_box = {
type = "fixed",
fixed = {
{0.125,-0.5,-0.25,0.5,-0.125,0.125},
{-0.125,-0.5,-0.0625,0.1875,0.375,0.3125},
{0.0625,-0.5,-0.5,0.375,-0.0625,-0.125},
{-0.3125,-0.5,-0.3125,0,-0.1875,0.0625},
{-0.0625,-0.5,-0.1875,0.375,0.25,0.125},
{-0.375,-0.5,0.125,0,0.25,0.5},
}
}
})
minetest.register_node("glowtest:pink_crystal_4", {
drawtype = "nodebox",
tiles = {"glowtest_pink.png"},
paramtype = "light",
sunlight_propagates = true,
light_source = 8,
alpha = 200,
is_ground_content = false,
groups = {cracky=3,oddly_breakable_by_hand=3,not_in_creative_inventory=1},
sounds = default.node_sound_glass_defaults(),
drop = "glowtest:pink_crystal_1",
node_box = {
type = "fixed",
fixed = {
{0.125,-0.5,-0.25,0.5,-0.125,0.125},
{-0.125,-0.5,-0.0625,0.1875,0.375,0.3125},
{0.0625,-0.5,-0.5,0.375,-0.0625,-0.125},
{-0.3125,-0.5,-0.3125,0,-0.1875,0.0625},
{-0.0625,-0.5,-0.1875,0.375,0.25,0.125},
{-0.375,-0.5,0.125,0,0.25,0.5},
}
}
})
minetest.register_node("glowtest:yellow_crystal_4", {
drawtype = "nodebox",
tiles = {"glowtest_yellow.png"},
paramtype = "light",
sunlight_propagates = true,
light_source = 8,
alpha = 200,
is_ground_content = false,
groups = {cracky=3,oddly_breakable_by_hand=3,not_in_creative_inventory=1},
sounds = default.node_sound_glass_defaults(),
drop = "glowtest:yellow_crystal_1",
node_box = {
type = "fixed",
fixed = {
{0.125,-0.5,-0.25,0.5,-0.125,0.125},
{-0.125,-0.5,-0.0625,0.1875,0.375,0.3125},
{0.0625,-0.5,-0.5,0.375,-0.0625,-0.125},
{-0.3125,-0.5,-0.3125,0,-0.1875,0.0625},
{-0.0625,-0.5,-0.1875,0.375,0.25,0.125},
{-0.375,-0.5,0.125,0,0.25,0.5},
}
}
})
--Crystal 5
minetest.register_node("glowtest:blue_crystal_5", {
drawtype = "nodebox",
tiles = {"glowtest_blue.png"},
paramtype = "light",
sunlight_propagates = true,
light_source = 8,
alpha = 200,
is_ground_content = false,
groups = {cracky=3,oddly_breakable_by_hand=3,not_in_creative_inventory=1},
sounds = default.node_sound_glass_defaults(),
drop = "glowtest:blue_crystal_1",
node_box = {
type = "fixed",
fixed = {
{-0.3125,-0.5,-0.1875,0,0.5,0.125},
{-0.1875,-0.5,-0.3125,0.1875,0.125,0},
{-0.25,-0.5,-0.5,0.0625,0.3125,-0.1875},
{0.0625,-0.5,-0.125,0.375,-0.125,0.1875},
{0.0625,-0.5,-0.375,0.3125,-0.25,-0.1875},
{-0.1875,-0.5,0,0.125,0.0625,0.5},
}
}
})
minetest.register_node("glowtest:green_crystal_5", {
drawtype = "nodebox",
tiles = {"glowtest_green.png"},
paramtype = "light",
sunlight_propagates = true,
light_source = 8,
alpha = 200,
is_ground_content = false,
groups = {cracky=3,oddly_breakable_by_hand=3,not_in_creative_inventory=1},
sounds = default.node_sound_glass_defaults(),
drop = "glowtest:green_crystal_1",
node_box = {
type = "fixed",
fixed = {
{-0.3125,-0.5,-0.1875,0,0.5,0.125},
{-0.1875,-0.5,-0.3125,0.1875,0.125,0},
{-0.25,-0.5,-0.5,0.0625,0.3125,-0.1875},
{0.0625,-0.5,-0.125,0.375,-0.125,0.1875},
{0.0625,-0.5,-0.375,0.3125,-0.25,-0.1875},
{-0.1875,-0.5,0,0.125,0.0625,0.5},
}
}
})
minetest.register_node("glowtest:red_crystal_5", {
drawtype = "nodebox",
tiles = {"glowtest_red.png"},
paramtype = "light",
sunlight_propagates = true,
light_source = 8,
alpha = 200,
is_ground_content = false,
groups = {cracky=3,oddly_breakable_by_hand=3,not_in_creative_inventory=1},
sounds = default.node_sound_glass_defaults(),
drop = "glowtest:red_crystal_1",
node_box = {
type = "fixed",
fixed = {
{-0.3125,-0.5,-0.1875,0,0.5,0.125},
{-0.1875,-0.5,-0.3125,0.1875,0.125,0},
{-0.25,-0.5,-0.5,0.0625,0.3125,-0.1875},
{0.0625,-0.5,-0.125,0.375,-0.125,0.1875},
{0.0625,-0.5,-0.375,0.3125,-0.25,-0.1875},
{-0.1875,-0.5,0,0.125,0.0625,0.5},
}
}
})
minetest.register_node("glowtest:pink_crystal_5", {
drawtype = "nodebox",
tiles = {"glowtest_pink.png"},
paramtype = "light",
sunlight_propagates = true,
light_source = 8,
alpha = 200,
is_ground_content = false,
groups = {cracky=3,oddly_breakable_by_hand=3,not_in_creative_inventory=1},
sounds = default.node_sound_glass_defaults(),
drop = "glowtest:pink_crystal_1",
node_box = {
type = "fixed",
fixed = {
{-0.3125,-0.5,-0.1875,0,0.5,0.125},
{-0.1875,-0.5,-0.3125,0.1875,0.125,0},
{-0.25,-0.5,-0.5,0.0625,0.3125,-0.1875},
{0.0625,-0.5,-0.125,0.375,-0.125,0.1875},
{0.0625,-0.5,-0.375,0.3125,-0.25,-0.1875},
{-0.1875,-0.5,0,0.125,0.0625,0.5},
}
}
})
minetest.register_node("glowtest:yellow_crystal_5", {
drawtype = "nodebox",
tiles = {"glowtest_yellow.png"},
paramtype = "light",
sunlight_propagates = true,
light_source = 8,
alpha = 200,
is_ground_content = false,
groups = {cracky=3,oddly_breakable_by_hand=3,not_in_creative_inventory=1},
sounds = default.node_sound_glass_defaults(),
drop = "glowtest:yellow_crystal_1",
node_box = {
type = "fixed",
fixed = {
{-0.3125,-0.5,-0.1875,0,0.5,0.125},
{-0.1875,-0.5,-0.3125,0.1875,0.125,0},
{-0.25,-0.5,-0.5,0.0625,0.3125,-0.1875},
{0.0625,-0.5,-0.125,0.375,-0.125,0.1875},
{0.0625,-0.5,-0.375,0.3125,-0.25,-0.1875},
{-0.1875,-0.5,0,0.125,0.0625,0.5},
}
}
})
--Crystal 6
minetest.register_node("glowtest:blue_crystal_6", {
drawtype = "nodebox",
tiles = {"glowtest_blue.png"},
paramtype = "light",
sunlight_propagates = true,
light_source = 8,
alpha = 200,
is_ground_content = false,
groups = {cracky=3,oddly_breakable_by_hand=3,not_in_creative_inventory=1},
sounds = default.node_sound_glass_defaults(),
drop = "glowtest:blue_crystal_1",
node_box = {
type = "fixed",
fixed = {
{-0.125,-0.5,-0.1875,0.1875,0.1875,0.125},
{0,-0.5,-0.375,0.3125,-0.0625,-0.0625},
{-0.25,-0.5,-0.0625,0.0625,0,0.25},
{0.0625,-0.5,0,0.461539,-0.25,0.375},
{-0.3125,-0.5,-0.4375,0.0625,-0.1875,-0.0625},
}
}
})
minetest.register_node("glowtest:green_crystal_6", {
drawtype = "nodebox",
tiles = {"glowtest_green.png"},
paramtype = "light",
sunlight_propagates = true,
light_source = 8,
alpha = 200,
is_ground_content = false,
groups = {cracky=3,oddly_breakable_by_hand=3,not_in_creative_inventory=1},
sounds = default.node_sound_glass_defaults(),
drop = "glowtest:green_crystal_1",
node_box = {
type = "fixed",
fixed = {
{-0.125,-0.5,-0.1875,0.1875,0.1875,0.125},
{0,-0.5,-0.375,0.3125,-0.0625,-0.0625},
{-0.25,-0.5,-0.0625,0.0625,0,0.25},
{0.0625,-0.5,0,0.461539,-0.25,0.375},
{-0.3125,-0.5,-0.4375,0.0625,-0.1875,-0.0625},
}
}
})
minetest.register_node("glowtest:red_crystal_6", {
drawtype = "nodebox",
tiles = {"glowtest_red.png"},
paramtype = "light",
sunlight_propagates = true,
light_source = 8,
alpha = 200,
is_ground_content = false,
groups = {cracky=3,oddly_breakable_by_hand=3,not_in_creative_inventory=1},
sounds = default.node_sound_glass_defaults(),
drop = "glowtest:red_crystal_1",
node_box = {
type = "fixed",
fixed = {
{-0.125,-0.5,-0.1875,0.1875,0.1875,0.125},
{0,-0.5,-0.375,0.3125,-0.0625,-0.0625},
{-0.25,-0.5,-0.0625,0.0625,0,0.25},
{0.0625,-0.5,0,0.461539,-0.25,0.375},
{-0.3125,-0.5,-0.4375,0.0625,-0.1875,-0.0625},
}
}
})
minetest.register_node("glowtest:pink_crystal_6", {
drawtype = "nodebox",
tiles = {"glowtest_pink.png"},
paramtype = "light",
sunlight_propagates = true,
light_source = 8,
alpha = 200,
is_ground_content = false,
groups = {cracky=3,oddly_breakable_by_hand=3,not_in_creative_inventory=1},
sounds = default.node_sound_glass_defaults(),
drop = "glowtest:pink_crystal_1",
node_box = {
type = "fixed",
fixed = {
{-0.125,-0.5,-0.1875,0.1875,0.1875,0.125},
{0,-0.5,-0.375,0.3125,-0.0625,-0.0625},
{-0.25,-0.5,-0.0625,0.0625,0,0.25},
{0.0625,-0.5,0,0.461539,-0.25,0.375},
{-0.3125,-0.5,-0.4375,0.0625,-0.1875,-0.0625},
}
}
})
minetest.register_node("glowtest:yellow_crystal_6", {
drawtype = "nodebox",
tiles = {"glowtest_yellow.png"},
paramtype = "light",
sunlight_propagates = true,
light_source = 8,
alpha = 200,
is_ground_content = false,
groups = {cracky=3,oddly_breakable_by_hand=3,not_in_creative_inventory=1},
sounds = default.node_sound_glass_defaults(),
drop = "glowtest:yellow_crystal_1",
node_box = {
type = "fixed",
fixed = {
{-0.125,-0.5,-0.1875,0.1875,0.1875,0.125},
{0,-0.5,-0.375,0.3125,-0.0625,-0.0625},
{-0.25,-0.5,-0.0625,0.0625,0,0.25},
{0.0625,-0.5,0,0.461539,-0.25,0.375},
{-0.3125,-0.5,-0.4375,0.0625,-0.1875,-0.0625},
}
}
})