Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Draco18s

Members
  • Joined

  • Last visited

Everything posted by Draco18s

  1. Yes, because you're doing it wrong. Eclipse will tell you "hey, that function isn't overriding anything." Which should prompt you go to find the method you're trying to override and make sure you have correctly copied the method signature. Also, you don't call the function yourself.
  2. You have to store the information in the ItemStack's nbt tag, because the Item class is a singleton. Every field is effectively static.
  3. NO CODE AND NO ERROR SUPPLIED, NO HELP POSSIBLE. YOU ARE USING 1.6.4, EVEN FEWER PEOPLE WILL HELP BECAUSE ITS OLD AS FUCK.
  4. A TileEntity is not needed here. This block doesn't need to store any information and isn't even using metadata. It's simply trying to replace a neighboring block with itself. I don't know why it's not working, but I also haven't messed with 1.8
  5. I know why the message exists, but is it reporting itself, then? I'm just amused that some part of FML is being detected and not ignored.
  6. Is that the one that every time I run in dev I get a "package found in net.minecraft.src! This is bad and should be reported!" message?
  7. Are you including the modid the block is registered with? It's kind of important.
  8. a) the block doesn't exist (the mod is not loaded) b) you supplied the wrong name
  9. Frankly, your code is a mess and I can't figure out what it's doing. btw, while (spellDone[spell] || spell == prevSpell); if spell == prevSpell, then spellDone[spell] is going to also be true, it's a useless conditional.
  10. Gosh, have you tried printing or testing the values of b and replacement to make sure that they aren't null before you get their unlocalized name?
  11. Pretty sure that if you take a blockpos at (x,y,z) and add (x,y+1,z) to it you'll have (2x,2y+1,2z) not (x,y+1,z).
  12. So here's your basic problem: Every entity has its own spawnNumber and is allowed to spawn 10 more copies of itself. Each of which has its own spawnNumber and is allowed to spawn 10 more copies of itself. Each of which has its own spawnNumber and is allowed to spawn 10 more copies of itself. Each of which has its own spawnNumber and is allowed to spawn 10 more copies of itself. Each of which has its own spawnNumber and is allowed to spawn 10 more copies of itself. Each of which has its own spawnNumber and is allowed to spawn 10 more copies of itself. Each of which has its own spawnNumber and is allowed to spawn 10 more copies of itself. Each of which has its own spawnNumber and is allowed to spawn 10 more copies of itself. Each of which has its own spawnNumber and is allowed to spawn 10 more copies of itself. Each of which has its own spawnNumber and is allowed to spawn 10 more copies of itself. Each of which has its own spawnNumber and is allowed to spawn 10 more copies of itself. Each of which has its own spawnNumber and is allowed to spawn 10 more copies of itself. Each of which has its own spawnNumber and is allowed to spawn 10 more copies of itself.
  13. Regeneration regenerates 1 (Half Heart) over time every 50 ticks. Which means you need to apply the effect, wait for it to tick away, then re-apply it. Constantly setting the time to 5 ticks isn't going to work (Regen 3 takes 12 ticks). Second, make sure that you apply the effect on the server.
  14. You are extending BlockReed. BlockReed has a block state property called "Age". Your block now has a block state property called "Age". Your json isn't defining how that property should be handled.
  15. note: version numbers can be a range, too. E.g. [1.0.0,] meaning "1.0.0 and later" (note the comma) or [1.0.0,2.0.0] meaning "1.0.0 to 2.0.0" (inclusive).
  16. Which will immediately crash a dedicated server.
  17. Please don't use marquee text. It's awful. Ok, so, as far as I can tell, you're trying to reference the singleplayer...player, which you should Never Do. Never ever ever. While this was fine in 1.2.5, you can no longer do that, because "single player" is actually "multiplayer with one connected player, running locally." Second, minecraft.thePlayer, "minecraft" here is not a variable anywhere in your class, you never declare it. You have a EntityPlayer entityplayer and a Minecraft theGame , but no minecraft . Also, you need to get rid of both of those. Treat single player as multiplayer and it'll work out. What's the clostest connected player in a single player world? The only player available: the single player. Third, I can't figure out when f will ever be larger than 16. Or hell, larger than 0. It looks like f is defined as the entity's physical height minus it's position above the void, so unless it's like 16 blocks tall, or more, f will never be greater than 16.
  18. It's good practice to split the declaration and assignment, as with 1.8 (IIRC) you must do it that way. Also, your second codeblock won't compile. public static Item tutorialitem(); //this line won't compile public static Block tutorialblock = new tutorialblock(Material.rock); //you left the = new...() part here, you should have removed it @EventHandler public void preInit(FMLPreInitializationEvent event) { tutorialitem = new tutorialitem(); tutorialblock = new tutorialblock(Material.rock) //missing semicolon; second definition GameRegistry.registerBlock(tutorialblock, "tutorialblock"); GameRegistry.registerItem(tutorialitem, "tutorialitem"); }
  19. Don't cast to EntityLiving, cast to EntityLivingBase. The class hierarchy got altered a while back.
  20. Or close it because it's a mod problem. Like maps not functioning correctly in dimensions above 127.
  21. Cough java.lang.RuntimeException: class com.atimmeh33.timmehutils.blocks.TileEntityCarbonPressurizer is missing a mapping! This is a bug! You didn't register your TE
  22. Yes, yes they are, as I discovered one night.
  23. That's called "view distance culling."

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.