How to find secret items in a Minetest based game

Post Reply
-UK-
New member
Posts: 9
Joined: Fri Jan 29, 2021 09:18

How to find secret items in a Minetest based game

by -UK- » Post

If someone makes a game based on Minetest and adds some thing which can not be found naturally and can only be taken by /giveme, then is there any way I can know what the secret item is called by looking at its code because to use /giveme I will need to enter the item's name?

User avatar
MisterE
Member
Posts: 693
Joined: Sun Feb 16, 2020 21:06
GitHub: MisterE123
IRC: MisterE
In-game: MisterE

Re: How to find secret items in a Minetest based game

by MisterE » Post

Sure! just search the code for minetest.register one of those hits should be the registeration of the item you want to give yourself.

User avatar
cx384
Member
Posts: 654
Joined: Wed Apr 23, 2014 09:38
GitHub: cx384
IRC: cx384

Re: How to find secret items in a Minetest based game

by cx384 » Post

You can also get all of them with minetest.registered_items
or use unified_inventory and remove all not_in_creative_inventory checks.
https://github.com/minetest-mods/unifie ... _inventory

replace (not def.groups.not_in_creative_inventory or def.groups.not_in_creative_inventory == 0) with true.
same for (itemdef.groups.not_in_creative_inventory or 0) == 0
Can your read this?

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

Re: How to find secret items in a Minetest based game

by Wuzzy » Post

There's also the “listitems” mod but it is unfinished: viewtopic.php?t=18049

pivert
Member
Posts: 33
Joined: Sun Oct 03, 2021 23:33
In-game: Pivert

Re: How to find secret items in a Minetest based game

by pivert » Post

get items
minetestserver on 3 K8S nodes with cloudnative-pg backend

User avatar
Nininik
Member
Posts: 585
Joined: Thu Apr 06, 2023 01:55
GitHub: nininik0
IRC: nininik
In-game: nininik
Location: CA, Team thunderstrike headquarters
Contact:

Re: How to find secret items in a Minetest based game

by Nininik » Post

you can also use the chest of everything mod from devtest, thats what i do
↯Glory to Team Thunderstrike!↯
↯T.T.S.↯

User avatar
Blockhead
Member
Posts: 1687
Joined: Wed Jul 17, 2019 10:14
GitHub: Montandalar
IRC: Blockhead256
In-game: Blockhead Blockhead256
Location: Land Down Under
Contact:

Re: How to find secret items in a Minetest based game

by Blockhead » Post

All of the present solutions help find secret items in the source code or from in-game. What I would have thought OP is after is a way to find the itemstring name that is necessary to give to the chat command to make many more after you already have the first one. So I will recommend (5.8.0 Settings menu now): User Interfaces -> Append item name. That will show the item name (itemstring) in the toolip in [] after the description. That is the text string that you need to give to give and /giveme. Personally I always play with it on.
/˳˳_˳˳]_[˳˳_˳˳]_[˳˳_˳˳\ Advtrains enthusiast | My map: Noah's Railyard | My Content on ContentDB ✝️♂

Post Reply

Who is online

Users browsing this forum: No registered users and 24 guests