84 lines
2.5 KiB
Lua
84 lines
2.5 KiB
Lua
minetest.register_tool("tapes:ducttape_black", {
|
|
description = "Black Duct Tape",
|
|
inventory_image = "tapes_ducttape_black.png",
|
|
})
|
|
|
|
minetest.register_tool("tapes:surgicaltape", {
|
|
description = "Surgical Tape",
|
|
inventory_image = "tapes_surgicaltape.png",
|
|
on_use = function(itemstack, player, pointed_thing)
|
|
player:set_hp(player:get_hp() + 10)
|
|
itemstack:add_wear(20000)
|
|
return itemstack
|
|
end
|
|
})
|
|
|
|
--Spiketapes
|
|
minetest.register_node("tapes:piece_spiketape_orange", {
|
|
description = "Orange Spiketape Piece",
|
|
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_piece_spiketape_orange.png",
|
|
wield_image = "tapes_piece_spiketape_orange.png",
|
|
groups = {snappy = 3, oddly_breakable_by_hand = 1, not_in_creative_inventory = 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:piece_spiketape_black", {
|
|
description = "Black Spiketape Piece",
|
|
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_piece_spiketape_black.png",
|
|
wield_image = "tapes_piece_spiketape_black.png",
|
|
groups = {snappy = 3, oddly_breakable_by_hand = 1, not_in_creative_inventory = 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},
|
|
},
|
|
|
|
|
|
})
|
|
|
|
minetest.register_tool("tapes:spiketape_orange", {
|
|
description = "Orange Spiketape",
|
|
inventory_image = "tapes_spiketape_orange.png",
|
|
on_use = function(itemstack, player, pointed_thing)
|
|
minetest.set_node(pointed_thing.above, {name = "tapes:piece_spiketape_orange"})
|
|
itemstack:add_wear(2000)
|
|
return itemstack
|
|
end
|
|
})
|
|
|
|
minetest.register_tool("tapes:spiketape_black", {
|
|
description = "Black Spiketape",
|
|
inventory_image = "tapes_spiketape_black.png",
|
|
on_use = function(itemstack, player, pointed_thing)
|
|
minetest.set_node(pointed_thing.above, {name = "tapes:piece_spiketape_black"})
|
|
itemstack:add_wear(2000)
|
|
return itemstack
|
|
end
|
|
})
|