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
Add /listitems command?
- 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?
This feature reminds me of __repr__ or toString in Python or Java respectively, and I approve of the use-case.
-
- Member
- Posts: 348
- Joined: Tue Apr 14, 2020 16:03
- GitHub: cuthbert
Re: Add /listitems command?
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 .
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
- Linuxdirk
- Member
- Posts: 3219
- Joined: Wed Sep 17, 2014 11:21
- In-game: Linuxdirk
- Location: Germany
- Contact:
Re: Add /listitems command?
No, I dislike the idea. It would be better if /give and /giveme would have autocomplete or assistance.
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.)
Code: Select all
/giveme stone
[1] default:stone
[2] mymod:stone_tool
[3] stone:foobar
[N] …
Select number:
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.)
Re: Add /listitems command?
Such function would be very useful.
Who is online
Users browsing this forum: No registered users and 11 guests