forked from VoxeLibre/VoxeLibre
Use rightclick for fire charge/flint and steel
This commit is contained in:
parent
697a7b6505
commit
ba278bbc25
|
@ -6,7 +6,7 @@ minetest.register_craftitem("mcl_fire:fire_charge", {
|
||||||
inventory_image = "mcl_fire_fire_charge.png",
|
inventory_image = "mcl_fire_fire_charge.png",
|
||||||
liquids_pointable = false,
|
liquids_pointable = false,
|
||||||
stack_max = 64,
|
stack_max = 64,
|
||||||
on_use = function(itemstack, user, pointed_thing)
|
on_place = function(itemstack, user, pointed_thing)
|
||||||
if pointed_thing.type == "node" then
|
if pointed_thing.type == "node" then
|
||||||
if minetest.get_node(pointed_thing.under).name == "mcl_tnt:tnt" then
|
if minetest.get_node(pointed_thing.under).name == "mcl_tnt:tnt" then
|
||||||
tnt.ignite(pointed_thing.under)
|
tnt.ignite(pointed_thing.under)
|
||||||
|
|
|
@ -5,7 +5,7 @@ minetest.register_tool("mcl_fire:flint_and_steel", {
|
||||||
liquids_pointable = false,
|
liquids_pointable = false,
|
||||||
stack_max = 1,
|
stack_max = 1,
|
||||||
groups = { tool = 1 },
|
groups = { tool = 1 },
|
||||||
on_use = function(itemstack, user, pointed_thing)
|
on_place = function(itemstack, user, pointed_thing)
|
||||||
local idef = itemstack:get_definition()
|
local idef = itemstack:get_definition()
|
||||||
minetest.sound_play(
|
minetest.sound_play(
|
||||||
"fire_flint_and_steel",
|
"fire_flint_and_steel",
|
||||||
|
|
Loading…
Reference in New Issue