minable result with multiple items

Place to get help with not working mods / modding interface.
Post Reply
ghosrath
Burner Inserter
Burner Inserter
Posts: 13
Joined: Mon Jul 28, 2014 8:56 am
Contact:

minable result with multiple items

Post by ghosrath »

Hi guys,

I just started modding, and i want to add a fruit-tree type of entity to the game. Mining this tree type should give you both raw wood and the fruit item.
I have added my entity to the game, but cannot find out if (and how) i can have mining one tree give you multiple items

is this at all possible? if so, how can i do this?

Thanks in advance!
Ghosrath

User avatar
L0771
Filter Inserter
Filter Inserter
Posts: 516
Joined: Tue Jan 14, 2014 1:51 pm
Contact:

Re: minable result with multiple items

Post by L0771 »

minable property:

Code: Select all

	minable =
	{
	  mining_particle = "wooden-particle",
	  mining_time = 1,
		results = 
		{
			{type="item", name="raw-wood", amount=5},
			{type="item", name="fruit", amount=1},
		},
	},
Last edited by L0771 on Mon Dec 15, 2014 5:17 pm, edited 1 time in total.

LordFedora
Filter Inserter
Filter Inserter
Posts: 310
Joined: Fri Nov 07, 2014 3:46 am
Contact:

Re: minable result with multiple items

Post by LordFedora »

Not understanding modding very well, why did you have mining_time twice?

User avatar
L0771
Filter Inserter
Filter Inserter
Posts: 516
Joined: Tue Jan 14, 2014 1:51 pm
Contact:

Re: minable result with multiple items

Post by L0771 »

LordFedora wrote:Not understanding modding very well, why did you have mining_time twice?
Chose one
  • Sleppy
  • Wrote in the post
  • I'm special
I'm sorry, i don't know :?

Thanks for the correction

ghosrath
Burner Inserter
Burner Inserter
Posts: 13
Joined: Mon Jul 28, 2014 8:56 am
Contact:

Re: minable result with multiple items

Post by ghosrath »

Thanks!!

Post Reply

Return to “Modding help”