Topic category: Feature requests and ideas for MCreator
Basically, you could create a data struct mod element, and it would act as its own variable type that contains multiple variables depending on however much the user inserts in the mod element.
For example, you create a new Data struct mod element called "MyCraftingRecipe". Then you add variables inside it like item1, item2, and output with variable type of itemstack. Also, you add another variable called something like ticksToCompletion.
Once you save your data struct, you go to procedure's local variable or a global variable, and create a new variable called "recipe" and fill in the variable by inserting all the data inside it.
How would the behind the scenes code look like:
- Basically, it's a class, that contains publicly accessible variables.
How is are the variables accessed or set in procedures?
- Similar to setting data parameters inside custom entities, where you pass in the variable, and specify which variable you want to access. Also, something similar when setting.
I think this should be added when arrays/array lists gets added, as then you would be able to make a custom crafter without making a large chain of if else statements.