How to find secret items in a Minetest based game
How to find secret items in a Minetest based game
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?
- 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
Sure! just search the code for minetest.register one of those hits should be the registeration of the item you want to give yourself.
Re: How to find secret items in a Minetest based game
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
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?
- 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
There's also the “listitems” mod but it is unfinished: viewtopic.php?t=18049
Re: How to find secret items in a Minetest based game
get items
minetestserver on 3 K8S nodes with cloudnative-pg backend
- 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
you can also use the chest of everything mod from devtest, thats what i do
↯Glory to Team Thunderstrike!↯
↯T.T.S.↯
↯T.T.S.↯
- 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
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 ✝️♂
Who is online
Users browsing this forum: No registered users and 24 guests