Compare commits
4 Commits
41b188caea
...
b136cbf9bb
Author | SHA1 | Date |
---|---|---|
the-real-herowl | b136cbf9bb | |
the-real-herowl | e6d8d840db | |
Mikita Wiśniewski | 78125f425a | |
cora | cb1999414b |
|
@ -220,10 +220,12 @@ minetest.register_node(BAMBOO, bamboo_def)
|
||||||
local bamboo_top = table.copy(bamboo_def)
|
local bamboo_top = table.copy(bamboo_def)
|
||||||
bamboo_top.groups = {not_in_creative_inventory = 1, handy = 1, axey = 1, choppy = 1, dig_by_piston = 1, plant = 1, non_mycelium_plant = 1, flammable = 3}
|
bamboo_top.groups = {not_in_creative_inventory = 1, handy = 1, axey = 1, choppy = 1, dig_by_piston = 1, plant = 1, non_mycelium_plant = 1, flammable = 3}
|
||||||
bamboo_top.tiles = {"mcl_bamboo_endcap.png"}
|
bamboo_top.tiles = {"mcl_bamboo_endcap.png"}
|
||||||
bamboo_top.drawtype = "plantlike_rooted" --"plantlike"
|
|
||||||
--bamboo_top.paramtype2 = "meshoptions"
|
-- bamboo_top.drawtype = "plantlike_rooted" --"plantlike"
|
||||||
--bamboo_top.param2 = 2
|
bamboo_top.drawtype = "plantlike"
|
||||||
-- bamboo_top.waving = 2
|
bamboo_top.paramtype2 = "meshoptions"
|
||||||
|
bamboo_top.param2 = 2
|
||||||
|
bamboo_top.waving = 2
|
||||||
bamboo_top.special_tiles = {{name = "mcl_bamboo_endcap.png"}}
|
bamboo_top.special_tiles = {{name = "mcl_bamboo_endcap.png"}}
|
||||||
bamboo_top.nodebox = nil
|
bamboo_top.nodebox = nil
|
||||||
bamboo_top.selection_box = nil
|
bamboo_top.selection_box = nil
|
||||||
|
|
|
@ -167,6 +167,12 @@ minetest.register_node("mcl_smithing_table:table", {
|
||||||
end,
|
end,
|
||||||
|
|
||||||
allow_metadata_inventory_put = function(pos, listname, index, stack, player)
|
allow_metadata_inventory_put = function(pos, listname, index, stack, player)
|
||||||
|
local name = player:get_player_name()
|
||||||
|
if minetest.is_protected(pos, name) then
|
||||||
|
minetest.record_protection_violation(pos, name)
|
||||||
|
return 0
|
||||||
|
end
|
||||||
|
|
||||||
local stackname = stack:get_name()
|
local stackname = stack:get_name()
|
||||||
local def = stack:get_definition()
|
local def = stack:get_definition()
|
||||||
if
|
if
|
||||||
|
@ -187,6 +193,16 @@ minetest.register_node("mcl_smithing_table:table", {
|
||||||
return 0
|
return 0
|
||||||
end,
|
end,
|
||||||
|
|
||||||
|
allow_metadata_inventory_take = function(pos, listname, index, stack, player)
|
||||||
|
local name = player:get_player_name()
|
||||||
|
if minetest.is_protected(pos, name) then
|
||||||
|
minetest.record_protection_violation(pos, name)
|
||||||
|
return 0
|
||||||
|
else
|
||||||
|
return stack:get_count()
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
|
||||||
allow_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
|
allow_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
|
||||||
return 0
|
return 0
|
||||||
end,
|
end,
|
||||||
|
|
Loading…
Reference in New Issue