Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: trying to mod a new plant  (Read 531 times)

Criptfeind

  • Bay Watcher
    • View Profile
trying to mod a new plant
« on: June 08, 2009, 06:35:21 pm »

i am trying to mod a plant that grows tower caps that can than be harvested to make tower cap logs. the problem is this the first mod i wrote my self, and i don't know what to do.

all i have so far is

[MATGLOSS_PLANT:MUSHROOM_TOWER_CAP]
[TILE:6][COLOR:5:0:0]
[NAME:tower cap][NAME_PLURAL:tower caps]
[GROWDUR:1008][VALUE:2]
[EXTRACT:tower cap log:1:0:0]
[SEEDNAME:tower cap spawn][SEED:4:0:1]
[GENPOWER:2]
[SPRING][SUMMER][AUTUMN][WINTER]
[FREQUENCY:100]
[CLUSTERSIZE:5]
[PREFSTRING:rounded tops]
[WET][DRY][BIOME:SUBTERRANEAN_WATER]

i dont think this is going to do it.
Logged

Taritus

  • Bay Watcher
    • View Profile
Re: trying to mod a new plant
« Reply #1 on: June 08, 2009, 07:04:11 pm »

Yeah, that's not how it works.  Extacts =\= logs.  You'd need a reaction to change a harvested form of this into an actual tower cap log.
Logged



Criptfeind

  • Bay Watcher
    • View Profile
Re: trying to mod a new plant
« Reply #2 on: June 08, 2009, 11:53:45 pm »

ok now i am really lost... looking at the raws... i see some stuff i don't under stand, and i come up with this.

will this work?

[MATGLOSS_PLANT:MUSHROOM_TOWER_CAP_PLANT]
[TILE:6][COLOR:5:0:0]
[NAME:tower cap plant][NAME_PLURAL:tower cap plants]
[GROWDUR:1008][VALUE:2]
[SEEDNAME:tower cap spawn][SEED:4:0:1]
[GENPOWER:2]
[SPRING][SUMMER][AUTUMN][WINTER]
[FREQUENCY:100]
[CLUSTERSIZE:5]
[PREFSTRING:thick trunks]
[WET][DRY][BIOME:SUBTERRANEAN_WATER]
and
[REACTION:MUSHROOM_TOWER_CAP_PLANT_TO_LOG]
[NAME:make log from tower cap]
[SMELTER]
[REAGENT:1:PLANT:NO_SUBTYPE:PLANT:MUSHROOM_TOWER_CAP_PLANT]
[PRODUCT:100:1:WOOD:NO_SUBTYPE:WOOD:GIANT_SHROOM]

it still looks odd to me.
Logged

FluffyToast J

  • Bay Watcher
    • View Profile
Re: trying to mod a new plant
« Reply #3 on: June 09, 2009, 04:27:15 am »

That looks right to me. Although I dont really know, myself, it looks right from cross referencing from native reactions and plants.
Logged

ein

  • Bay Watcher
  • 勝利の女神はここよ~ 早く捕まえてぇ~
    • View Profile
Re: trying to mod a new plant
« Reply #4 on: June 09, 2009, 06:16:00 am »

Wow, I can't believe I only now noticed that tower caps are in matgloss_wood as GIANT_SHROOM.

Blakmane

  • Bay Watcher
    • View Profile
Re: trying to mod a new plant
« Reply #5 on: June 09, 2009, 06:16:09 am »

Your reaction should be:


[REACTION:MUSHROOM_TOWER_CAP_PLANT_TO_LOG]
[NAME:make log from tower cap]
[SMELTER]
[REAGENT:1:PLANT:NO_SUBTYPE:MUSHROOM_TOWER_CAP_PLANT:NO_MATGLOSS]
[PRODUCT:100:1:WOOD:NO_SUBTYPE:WOOD:GIANT_SHROOM]
Logged

sunshaker

  • Bay Watcher
    • View Profile
Re: trying to mod a new plant
« Reply #6 on: June 09, 2009, 06:34:43 am »

Don't forget to make seeds.

[PRODUCT:100:2:SEEDS:NONE:MUSHROOM_TOWER_CAP_PLANT:NONE]

Yes that makes two seeds not one, but when you grow plants the stacks of X make X seeds when processed. Even if you make a stack of 11 MUSHROOM_TOWER_CAP_PLANT you will only ever convert it into one (1) log.
Logged