Display title of books / Chests

hajo
Member
 
Posts: 262
Joined: Thu Oct 13, 2016 10:45

Display title of books / Chests

by hajo » Wed Nov 30, 2016 13:43

"Book with text" is the tooltip for any book that is not empty.
It would be much more useful to display the actual title of that book as tooltip.

Same problem with chests - currently, an extra sign is needed,
and that gets unwieldy with more than a few chests.
So, I propose to add a title-field to chests.

Also, how about using different wood-textures on chests ?
Maybe also allow to add dye to paper, and books.
Some of 'my' wiki-pages: Build-a-home - basic-robot - basic-machines - digtron
 

User avatar
octacian
Member
 
Posts: 408
Joined: Mon Dec 21, 2015 22:18
GitHub: octacian
IRC: octacian
In-game: octacian

Re: Display title of books / Chests

by octacian » Wed Nov 30, 2016 16:05

Right now, AFAIK, item tooltips cannot be renamed without reloading the game. Sofar (I think) had a PR open give mods the ability to rename items without reloading the game, but I can't seem to find it so may be wrong. Will look through the PR list though, and see what I can find.

With chests, the name could be shown as a part of the infotext, which could be changed with some type of tool, IDK, maybe a "Chest Renamer."
God isn't dead!

My Coolest Mods:
MicroExpansion, Working Computers, Interchangeable Hands

Check out my YouTube channel! (octacian)
 

hajo
Member
 
Posts: 262
Joined: Thu Oct 13, 2016 10:45

Re: Display title of books / Chests

by hajo » Sat Dec 03, 2016 03:59

endev15 wrote:Right now, AFAIK, item tooltips cannot be renamed without reloading the game.

Placeable Books by everamzah has something similar:
when placed, a closed book shows its title,
and an open book shows the first few lines of content.

But in the inventory, books are still "book with text".

With chests, the name could be shown as a part of the infotext, which could
be changed with some type of tool, IDK, maybe a "Chest Renamer."

Labeller / MagicMarker might be a good idea for a mod.

Looking at some code, there is a description, and the infotext.
Often containing the same text, but I think the description is used for the tooltips.
Some of 'my' wiki-pages: Build-a-home - basic-robot - basic-machines - digtron
 

User avatar
Wuzzy
Member
 
Posts: 2161
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy

Re: Display title of books / Chests

by Wuzzy » Sun Dec 04, 2016 22:30

For items, the problem has been identified a while ago and sofar has posted an (unfinished?) implementation:

https://github.com/minetest/minetest/pull/3449

So far, the code is not yet included in Minetest.


Named chests are a nice idea. If I remember correctly, there are even mods which implement this, but nobody bothered to improve Minetest Game with this.
I'm creating MineClone 2, a Minecraft clone for Minetest.
I made the Help modpack, adding in-game help to Minetest.
 

Sokomine
Member
 
Posts: 2980
Joined: Sun Sep 09, 2012 17:31

Re: Display title of books / Chests

by Sokomine » Mon Dec 26, 2016 18:18

My chesttools mod adds editable nametags for placed chests. There are many other mods which do similar things. Technic has a huge amount of chest types. All these mods add further functionality apart from just adding an editable name tag. Maybe that's why nobody ever included that functionality in minetest_game.
There are also mods which add diffently colored chests. Realtest is very nice in that regard as it adds chests for each of its wood and mineral types.
A list of my mods can be found here.
 

User avatar
sorcerykid
Member
 
Posts: 219
Joined: Fri Aug 26, 2016 15:36
In-game: Nemo

Re: Display title of books / Chests

by sorcerykid » Tue Jan 03, 2017 18:55

The reason that books can only show a single tooltip is because the tooltip is derived from the definition of the node itself. For example:

minetest.registered_nodes["default:book"].description = "My Favourite Book"

would change the tooltip for all "default:book" inventory items. There is no conceivable way to allow for alternate tooltips without a change to the engine itself (or significant hacking of the formspec at runtime).
 

User avatar
GreenDimond
Member
 
Posts: 460
Joined: Wed Oct 28, 2015 01:26
GitHub: GreenXenith
IRC: GreenDimond
In-game: GreenDimond

Re: Display title of books / Chests

by GreenDimond » Wed Jan 04, 2017 02:00

Technic lets you name gold chests (and maybe other chests?).
I am Green. I tend to binge-post. "All of this over a 16x16 representation of a cartoon cat ?!?! what has this world come to..." -TenPlus1, 2017.
Diz mah mods! :D ↑ github.com/minetest/minetest_game/issues/1647#issuecomment-288134572 ↑
Sand Plus - Tac Nayn - Waffles - Coming Soon: Caverealms Plus
 


Return to Minetest Features

Who is online

Users browsing this forum: No registered users and 43 guests

cron