nac/itemshelf
3
3
Fork
You've already forked itemshelf
0
Minetest Mod
  • Lua 100%
2025年01月29日 22:16:11 +00:00
models Fork 2021年03月10日 17:48:46 +01:00
screenshots add Screenshots 2021年05月20日 12:17:09 +02:00
api.lua add protection checks 2025年01月29日 23:11:33 +01:00
depends.txt Fork 2021年03月10日 17:48:46 +01:00
init.lua add recipes.lua 2021年03月10日 17:48:17 +01:00
LICENSE copy License from fork 2021年03月10日 17:47:25 +01:00
mod.conf little changes 2021年05月20日 11:59:07 +02:00
nodes.lua new name for open shelf large/small 2021年03月10日 22:08:40 +01:00
README.md add badges to readme.md 2021年07月05日 20:54:24 +02:00
recipes.lua modify all crafting recipes for all default wood support 2021年03月11日 12:21:51 +01:00

itemshelf

ContentDB ContentDB

Fork from itemshelf

Changelog

  • add crafting recipes in "recipes.lua"
  • crafting with all wood planks

Original readme

Itemshelf

The item shelf mod is a simple mod that adds to shelves that can hold up to 4 or 6 items. This small limitation is due to the fact that shelves show the items they are holding using entities. The entities are purely static and consume 0 CPU (like the ones in itemframes for example), but still the limitation is to avoid lag.

There are no crafting recipes at the moment. To get an item shelf, play on creative or use: /giveme itemshelf:small_shelf or /giveme itemshelf:large_shelf. Both shelves are of the same size, however they can hold 4 or 6 items respectively.

Developers

Developers using this mod can register a particular node to use the item shelf functionality. To do that, the following function is used:

itemshelf.register_shelf(name, def)

where name is the name of the node (itemshelf: will be the prefix) and def is a Lua table defining the following:

  • description: shown in inventory
  • textures (if drawtype is nodebox)
  • nodebox (like default minetest.register_node def). Do not use with mesh.
  • mesh (like default minetest.register_node def). Do not use with nodebox.
  • item capacity (how many items will fit into the shelf, use even numbers, max 16)
  • shown_items (how many items to show, will always show first (shown_items/2) items of each row, max 6)

License

All code is copyright (C) 2018 Hector Franqui (zorman2000), licensed under the MIT license. See LICENSE for details.

Roadmap

  • Add shelves in all varieties of woods
  • Add crafting recipe
  • Add sounds when placing items
  • Allow shelves to contain only specific items
  • Allow overlays if shelf holds specific items