codetaylor / pyrotech-1.12

An early game mod with new primitive devices, combustion machines, smelting mechanics, storage options, tools, torches, advancements, and absolutely zero GUIs -- with exception to the substantially complete, mostly illustrated, and charred guidebook.
https://pyrotech.readthedocs.io/en/latest/
Other
52 stars 19 forks source link

Biomes O' Plenty Foliage Compatibility #336

Closed mewj closed 3 years ago

mewj commented 3 years ago

Biomes O' Plenty adds different grass heights, medium and short grass, which do not drop tubers or plant fibers. Although not that big of an issue, could it possible to add a config option to change which blocks drop plant fibers?

codetaylor commented 3 years ago

This can already be configured using Dropt.

Pyrotech uses Dropt under the hood to alter some block drops: https://pyrotech.readthedocs.io/en/latest/droptrules/

If you disable the grass_tall rules in the config, you can write your own rule using Dropt.

Dropt has an export command /dropt export that will export all rules in memory to a .json file. Once exported, you can dig through that file to find Pyrotech's tall grass rule and use that as a template for your own.

There's also this example: https://dropt.readthedocs.io/en/latest/examples/grass_drops/

SenZ01 commented 3 years ago

If you need a script that lets you drop plantfiber by breaking grass just hit me up on the codetaylor discord in the "#dropt" channel!