Skip to content

Commit 1b93761

Browse files
committed
Add Readme
1 parent e7d136f commit 1b93761

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

Diff for: readme.md

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
Itemshelf
2+
=========
3+
4+
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.
5+
6+
There are no crafting recipes at the moment. To get an item shelf, play on `creative` or use:
7+
`/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.
8+
9+
Developers
10+
----------
11+
Developers using this mod can register a particular node to use the item shelf functionality. To do that, the following function is used:
12+
```lua
13+
itemshelf.register_shelf(name, def)
14+
```
15+
where `name` is the name of the node (`itemshelf:` will be the prefix) and `def` is a Lua table defining the following:
16+
- `description`: shown in inventory
17+
- `textures` (if drawtype is nodebox)
18+
- `nodebox` (like default minetest.register_node def). Do not use with `mesh`.
19+
- `mesh` (like default minetest.register_node def). Do not use with `nodebox`.
20+
- `item capacity` (how many items will fit into the shelf, use even numbers, max 16)
21+
- `shown_items` (how many items to show, will always show first (shown_items/2) items of each row, max 6)
22+
23+
License
24+
-------
25+
All code is copyright (C) 2018 Hector Franqui (zorman2000), licensed under the MIT license. See `LICENSE` for details.
26+
27+
Roadmap
28+
-------
29+
- Add shelves in all varieties of woods
30+
- Add crafting recipe
31+
- Add sounds when placing items
32+
- Allow shelves to contain only specific items
33+
- Allow overlays if shelf holds specific items

0 commit comments

Comments
 (0)