Minetweaker Help - Mod support

  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

Golrith

Over-Achiever
Trusted User
Nov 11, 2012
3,834
2,137
248
Trying to add a recipe to the Forestry Centrifuge, but getting an error of "Duration must be an int".

Wiki states:
modSupport.forestry.centrifuge.addRecipe([output1, output2, ...], input, time, [probability1, probability2, ...]);

My script:
modSupport.forestry.centrifuge.addRecipe([<5277>, <20062:3>, <20062:0>, <20062:1>, <20062:32>, <20062:33>], <13302>, 200, [95, 80,20,2,10,7]);

Does anyone have any experience of this? Posted on the MCF forums a few days back, still awaiting any sort of response. Posting here just in the chance someone knows :D
 

Evilshallwin

New Member
Jul 29, 2019
60
0
0
Trying to add a recipe to the Forestry Centrifuge, but getting an error of "Duration must be an int".

Wiki states:
modSupport.forestry.centrifuge.addRecipe([output1, output2, ...], input, time, [probability1, probability2, ...]);

My script:
modSupport.forestry.centrifuge.addRecipe([<5277>, <20062:3>, <20062:0>, <20062:1>, <20062:32>, <20062:33>], <13302>, 200, [95, 80,20,2,10,7]);

Does anyone have any experience of this? Posted on the MCF forums a few days back, still awaiting any sort of response. Posting here just in the chance someone knows :D

Duration must be an int is referring to the time variable, which you set to 200... That IS an int (an int is just an integer).

Try setting it to something else like 100 or 120 and seeing if that works. If not can you post the full crash log/error log?