Jump to content

larsgerrits

Members
  • Posts

    3462
  • Joined

  • Last visited

  • Days Won

    17

Everything posted by larsgerrits

  1. ScaledResolution has a constructor taking a Minecraft parameter. You can use it to create your own.
  2. Your ItemStack variables in your TileEntity are static, which means they are shared between every instance of the TileEntity.
  3. Well, he could use the tick event to count ticks, and do something like every 10-20 seconds, then go through World#loadedTileEntityList for each inventory loaded in the world. Might still be expensive, but better than doing it every tick for the entire world.
  4. No, Item#onUpdate only works in your player inventory. You'd have to use a tick event to update the Item in the world or inside blocks.
  5. Item#onUpdate is called every tick while the Item is in your inventory.
  6. Override Block#getDrops to return a List<ItemStack> containing an ItemStack with the NBT properties of the TileEntity. Be sure to delay the breaking of the Block by overriding Block#removedByPlayer to return true if willHarvest is true, and else return the result of the super method. Look at BlockFlowerPot for an example. Then in Block#onBlockPlacedBy set the NBT of the TIleEntity to the NBT of the ItemStack.
  7. I had this issue on another site once, and it resolved once I removed a Chrome extension related to pop-ups. Do you maybe have a Firefox (?) extension installed blocking it? Or try disabling each extension one-by-one and see if that fixes it.
  8. That'll just delay the spamming by 24 hours, and would be pretty annoying if you registered because you want help, and then have to wait 24 hours to make a topic. There shouldn't be any foreign-language posts here, as this is an English forum, and everybody should talk English here, so no need to worry about that. But I agree with you on the subject having to be ASCII only, however, the spammers will just change their posts to one with an ASCII-only subject. I agree, there have been spammers spamming posts on the forum for a couple of days in a row now, and when there isn't a mod/admin online to ban/remove them, they'll stay there until one comes online.
  9. Dividing by 4 to get to the middle? Sounds a bit weird to me. Show the code where you try to do this.
  10. Minecraft 1 7.10 is no longer supported by Forge. This post will most likely get locked when a mod/admin comes online.
  11. This. Minecraft 1.6.4 is no longer supported by Forge, and this post will get closed when a mod/admin comes online.
  12. Does your block have 4 facings (like the furnace) or 6 (like the piston)? If you have 4 facings, you can add/subtract 4 to get the other value, if you need 6 you'd have to add 8. Or better, use bitwise operators (look at BlockOldLeaves for an example in Block#getStateFromMeta and Block#getMetaFromState).
  13. Then he should've asked that in his original post.
  14. Don't register your ItemStack TESR in your renderTileEntityAt... Register it once in your ClientProxy, then inside the else block render the inventory block.
  15. A missing mcmod.info file isn't an error, so it should work fine. If it's something else that's wrong, what exactly is that?
  16. If you don't have any mods that add new things, you should be fine switching between the two. But you should always make a backup before switching just in case.
  17. Something is adding -Xmx256M to your JVM options, probably the JAVA_OPTIONS environment variable. Delete it. Edit: wow...
  18. You downloaded JEI for Minecraft 1.10.2, while you are playing 1.11.2. Minecraft mods usually only work for 1 Minecraft version. JEI has a 1.11.2 version, you have to download that one for it to work.
  19. Since the migration, there's been a lot of spammers spamming the forums with spam posts. Does this have to do with the migration or is this just coincidental? Is there anything you could do to reduce the amount of spamming?
  20. 1.7.10 is no longer supported by Forge. This will most likely get closed once a mod/admin comes online.
  21. http://mcforge.readthedocs.io/en/latest/utilities/oredictionary/
  22. http://mcforge.readthedocs.io/en/latest/datastorage/capabilities/ Read it. Understand it. Implement it.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.