Add new eliquid items
This commit is contained in:
parent
992ea5422b
commit
f3d31ce761
12
init.lua
12
init.lua
@ -95,6 +95,18 @@ minetest.register_tool("ecigarettes:ecigarette_highgrav", {
|
||||
end
|
||||
})
|
||||
|
||||
--Special
|
||||
minetest.register_tool("ecigarettes:ecigarette_flamable", {
|
||||
description = "E-Cigarette [Flamable]",
|
||||
inventory_image = "ecigarettes_ecigarette_flamable.png",
|
||||
on_use = function(itemstack, player, pointed_thing)
|
||||
local newpos = player:get_pos()
|
||||
minetest.set_node(newpos, {name = "fire:fire"})
|
||||
itemstack:replace("ecigarettes:ecigarette")
|
||||
return itemstack
|
||||
end
|
||||
})
|
||||
|
||||
minetest.register_craftitem("ecigarettes:ecigarette", {
|
||||
description = "E-Cigarette",
|
||||
inventory_image = "ecigarettes_ecigarette.png",
|
||||
|
Loading…
x
Reference in New Issue
Block a user