File tree 1 file changed +25
-0
lines changed 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Crafting a rainbow lantern
2
+
3
+ ``` ts
4
+ import { Entity , Prefab } from ' att-string-transcoder' ;
5
+
6
+ const rainbowLantern = new Prefab (' Lantern' );
7
+
8
+ const blue = new Entity <' Lantern' >(' lantern_bar_01_28734' ).setMaterial (' Mythril' );
9
+ const grey = new Entity <' Lantern' >(' lantern_bar_02_28742' ).setMaterial (' Iron' );
10
+ const purple = new Entity <' Lantern' >(' lantern_bar_03_28770' ).setMaterial (' EvinonSteelAlloy' );
11
+ const red = new Entity <' Lantern' >(' lantern_bar_04_28766' ).setMaterial (' RedIronAlloy' );
12
+ const orange = new Entity <' Lantern' >(' lantern_bar_05_28738' ).setMaterial (' Copper' );
13
+ const yellow = new Entity <' Lantern' >(' lantern_bar_06_28778' ).setMaterial (' Gold' );
14
+ const green = new Entity <' Lantern' >(' lantern_bar_07_28750' ).setMaterial (' OrchiAlloy' );
15
+
16
+ rainbowLantern
17
+ .addEntity (blue )
18
+ .addEntity (grey )
19
+ .addEntity (purple )
20
+ .addEntity (red )
21
+ .addEntity (orange )
22
+ .addEntity (yellow )
23
+ .addEntity (green )
24
+ .print ();
25
+ ```
You can’t perform that action at this time.
0 commit comments