Procedure optimization

Started by Taras Ogurtsov on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jul 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Procedure optimization

My mod has procedures for placing items as blocks, but over time these procedures become too many and to optimize the mod I would like to ask what is the best way to deal with these procedures. Either leave many procedures, each of which will be responsible for one item, or combine several procedures from different items into one. In the first case the size of the procedure will not be large, but there will be many procedures running at the same time since I am using global triggers, and in the second case the number of procedures themselves will be greatly reduced, but one procedure will be very long. It is very important for me to know what is the best way to proceed in this case. Perhaps you can suggest another way. I will be grateful for any help!