1
0
Fork
You've already forked itemframes
0
forked from tenplus1/itemframes
add itemframes and pedestals into minetest
  • Lua 100%
Find a file
2024年03月09日 14:16:45 +00:00
textures new texture for pedestal top and bottom (thanks Sirrobzeroone) 2023年04月03日 14:24:24 +01:00
init.lua fix missing texture on newer clients on load, fix floating invisible frame item, tidy code 2024年03月09日 14:16:45 +00:00
mod.conf initial_properties update 2023年09月23日 14:08:26 +01:00
readme.md add "itemframes.allow_rotate" setting to allow itemframe item rotation in protected areas. 2023年08月03日 08:09:11 +01:00
screenshot.jpg update screenshot 2022年11月08日 11:38:55 +00:00
settingtypes.txt add "itemframes.allow_rotate" setting to allow itemframe item rotation in protected areas. 2023年08月03日 08:09:11 +01:00

Item Frames mod for minetest

This mod differs from Zeg's original and the one included in homedecor modpack in that no one person owns the itemframe or pedestals, they are protected with minetest.is_protected() so can have multiple owners or none at all... Items that have a light source will glow when placed in frames/pedestals.

Right-click to add or remove an item from a frame or pedestal, please note that if an item already has on_rightclick registered then it cannot be added to either. Punch frame or pedestal to force update if items do not appear.

Itemframes can be rotated with a screwdriver which includes sitting flat on a surface, punch to update item inside. You can also hold sneak and punch to rotate item inside frame.

License was originally WTFPL although the codebase has changed so much I've reclassified as MIT License for simplicity and school use, and textures are CC-BY-3.0.

Settings

Change 'itemframes.return_item' setting to true if you want items to drop back into player inventory when removed (thanks fluxionary).

Change 'itemframes.log_actions' setting to true if you want to log player actions when inserting or removing items from a frame or pedestal.

Itemframe items can be rotated by holding sneak and punching frame, but in a protected area this is limited to the owner unless "itemframes.allow_rotate" setting is true.

Texture Override

If a node has the _itemframe_texture string set then the itemframe will show that image instead of the item's own wielditem (mainly for 3d items that may not look good in frames) e.g.

This shows furnaces inside an itemframe as a flat image:

minetest.override_item("default:furnace", { _itemframe_texture = "default_furnace_front.png" })

This shows furance inside an itemframe as a 3D styled flat image:

minetest.override_item("default:furnace", { _itemframe_texture = minetest.inventorycube( "default_furnace_top.png", "default_furnace_side.png", "default_furnace_front.png") })