So hey, I'm trying to make an adventure mode reaction that allows for the creation of glass. Anyone know how to require a bag of sand as a reagent? Misc_Powder seems to be the way to go, but I'm not sure where to go from there.
Look at the reactions for making glass, I believe some of them are in the raws somewhere as opposed to hardcoded
Sand reactions are hard-coded, but what the reactions require is
[REAGENT:sand:150:POWDER_MISC:NONE:INORGANIC:(sand)]
[REAGENT:sandbag:NONE:NONE:NONE:NONE][BAG][PRESERVE_REAGENT]
[CONTAINS:sand]
[DOES_NOT_DETERMINE_PRODUCT_AMOUNT]
[FUEL]
and that produces green glass (raw/items) there is no raws for glass production
EDIT:
this should help with the PRODUCT part
Material Tokens
0 INORGANIC Placeholder for rock, used in arena mode. When given a subtype, selects a user-defined inorganic material.
1 AMBER Amber
2 CORAL Coral
3 GLASS_GREEN Green glass
4 GLASS_CLEAR Clear glass
5 GLASS_CRYSTAL Crystal glass
6 WATER Water, when placed in buckets or when mining out ice.
7 COAL Coal - subtype is either COKE or CHARCOAL.
8 POTASH Potash
9 ASH Ash
10 PEARLASH Pearlash
11 LYE Lye
12 MUD Mud
13 VOMIT Vomit
14 SALT Salt
15 FILTH_B Filth (brown, solid)
16 FILTH_Y Filth (yellow, liquid)
17 UNKNOWN_SUBSTANCE Unknown substance (white, liquid)
18 GRIME Grime
so this would make 1 green glass bolt (in theory) and function as the hardcoded reaction would:
[REAGENT:sand:150:POWDER_MISC:NONE:INORGANIC:(sand)]
[REAGENT:sandbag:NONE:NONE:NONE:NONE][BAG][PRESERVE_REAGENT]
[CONTAINS:sand]
[DOES_NOT_DETERMINE_PRODUCT_AMOUNT]
[PRODUCT:100:1:AMMO:ITEM_AMMO_BOLTS:GLASS_GREEN:NONE] (not sure if it will accept NONE at the end for GLASS_GREEEN)
[FUEL]