Posted July 20, 201411 yr Wow, my Fryer has lots of bugs Disappears when I put the valid things in it. The block is destroyed with no item. BTW it's kinda urgent. The deadline is Wednesday... Main Class http://pastebin.com/qk4MD45s TileEntitySmallFryer http://pastebin.com/NTnmbRKj Small Fryer Block Class http://pastebin.com/Ev0LXpTN
July 22, 201411 yr override shouldRefresh() in your tile entity and check if the block is not one of your furnace blocks. Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! | mah twitter This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.
July 22, 201411 yr Author Sorry, I'm not using the shouldRefresh() method. I mostly copied the vanilla code. I do have the updateEntity() in tile entity and a updateBlockState() method on the block class.
July 22, 201411 yr Sorry, I'm not using the shouldRefresh() method. I mostly copied the vanilla code. I do have the updateEntity() in tile entity and a updateBlockState() method on the block class. I know you don't. That's why I said you should override it. Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! | mah twitter This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.
July 22, 201411 yr Author Sorry, I'm really stupid... I forgot to register the block with GameRegistry.regsiterBlock Sorry...
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.