Also show framed item when using the itemframes mod.
This commit is contained in:
parent
c003d1a80a
commit
7305724a95
12
init.lua
12
init.lua
@ -235,6 +235,7 @@ minetest.register_craftitem("metatools:stick",{
|
||||
-- minetest.chat_send_player(username, "get_inventory:nil")
|
||||
end
|
||||
if node.frame_contents then
|
||||
-- frames mod
|
||||
local frame_contents = node.frame_contents
|
||||
if frame_contents then
|
||||
minetest.chat_send_player(username, "frame_contents: "..frame_contents)
|
||||
@ -244,6 +245,17 @@ minetest.register_craftitem("metatools:stick",{
|
||||
-- else
|
||||
-- minetest.chat_send_player(username, "get_inventory:nil")
|
||||
end
|
||||
if meta:get_string("item") ~= "" then
|
||||
-- itemframes mod or xdecor:itemframe
|
||||
local frame_contents = meta:get_string("item")
|
||||
if frame_contents then
|
||||
minetest.chat_send_player(username, "meta item: "..frame_contents)
|
||||
-- else
|
||||
-- minetest.chat_send_player(username, "\tnil")
|
||||
end
|
||||
-- else
|
||||
-- minetest.chat_send_player(username, "get_inventory:nil")
|
||||
end
|
||||
local airname = minetest.get_name_from_content_id(minetest.CONTENT_AIR)
|
||||
-- local litnode = nil
|
||||
local litpos = nil
|
||||
|
Loading…
Reference in New Issue
Block a user