Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Oil Lantern
- minetest.register_node("xanadu:oil_lantern_on", {
- description = "Oil Lantern",
- tiles = {"oil_lantern_on.png"},
- drawtype = "plantlike",
- paramtype = "light",
- sunlight_propagates = true,
- light_source = 12,
- groups = {snappy = 3, not_in_creative_inventory = 1},
- drop = "xanadu:oil_lantern_off",
- selection_box = {
- type = "fixed",
- fixed = { -0.15, -0.5, -0.15, 0.15, 0.1, 0.15 },
- },
- on_punch = function(pos, node, puncher)
- node.name = "xanadu:oil_lantern_off"
- minetest.swap_node(pos, node)
- end,
- })
- minetest.register_node("xanadu:oil_lantern_off", {
- description = "Oil Lantern",
- tiles = {"oil_lantern_off.png"},
- drawtype = "plantlike",
- paramtype = "light",
- sunlight_propagates = true,
- groups = {snappy = 3},
- selection_box = {
- type = "fixed",
- fixed = { -0.15, -0.5, -0.15, 0.15, 0.1, 0.15 },
- },
- on_punch = function(pos, node, puncher)
- node.name = "xanadu:oil_lantern_on"
- minetest.swap_node(pos, node)
- end,
- })
- minetest.register_craft({
- output = "xanadu:oil_lantern_off",
- recipe = {
- {"default:glass"},
- {"farming:string"},
- {"default:steel_ingot"},
- }
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement