Change mesetapes renewability and orientation
parent
a1a59c0ffe
commit
774170afd6
6
init.lua
6
init.lua
|
@ -97,7 +97,11 @@ minetest.register_node("tapes:piece_mesetape", {
|
||||||
groups = {cracky = 1, not_in_creative_inventory = 1},
|
groups = {cracky = 1, not_in_creative_inventory = 1},
|
||||||
|
|
||||||
liquid_viscosity = 30,
|
liquid_viscosity = 30,
|
||||||
|
liquid_range = 0,
|
||||||
liquidtype = "source",
|
liquidtype = "source",
|
||||||
|
liquid_renewable = false,
|
||||||
|
liquid_alternative_flowing = "tapes:piece_mesetape",
|
||||||
|
liquid_alternative_source = "tapes:piece_mesetape",
|
||||||
|
|
||||||
selection_box = {
|
selection_box = {
|
||||||
type = "wallmounted",
|
type = "wallmounted",
|
||||||
|
@ -110,7 +114,7 @@ minetest.register_tool("tapes:mesetape", {
|
||||||
description = "Mese Tape",
|
description = "Mese Tape",
|
||||||
inventory_image = "tapes_mesetape.png",
|
inventory_image = "tapes_mesetape.png",
|
||||||
on_use = function(itemstack, player, pointed_thing)
|
on_use = function(itemstack, player, pointed_thing)
|
||||||
minetest.set_node(pointed_thing.above, {name = "tapes:piece_mesetape"})
|
minetest.set_node(pointed_thing.above, {name = "tapes:piece_mesetape", param2 = minetest.dir_to_wallmounted({x = 0, y = -1, z = 0})})
|
||||||
itemstack:add_wear(5000)
|
itemstack:add_wear(5000)
|
||||||
return itemstack
|
return itemstack
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue