How to create a new module
November 14, 2021 ยท View on GitHub
It's actually relatively easy to create a new BetterF3 module.
Steps
- Open the Help Module while reading this in order to get a better understanding of what is happening.
- Create a class which extends
(me.cominixo.betterf3.modules.BaseModule) - Instantiate the class
- Set
defaultNameColoranddefaultValueColor - Set
nameColorandvalueColorto the same values - Add lines to the
lineslistlines.add(new me.cominixo.betterf3.utils.DebugLine({line name}));
- Set
- Create a
private void update(MinecraftClient)method- Place line information in here
- In your mod startup class, include
new {your module class}.init()to initialize your module - For every line you have added, add
text.betterf3.line.{line name}with the name of the line in your language file