Cuberite Forum
Items.ini naming convention. - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Cuberite (https://forum.cuberite.org/forum-4.html)
+--- Forum: Development (https://forum.cuberite.org/forum-13.html)
+--- Thread: Items.ini naming convention. (/thread-2443.html)



Items.ini naming convention. - bearbin - 05-17-2016

I was updating items.ini today for 1.9, and the item names seemed very inconsistent. We should establish a convention as to the names that we use.

I suggest:

itemname=xyz
item_name=xyz

Along with the same for any common synonyms for all items. This would require a small update to the existing file but should improve consistency for the future.


RE: Items.ini naming convention. - xoft - 05-17-2016

The item names should match the vanilla names. Of course, any names we've introduced in the past, as well as some common aliases, should be kept for compatibility reasons, unless there's a strong reason not to.


RE: Items.ini naming convention. - bearbin - 05-17-2016

According to the wiki vanilla uses names with underscores. However our crafting and furnace files use the plain names without underscores. What is the correct solution there?


RE: Items.ini naming convention. - xoft - 05-17-2016

items.ini should list both, recipes can use either. I guess we should use the underscore-y names for future items, but I still think we should keep the old ones.


RE: Items.ini naming convention. - bearbin - 05-17-2016

OK, so I will make sure that the list includes both, to make it consistent. Thank you for the advice.


RE: Items.ini naming convention. - bearbin - 05-18-2016

I thought of a different approach, outlined in PR #3202