[Mod] Select Item [1.1.0] [select_item]

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

[Mod] Select Item [1.1.0] [select_item]

by Wuzzy » Post

Very simple form to select an item (mod is only required as dependency).

Image

This mod is useless on its own, but it is supposed to be used by other mods.
As a modder, when you were designing a formspec, did you ever felt the need for allow players to specify an item without falling back to using plain itemstrings or other ugly methods? Then this mod might be useful, I guess. xD

This gives you a function which shows a simple form with a field of item buttons, one button per item. You can filter the items to display by criteria of your choosing (e.g. all Creative items, or only items with the group “crumbly”). When the player clicks a button, a callback function is called so you can do something. That's it!

Download: Version 1.1.0
Version: 1.1.0 (this is a SemVer)
Works in Minetest 5.0.0 or later

API documentation is given in the API.md.

Git repository / project page: https://content.minetest.net/packages/W ... lect_item/
Mandatory dependencies: None!
Optional dependency: default from Minetest Game (for formspec styling)
License of everything: MIT License
Last edited by Wuzzy on Mon Mar 06, 2023 13:15, edited 3 times in total.

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

Version 1.0.0!

by Wuzzy » Post

Version 1.0.0 of this mod has been released!

The API has been finished, tested and stabilized.

Here's an usage example, in L-System Tree Utility. This is a more convenient way to select a trunk node:
Image

User avatar
BrunoMine
Member
Posts: 1082
Joined: Thu Apr 25, 2013 17:29
GitHub: BrunoMine
Location: SP-Brasil
Contact:

Re: [Mod] Select Item [1.0.0] [select_item]

by BrunoMine » Post

This is realy useful for creative mode.

wziard
Member
Posts: 127
Joined: Mon Oct 29, 2018 19:12

Re: [Mod] Select Item [1.1.0] [select_item]

by wziard » Post

Woops, wrong topic...
moved question to right topic

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

Re: [Mod] Select Item [1.1.0] [select_item]

by Wuzzy » Post

The Git code repository of this mod has been moved to Codeberg.org.

https://codeberg.org/Wuzzy/minetest_select_item

Post Reply

Who is online

Users browsing this forum: No registered users and 14 guests