Random drop from blocks (help please)
Random drop from blocks (help please)
Lets say I want my block to drop from 1 to 4 of something, how do I do that?
Sorry for my BAD english!
Just discovered that I realy SHOULD look at the doc/lua_api.txt file...
Just discovered that I realy SHOULD look at the doc/lua_api.txt file...
- Evergreen
- Member
- Posts: 2135
- Joined: Sun Jan 06, 2013 01:22
- GitHub: 4Evergreen4
- IRC: EvergreenTree
- In-game: Evergreen
- Location: A forest in the midwest
- Contact:
Please put this in the modding questions topic. Here is the link.Gunlexify wrote:Lets say I want my block to drop from 1 to 4 of something, how do I do that?
Back from the dead!
- PilzAdam
- Member
- Posts: 4026
- Joined: Fri Jul 20, 2012 16:19
- GitHub: PilzAdam
- IRC: PilzAdam
- Location: Germany
https://github.com/PilzAdam/farming/blo ... at.lua#L72
Here is how I handle the drops of wheat in my farming mod.
Here is how I handle the drops of wheat in my farming mod.
Last edited by PilzAdam on Thu May 16, 2013 18:37, edited 1 time in total.
Thank youPilzAdam wrote:https://github.com/PilzAdam/farming/blo ... at.lua#L72
Here is how I handle the drops of wheat in my farming mod.
Sorry for my BAD english!
Just discovered that I realy SHOULD look at the doc/lua_api.txt file...
Just discovered that I realy SHOULD look at the doc/lua_api.txt file...
-
- Member
- Posts: 570
- Joined: Fri Feb 17, 2012 21:55
- Location: Canada
... the alternative is to use the sapling drop code from default.lua. Copied, modded it, used it for a block.
We are what we create.
I tinker and occasionally make (lousy) mods. Currently building an MMO subgame and updating mods. Pirate Party of Canada member. Sporadic author. 21 years old.
My github:
https://github.com/tinoesroho/
I tinker and occasionally make (lousy) mods. Currently building an MMO subgame and updating mods. Pirate Party of Canada member. Sporadic author. 21 years old.
My github:
https://github.com/tinoesroho/
-
- Member
- Posts: 40
- Joined: Mon May 06, 2013 23:55
Who is online
Users browsing this forum: apercy and 15 guests