User Tools

Site Tools


tutorial:dynamic_model_generation

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tutorial:dynamic_model_generation [2021/08/07 19:08] – Fix some code errors lvanderzandetutorial:dynamic_model_generation [2022/11/05 12:05] (current) jab125
Line 1: Line 1:
 +:!: //This page has been replaced by the Fabric Data Generation API tutorials, [[tutorial:datagen_model|which you can find here.]]//
 +
 ====== Dynamic Model Generation ====== ====== Dynamic Model Generation ======
 Dynamically generated models can mainly be used to add models to items or blocks that are generated, or if you want to auto-create them for a large number of items or blocks. Dynamically generated models can mainly be used to add models to items or blocks that are generated, or if you want to auto-create them for a large number of items or blocks.
Line 55: Line 57:
         model.id = id.toString();         model.id = id.toString();
         cir.setReturnValue(model);         cir.setReturnValue(model);
-        cir.cancel(); 
     }     }
 } }
 </code> </code>
tutorial/dynamic_model_generation.1628363303.txt.gz · Last modified: 2021/08/07 19:08 by lvanderzande