Allow more then 1 output from modified compressor mod code

User avatar
Christian9
Member
 
Posts: 273
Joined: Fri Sep 19, 2014 20:29
In-game: Christian9

Allow more then 1 output from modified compressor mod code

by Christian9 » Wed Dec 14, 2016 03:47

Azekill_diablo allowed me to use a modified version of his compressor mod code in my mod and I'm trying to make it so it can make more then 1 kind of item, I've tried lots of different things but it still doesn't work. I've came to this now

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
   local sand_count = inv:get_stack('dst', 1):get_count()
   inv:set_stack('dst', 1, 'dino_trex:egg_1' )
        or
   inv:set_stack('dst', 1, 'dino_trex:egg_2' )
end


If anyone can help that would be awesome

Thanks in advance
"I dreamed of becoming a scientist, in general, and a paleontologist, in particular, ever since the Tyrannosaurus skeleton awed and scared me" - Steven Jay Gould

My Deviantart Page
My Website
 

Return to Modding Discussion

Who is online

Users browsing this forum: No registered users and 57 guests

cron