mirror of
https://codeberg.org/minenux/minetest-mod-xdecor
synced 2023-10-20 21:43:39 -07:00
Drop and alias flint-and-steel (merged in Minetest Game)
This commit is contained in:
parent
bb7ae96850
commit
87f25f7a0d
@ -21,27 +21,7 @@ minetest.register_craftitem("xdecor:bowl_soup", {
|
|||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
|
||||||
if rawget(_G, "fire") then
|
minetest.register_alias("xdecor:flint_steel", "fire:flint_and_steel")
|
||||||
minetest.register_tool("xdecor:flint_steel", {
|
|
||||||
description = "Flint & Steel",
|
|
||||||
inventory_image = "xdecor_flint_steel.png",
|
|
||||||
on_use = function(itemstack, user, pointed_thing)
|
|
||||||
local player = user:get_player_name()
|
|
||||||
local pt = pointed_thing
|
|
||||||
|
|
||||||
if pt.type == "node" and minetest.get_node(pt.above).name == "air" then
|
|
||||||
if not minetest.is_protected(pt.above, player) then
|
|
||||||
minetest.set_node(pt.above, {name="fire:basic_flame"})
|
|
||||||
else
|
|
||||||
minetest.chat_send_player(player, "[!] This area is protected")
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
itemstack:add_wear(2000)
|
|
||||||
return itemstack
|
|
||||||
end
|
|
||||||
})
|
|
||||||
end
|
|
||||||
|
|
||||||
minetest.register_tool("xdecor:hammer", {
|
minetest.register_tool("xdecor:hammer", {
|
||||||
description = "Hammer",
|
description = "Hammer",
|
||||||
|
@ -145,13 +145,6 @@ minetest.register_craft({
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "xdecor:flint_steel",
|
|
||||||
recipe = {
|
|
||||||
{"default:obsidian_shard", "default:steel_ingot"}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "xdecor:frame",
|
output = "xdecor:frame",
|
||||||
recipe = {
|
recipe = {
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 196 B |
Loading…
x
Reference in New Issue
Block a user