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. There's a field for that. But I'll point out that EntityItems have no hitpoints so as soon as they take damage, they die.
  2. http://www.minecraftforge.net/forum/index.php?topic=44001.0
  3. This is also known as "actually reading the README file"
  4. Did you run gradlew setupDecompWorkspace eclipse ?
  5. PmsEnabled would be better named togglePMs
  6. Ah for fuck's sake. That's your StandRecipeHandler.class, not your recipe's entity class. You want to reference the field, just like any other property of your recipe. StandRecipeHandler.sacrifice.isInstance(...)
  7. Ignore it. You aren't writing a method override in a subclass, so you don't need it.
  8. You can't just rewrite existing methods or add methods to existing classes. And creating a custom mob won't really solve your problem either. What you should do is subscribe to the LivingUpdateEvent and use the zombie code to set other mobs on fire.
  9. The class of the entity you are interested in. e.g. EntityLivingBase.class
  10. You want a class reference. If you want to insure that it is an EntityLivingBase, your "add this recipe" method accepts Class<? extends EntityLivingBase>
  11. PlentifulMiscAPI.addStandRecipe(new ItemStack, blah blah blah..., chicken); "Chicken?" Chicken? Where is this variable defined? All you did is declare it. Why are you (trying to) pass a reference to a specific entity? If you want a recipe you need to pass something generic. Like, say, a class. PlentifulMiscAPI.addStandRecipe(new ItemStack, blah blah blah..., EntityChicken.class); Then you can check if the specific entity is the same type.
  12. Screenshot is a screenshot of you writing your post, not code.
  13. You're still using a wonky for-loop with an iterator.
  14. Also, why do you need an internal version of the method anyway? Especially one that is public (i.e. externally visible)?
  15. You can't modify a list while you are iterating over it. If you want to remove an item from the list safely, use it.remove()
  16. or for(BlockPos p : it) { }
  17. escapemc_ore = new escapemc_ore(...) is the block of your block. You need to find where you call new ItemBlock(escapemc_ore) and add .setRegistryName(...) to that.
  18. You didn't set a registry name for the Item form of your Block. You must do this.
  19. Because it's old. Its not needed any more. The new way is better. And no, that change won't fix your problem, but it's still better.
  20. GameRegistry.register(new ItemBlock(escapemc_ore), escapemc_ore.getRegistryName()); As you've already set the registry name, you don't need to pass it. GameRegistry.register(new ItemBlock(escapemc_ore)); is sufficient.
  21. Don't implement ITileEntityProvider, just override the hasTileEntity and getTileEntity methods that are already present in the Block class. Also, why the fuck are you doing this: tile.writeToNBT(tag); int color = tag.getInteger("color"); return color + 10000; You have this available to you: public int getColor() { return this.color; }
  22. I think that that is unfortunately due to Minecraft's approach to transparent rendering passes. Ice and water do that all the time.
  23. Yes, we know. Diesieben07 has pointed out the problems with your current code. You need to fix those.

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.