Generators
Enabling Generators
To enable generators, open your Config UI, go to "Features & Experiments" and enable "Generators" (should be near the bottom)
Creating Generators
pre-v4.2.3 method: Grab an item called "Generator Editor" and interact with the block you want to turn into a generator <--- WILL LIKELY BE DEPRECATED SOON
post-v4.2.3 method: Create a generator in the generator config and type the block ID (example: dirt, minecraft:stone, stone, minecraft:dirt, etc.)
The respawn time must be in seconds (post v4.2.3 allows for decimal support, so you can do something like 0.5 seconds. this may cause some inaccuracies since minecraft counts time in ticks)
Scriptevent: Must be unique, and is used to get the item via commands if needed
The rest of the options are cosmetic and should be pretty self explanatory
Getting generators
Method 1 (UI): Open the generator in the generator config, and press the "give" button
Method 2 (Commands): Do /scriptevent leaf:give_gen <scriptevent> Do not include brackets
If needed, you may need to execute it on a player using /execute