Posted October 3, 201312 yr Hey everyone, I've been wanting to make a block that slowly gathers an item. Since I'm new, I was wondering if any of you more experienced modders could give me a few tips. Should I implement a TickHandler with a very small chance to collect an item. And how do I keep track of the blocks over a restart? http://i.imgur.com/nVI9Y.png[/img]
October 3, 201312 yr If you want to store the gathered items in the block itself, you'll need a TileEntity which will also give you an update method which triggers every tick. If you want to spawn EntityItems on top of the block or something, you can set up timing of the block to get scheduled ticks, or if you want to gather at random intervals you could use the random ticks (which things like wheat use to do their grow logic). So no Tickhandler needed. Author of PneumaticCraft, MineChess, Minesweeper Mod and Sokoban Mod. Visit www.minemaarten.com to take a look at them.
October 3, 201312 yr Author Thanks! I'll try getting it to work when I get home. http://i.imgur.com/nVI9Y.png[/img]
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.