Can you mod to have weather affect your items?

Started by johnakers, July 22, 2014, 09:08:20 AM

Previous topic - Next topic

johnakers

I have been working on a mod that adds water to the game.

I've got it working for getting water from a cacti and using the water in cooking recipes.

Now I want to collect water when it rains.  My idea is to have colonist build a water collection point, aka bucket.

To make this work I believe it has to be like the potatoes.  They only grow in the sun so I would have to make the water "grow" during rainy weather.

I've been looking at the core xmls but I am a first time modder and drawing a blank here as far as it being done by xml alone.

Thanks in advance for your help

RawCode

not possible without custom type.

vanilla plants does not check for rain.

mrofa

All i do is clutter all around.

Architect

If you want, take a look at the lightning rod in BP+ using a decompiler such as ILSpy to see how to check the current game weather.
Check out BetterPower+ and all its derivatives by clicking the picture below.

It adds many new methods of power generation and uses for it, as well as other things such as incidents.