@@ -18,27 +18,28 @@ public class TestPlugin extends JavaPlugin {
1818
1919 @Override
2020 public void onEnable () {
21- NamespacedKey key = new NamespacedKey (this , " WarriorSword" );
22- ItemStack item = ItemStack . of(Material . DIAMOND_SWORD );
21+ NamespacedKey key = new NamespacedKey (this , " television" );
22+
23+ ItemStack item = ItemStack . of(Material . BLACK_WOOL );
24+ item. setData(DataComponentTypes . ITEM_NAME , Component . text(" Television" ));
2325
2426 ShapedRecipe recipe = new ShapedRecipe (key, item);
25- recipe. shape(" A " , " AAA " , " B " );
26- recipe. setIngredient(' A' , Material . DIAMOND );
27- recipe. setIngredient(' B' , Material . STICK );
27+ recipe. shape(" AAA " , " ABA " , " AAA " );
28+ recipe. setIngredient(' A' , Material . WHITE_CONCRETE );
29+ recipe. setIngredient(' B' , Material . BLACK_STAINED_GLASS_PANE );
2830
2931 getServer(). addRecipe(recipe);
3032 }
3133}
3234```
3335
34- This recipe would require a diamond sword to be crafted with a diamond in the top row, a stick in
35- the middle row, and a diamond in the bottom row. The diamond sword would be in the middle column of
36- the bottom row. The result would look like this in the crafting grid:
36+ This recipe would require a television to be crafted with one black stained glass pane surrounded
37+ by white concrete. The result would look like this in the crafting grid:
3738
3839```
39- A
4040AAA
41- B
41+ ABA
42+ AAA
4243```
4344
4445::: note
0 commit comments