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")
|
-- minetest.chat_send_player(username, "get_inventory:nil")
|
||||||
end
|
end
|
||||||
if node.frame_contents then
|
if node.frame_contents then
|
||||||
|
-- frames mod
|
||||||
local frame_contents = node.frame_contents
|
local frame_contents = node.frame_contents
|
||||||
if frame_contents then
|
if frame_contents then
|
||||||
minetest.chat_send_player(username, "frame_contents: "..frame_contents)
|
minetest.chat_send_player(username, "frame_contents: "..frame_contents)
|
||||||
@ -244,6 +245,17 @@ minetest.register_craftitem("metatools:stick",{
|
|||||||
-- else
|
-- else
|
||||||
-- minetest.chat_send_player(username, "get_inventory:nil")
|
-- minetest.chat_send_player(username, "get_inventory:nil")
|
||||||
end
|
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 airname = minetest.get_name_from_content_id(minetest.CONTENT_AIR)
|
||||||
-- local litnode = nil
|
-- local litnode = nil
|
||||||
local litpos = nil
|
local litpos = nil
|
||||||
|
Loading…
Reference in New Issue
Block a user