Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Need help creating new fruit and metal thread  (Read 803 times)

Manzeenan

  • Bay Watcher
  • [SLOWLEARNER]
    • View Profile
Need help creating new fruit and metal thread
« on: December 31, 2014, 04:59:49 am »

Hello all

Trying to figure out how to mod new fruits onto trees, I want to make a fruit for the bloodthorn, Boodfruit from which Hemafiber, a material that is better than leather but less than iron, maybe copper (unsure how this works) can be extracted. I can make the reactions to smelt Hemafiber thread into wafers and 10 wafers plus 1 flux stone into 1 iron bar, a lot of work but hey, renewable iron!

Main problems
1.   Dont know how to mod trees
2.   Dont know how to make new materials or determine their values

Made a thread quite a while ago but couldn't get help I'd really appreciate any help I want to become a modder
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Need help creating new fruit and metal thread
« Reply #1 on: December 31, 2014, 05:45:17 am »

1. look at other trees with fruits
2. look at other materials, for STRAIN_AT_YIELD lower is better, for YIELD and FRACTURE higher is better, YIELD and FRACTURE

Button

  • Bay Watcher
  • Plants Specialist
    • View Profile
Re: Need help creating new fruit and metal thread
« Reply #2 on: January 05, 2015, 01:48:35 pm »

Here's what you need to know about modding fruit onto trees:

  • The fruit must be made out of a 'plant' material. You can't pick thread or seeds or metal or eggs straight off the trees, your gatherer will just ignore growths made out of these materials. You'll need a separate reaction to convert that growth into a thread.
  • The plant material in question must have the tag [STOCKPILE_PLANT_GROWTH], otherwise your gatherer will just ignore it.

Other than these two things - which are the cause of a lot of the vanilla plant bugs - just look at an existing fruit tree raw definition and pattern your bloodthorn additions on that.
Logged
I used to work on Modest Mod and Plant Fixes.

Always assume I'm not seriously back

Manzeenan

  • Bay Watcher
  • [SLOWLEARNER]
    • View Profile
Re: Need help creating new fruit and metal thread
« Reply #3 on: January 05, 2015, 01:50:05 pm »

Thanks, that was crucial
Logged