User Tools

Site Tools


tutorial:gamerule

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
tutorial:gamerule [2025/12/09 18:59] – change variable name to match code above solacekairostutorial:gamerule [2025/12/09 19:10] (current) – 1.21.11 lang-file change for gamerules' identifier(s) solacekairos
Line 25: Line 25:
 ==== Translation ==== ==== Translation ====
  
-The registered gamerule now shows up untranslated in the game rule list, which can be opened in the world creation screen. +The registered gamerule shows up untranslated in the gamerule list, which can be opened in the world creation screen. 
-To translate the name, add a ''gamerule.gameruleName'' entry (see [[tutorial:lang|lang]] for more info):+To translate the name, add an entry in the lang-file (see [[tutorial:lang|lang]] for more info):
  
 <code json> <code json>
 { {
-  "gamerule.shouldPigsFly": "Pigs should fly"+  "gamerule.custom_mod_name.gamerule_name": "Gamerule Name"
 } }
 </code> </code>
tutorial/gamerule.txt · Last modified: 2025/12/09 19:10 by solacekairos