tapes/init.lua
2019-01-06 06:24:10 +01:00

54 lines
1.5 KiB
Lua

minetest.register_tool("tapes:ducttape_black", {
description = "Black Duct Tape",
inventory_image = "tapes_ducttape_black.png"
})
--Spiketapes
minetest.register_node("tapes:spiketape_orange", {
description = "Orange Spiketape",
drawtype = "raillike",
paramtype = "light",
is_ground_content = false,
sunlight_propagates = true,
walkable = false,
tiles = {
"tapes_piece_spiketape_orange.png",
"tapes_piece_spiketape_orange_curve.png",
"tapes_piece_spiketape_orange_t.png",
"tapes_piece_spiketape_orange_cross.png"
},
inventory_image = "tapes_spiketape_orange.png",
wield_image = "tapes_spiketape_orange.png",
groups = {snappy = 3, oddly_breakable_by_hand = 1, connect_to_raillike = minetest.raillike_group("spiketape_orange")},
selection_box = {
type = "fixed",
fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2},
},
})
minetest.register_node("tapes:spiketape_black", {
description = "Black Spiketape",
drawtype = "raillike",
paramtype = "light",
is_ground_content = false,
sunlight_propagates = true,
walkable = false,
tiles = {
"tapes_piece_spiketape_black.png",
"tapes_piece_spiketape_black_curve.png",
"tapes_piece_spiketape_black_t.png",
"tapes_piece_spiketape_black_cross.png"
},
inventory_image = "tapes_spiketape_black.png",
wield_image = "tapes_spiketape_black.png",
groups = {snappy = 3, oddly_breakable_by_hand = 1, connect_to_raillike = minetest.raillike_group("spiketape_black")},
selection_box = {
type = "fixed",
fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2},
},
})