Add /listitems command?

Post Reply

Should a /listitems command be added to Minetest?

Yes.
8
50%
No.
5
31%
I don't know or care.
3
19%
 
Total votes: 16

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

Add /listitems command?

by Wuzzy » Post

This is a poll.
Should a “/listitems” command be added to Minetest?

The /listitems command would list all itemstrings (i.e. technical item names like “default:tree”). You need to know itemstrings for the /give and /giveme commands.

Additionally, a special parameter can be used to filter items by name. Oh, and such a command would probably require the “give” privilege to avoid cheating. ;-)

FYI: There is a 3rd-party mod which implements this feature, but it is not official: viewtopic.php?t=18049

User avatar
philipbenr
Member
Posts: 1897
Joined: Fri Jun 14, 2013 01:56
GitHub: philipbenr
IRC: philipbenr
In-game: robinspi
Location: United States

Re: Add /listitems command?

by philipbenr » Post

This feature reminds me of __repr__ or toString in Python or Java respectively, and I approve of the use-case.

cuthbertdoublebarrel
Member
Posts: 348
Joined: Tue Apr 14, 2020 16:03
GitHub: cuthbert

Re: Add /listitems command?

by cuthbertdoublebarrel » Post

I found witt handy viewtopic.php?t=18204
to id stuff in game but it does not id entities . the technical names provided a good insight so can see the list being useful to others when testing mods .
Project BrutalTest...hide your Petz

User avatar
Linuxdirk
Member
Posts: 3219
Joined: Wed Sep 17, 2014 11:21
In-game: Linuxdirk
Location: Germany
Contact:

Re: Add /listitems command?

by Linuxdirk » Post

No, I dislike the idea. It would be better if /give and /giveme would have autocomplete or assistance.

Code: Select all

/giveme stone
[1] default:stone
[2] mymod:stone_tool
[3] stone:foobar
[N] …
Select number:
Also tab completion similar to bash, etc.

And if the given parameter is unique then simply give the item. (i.e. /giveme foo would only return stone:foobar then give the user stone:foobar instead of requesting the number.)

deleted c0a803ab

Re: Add /listitems command?

by deleted c0a803ab » Post

Such function would be very useful.

Post Reply

Who is online

Users browsing this forum: No registered users and 11 guests