User Tools

Site Tools


tutorial:lang

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
tutorial:lang [2022/05/27 15:52] solidblocktutorial:lang [2022/05/27 15:55] – [Adding a new line] solidblock
Line 76: Line 76:
 </code> </code>
 Then add the ''<yarn class_2588>'' parts individually: Then add the ''<yarn class_2588>'' parts individually:
-<yarncode java For versions 1.18.2 and below>+<yarncode java
 +// 1.18.2 and below:
 tooltip.add(new class_2588("item.tutorial.fabric_item.tooltip_1")); tooltip.add(new class_2588("item.tutorial.fabric_item.tooltip_1"));
 tooltip.add(new class_2588("item.tutorial.fabric_item.tooltip_2")); tooltip.add(new class_2588("item.tutorial.fabric_item.tooltip_2"));
-</yarncode> + 
-<yarncode java For versions since 1.19>+// 1.19 and later
 tooltip.add(Text.translatable("item.tutorial.fabric_item.tooltip_1")); tooltip.add(Text.translatable("item.tutorial.fabric_item.tooltip_1"));
 tooltip.add(Text.translatable("item.tutorial.fabric_item.tooltip_2")); tooltip.add(Text.translatable("item.tutorial.fabric_item.tooltip_2"));
tutorial/lang.txt · Last modified: 2024/02/06 10:26 by rawdiamondmc