[Mod] Decoshelves [decoshelves]

Post Reply
Josselin2
Member
Posts: 102
Joined: Thu May 28, 2020 15:32
GitHub: axcore
In-game: Josselin
Location: Tunnelers' Abyss

[Mod] Decoshelves [decoshelves]

by Josselin2 » Post

Have YOU ever wanted to make a bookshelf out of leaves, coral, lava, or any other completely unsuitable material? Well, now you can!

Image

The default mod from minetest-game provides a single bookshelf made out of default wood.

This mod provides (as standard) bookshelves made out of about forty additional materials. A few of them use animated textures.

Each bookshelf come in two varieties: the ordinary version, and a lockable version (with glass doors). Skeleton keys from default can be used with the lockable version.

The craft recipe for the ordinary version is:

Code: Select all

MATERIAL MATERIAL MATERIAL
BOOK BOOK BOOK
MATERIAL MATERIAL MATERIAL
The locked version uses a steel ingot in its craft recipe:

Code: Select all

MATERIAL MATERIAL MATERIAL
BOOK INGOT BOOK
MATERIAL MATERIAL MATERIAL
You can easily add or remove bookshelves; just open the init.lua file in a text editor, and add or remove lines from the list. You can create a bookshelf out of (almost) any material: as long as Minetest can retrieve the texture, then decoshelves can use that texture.

Downloads: browse the source or download the zip

License (code): GNU Lesser General Public License, version 2.1
License (media): Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0)

Credits: The code and textures are adapted from minetest-game

Dependencies: default

Optional dependencies: bones and bucket
Last edited by Josselin2 on Tue Jul 06, 2021 16:11, edited 2 times in total.

twoelk
Member
Posts: 1482
Joined: Fri Apr 19, 2013 16:19
GitHub: twoelk
IRC: twoelk
In-game: twoelk
Location: northern Germany

Re: [Mod] Decoshelves [decoshelves]

by twoelk » Post

cool,
now how about a bookshelf with glass doors or maybe even lockable for my very expensive pieces of literature

Josselin2
Member
Posts: 102
Joined: Thu May 28, 2020 15:32
GitHub: axcore
In-game: Josselin
Location: Tunnelers' Abyss

Re: [Mod] Decoshelves [decoshelves]

by Josselin2 » Post

Good idea, but how will the player interact with the glass doors?

Can't left-click the bookshelf, because then it won't be diggable.

Can't right-click the bookshelf, because then the formspec can't be opened.

twoelk
Member
Posts: 1482
Joined: Fri Apr 19, 2013 16:19
GitHub: twoelk
IRC: twoelk
In-game: twoelk
Location: northern Germany

Re: [Mod] Decoshelves [decoshelves]

by twoelk » Post

maybe sort off check state?
on right-click if shelf closed open it, else open formspec
and for closing use the hitbox of the door only

Josselin2
Member
Posts: 102
Joined: Thu May 28, 2020 15:32
GitHub: axcore
In-game: Josselin
Location: Tunnelers' Abyss

Re: [Mod] Decoshelves [decoshelves]

by Josselin2 » Post

Ok, done. I couldn't find a suitable animation to "borrow", but there are now normal and lockable bookshelves. The lockable version has glass doors.

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 15 guests