Page 1 of 1

Are there any policies for groups?

PostPosted: Sun Sep 13, 2015 21:27
by Exilyth
Hi.

I'm writing a mod and currently I'm milling over which crafting ingredients to use for some medicine.

Aside from the ones listed under
http://dev.minetest.net/Groups
and
http://dev.minetest.net/Groups/Custom_groups

Are there any other policies for groups? *

I'm wondering because e.g. most fruits are using "leafdecay" (node decays if no tree is in a radius of the rating) but are not "fruits" which would make using fruits from multiple mods in crafting recipes a lot easier.

Leaves also uses "leafdecay". Using "leaves and other stuff which falls from trees" as ingredients for medicine would be fine, but I'm sure there's a mod which uses "leafdecay" for non-edible stuff. Similarly, there might be edible stuff which does not fall from trees, but which could be still usable for medicine.

*sigh*

Do I really have to scour through all mods the mods I want to support and generate a separate recipe for each ingredient?




* I know that e.g. [technic] uses groups 'radioactive' and 'radioactive_protection' for radioactive materials and shielding.

Re: Are there any policies for groups?

PostPosted: Sun Sep 13, 2015 21:43
by rubenwardy
Look at my food mod, specifically food/init.lua and food_basic/support.lua. It adds groups to the ingredients it wants to support.

The groups it uses are in the form food_name, for example food_potato.

I've been meaning to start a specification for shared groups.

Re: Are there any policies for groups?

PostPosted: Mon Sep 14, 2015 05:39
by kaeza
There's no real registry of groups. Groups are defined in an ad-hoc manner. Once some mod is popular, some other modders may start using your group(s) to be compatible with your mod (or vice-versa).

The best bet is to contact the developers of the mods you want to support, and kindly request they add your group to their items for compatibility.

Re: Are there any policies for groups?

PostPosted: Mon Sep 14, 2015 07:20
by rubenwardy
Or add them yourself like the food mod does ;)

I made a mistake in the earlier post, I meant food_basic/support.lua not init.lua

Re: Are there any policies for groups?

PostPosted: Mon Sep 14, 2015 15:10
by Exilyth
Ok, I'll take a look at [food] then - viewtopic.php?f=11&t=2960
Thank you for the information everyone.