Are there any policies for groups?

Exilyth
Member
 
Posts: 60
Joined: Sun Jul 28, 2013 18:46

Are there any policies for groups?

by Exilyth » Sun Sep 13, 2015 21:27

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.
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

Re: Are there any policies for groups?

by rubenwardy » Sun Sep 13, 2015 21:43

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.
Last edited by rubenwardy on Mon Sep 14, 2015 07:21, edited 1 time in total.
 

User avatar
kaeza
Member
 
Posts: 2141
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza

Re: Are there any policies for groups?

by kaeza » Mon Sep 14, 2015 05:39

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.
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal | BTC: 1DFZAa5VtNG7Levux4oP6BuUzr1e83pJK2
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

Re: Are there any policies for groups?

by rubenwardy » Mon Sep 14, 2015 07:20

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
 

Exilyth
Member
 
Posts: 60
Joined: Sun Jul 28, 2013 18:46

Re: Are there any policies for groups?

by Exilyth » Mon Sep 14, 2015 15:10

Ok, I'll take a look at [food] then - viewtopic.php?f=11&t=2960
Thank you for the information everyone.
 


Return to Modding Discussion

Who is online

Users browsing this forum: No registered users and 9 guests

cron