mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-25 10:52:25 +01:00
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",
|
||||
liquids_pointable = false,
|
||||
stack_max = 64,
|
||||
on_use = function(itemstack, user, pointed_thing)
|
||||
on_place = function(itemstack, user, pointed_thing)
|
||||
if pointed_thing.type == "node" then
|
||||
if minetest.get_node(pointed_thing.under).name == "mcl_tnt:tnt" then
|
||||
tnt.ignite(pointed_thing.under)
|
||||
|
@ -5,7 +5,7 @@ minetest.register_tool("mcl_fire:flint_and_steel", {
|
||||
liquids_pointable = false,
|
||||
stack_max = 1,
|
||||
groups = { tool = 1 },
|
||||
on_use = function(itemstack, user, pointed_thing)
|
||||
on_place = function(itemstack, user, pointed_thing)
|
||||
local idef = itemstack:get_definition()
|
||||
minetest.sound_play(
|
||||
"fire_flint_and_steel",
|
||||
|
Loading…
Reference in New Issue
Block a user