Page 1 of 1

Random drop from blocks (help please)

PostPosted: Thu May 16, 2013 17:35
by Gunlexify
Lets say I want my block to drop from 1 to 4 of something, how do I do that?

PostPosted: Thu May 16, 2013 18:03
by Evergreen
Gunlexify wrote:Lets say I want my block to drop from 1 to 4 of something, how do I do that?

Please put this in the modding questions topic. Here is the link.

PostPosted: Thu May 16, 2013 18:36
by PilzAdam
https://github.com/PilzAdam/farming/blob/master/wheat.lua#L72
Here is how I handle the drops of wheat in my farming mod.

PostPosted: Thu May 16, 2013 18:57
by Gunlexify
PilzAdam wrote:https://github.com/PilzAdam/farming/blob/master/wheat.lua#L72
Here is how I handle the drops of wheat in my farming mod.


Thank you

PostPosted: Thu May 16, 2013 19:17
by tinoesroho
... the alternative is to use the sapling drop code from default.lua. Copied, modded it, used it for a block.

PostPosted: Thu May 16, 2013 20:05
by dannydanger
shouldn't this be in modeling general