Scrap part syntax - Goufalite/OreToParts GitHub Wiki
The ModuleScrap
is an independant module which allows transforming parts to ore, or even just destroy them!
The scrapMode
has three values:
- always : destroyes the part and tries to fill all needed ore at maximum cost
- partial : tries to fill all needed ore but blocks if a resource container will overflow
- block : checks if the recycled resources can be stored
If you simply want to get rid of a part, you can declare a ModuleScrap module on a part with inventory, set the scrapMode to always
and just put a dummy inexisting resource:
@PART[myPart]:HAS[@MODULE[ModuleInventoryPart]]:NEEDS[OreToParts]
{
%MODULE[ModuleScrap]
{
name = ModuleScrap
scrapMode = always
RESOURCESLIST
{
RESOURCE_NEEDED
{
name = DummyRessource
ratio = 1
}
}
}
}