Page 1 of 1

minable result with multiple items

Posted: Mon Dec 15, 2014 4:13 pm
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

Re: minable result with multiple items

Posted: Mon Dec 15, 2014 4:59 pm
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},
		},
	},

Re: minable result with multiple items

Posted: Mon Dec 15, 2014 5:10 pm
by LordFedora
Not understanding modding very well, why did you have mining_time twice?

Re: minable result with multiple items

Posted: Mon Dec 15, 2014 5:15 pm
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

Re: minable result with multiple items

Posted: Tue Dec 16, 2014 8:54 am
by ghosrath
Thanks!!