How to create a "universal" element

Started by smplesco on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to create a "universal" element

Typically when creating a mod that has a different type of item for each stone or wood, I duplicate it for each type and modify each texture, however I wonder if there is a way either natively on mcreator or through java code to find a type of tag and not only modify the texture but also create a new type of item for each stone/wood. If you know what I mean.

 

ex: rather than creating a vertical slab for each type of wood, have code that creates a vertical slab for each tag of wood automatically such that it works with bigger mods with more wood.