xml / plant havest for random%chane?

Started by ggkth, October 07, 2020, 09:50:49 AM

Previous topic - Next topic

ggkth


when harvest the plant...

      30% drop this = <harvestedThingDef>oneroot</harvestedThingDef>
      70% drop this = <harvestedThingDef>tworoot</harvestedThingDef>

how to set this in xml ???

and how write xml in animal egg case ?
30% lay a golden egg
70% lay a normal egg   sort of...

RawCode

not supported by vanilla, you must provide custom component class that will handle such declarations.