Compostable items

Status
Migrated
Issue description

The compostable mod element type would be an item that can be used in a composter.

It would be a simple mod element type with just 2 parameters like fuel mod element type. This would save the work of having to use procedures to make it compostable or use a custom block.

The first parameter would be the item/block you select to be used, it would work for vanilla items or custom items/blocks.

The second parameter would be the chance for it to add a layer of compost in the block.

It would be between 0.01 and 1.00 in percentage with 0.01 being 1%chance and 1.00 being 100%chance (always adds a layer)

Seeds would have 0.30, and cacti would have 0.50 for example.

 

This was duplicated from a forum topic created BY THE SAME USER AS  who opened this issue to get faster support.

Link to the forum topic created by the same user.

Issue comments

I might add the option to check at the item if it is compostable, approach with mod element is a bit over the top I think.

I might look into the option to define fuels, compostable items, and such minor elements in a different way, not with mod elements.

I havent tested it but i think you can actually do that by making a procesure of ''when right clicked on block'' if is block a composter, then you could make it play the command to set the block at x y z of the composter, to the next composter phase, the problem is that i dont know how can you detect the composter's estate, but well hope that helped!