Mega Tree API

Code generator

Fill the form, get a compiling Mono plugin, the csproj block and the cost table your players will actually pay.

Everything happens in your browser - nothing is uploaded. What you type is kept in localStorage so the page survives a refresh.

The output targets Mono and BepInEx 5: BaseUnityPlugin, Awake(), netstandard2.1. If you paste it into a Supermarket Simulator project it will not compile, and that is on purpose.

Your mod

The same string as in [BepInPlugin].
Shown inside the Mods tab. Cut at 18 characters.

The node

Lower case, prefix.name. Never change it after release.
Column position inside your sub-tab.
0 to 1. Leave at 0.5 for the tree default - the line is only emitted when you change it.

Price

1.8 is the API default.
What the game itself charges

The player starts with $400. A store expansion is $600 at level 1 and about $80,000 for the whole thing - the largest sink in the game. Mega Tree's own cheapest line starts at $250 a level, and its most expensive node is $60,000.

Icon and text

See them rendered on Icons.
C# interpolation. {lvl} is the 1-based level.

Gate (optional)

Scale

This is the game's own player level, the one that gates hiring and store growth. Asking for a number nobody reaches hides your node from nearly everyone. Leave both at 0 for no requirement at all - that is the default and it is a perfectly good choice.


Checks

Output

The effect is still yours

The generated plugin compiles and puts a node in the tree, but the bottom of the file is a commented-out patch, not a working effect. What the level does is the one part no generator can write for you. Events covers the three shapes it can take.