Skip 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. PmsEnabled would be better named togglePMs
  2. 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(...)
  3. Ignore it. You aren't writing a method override in a subclass, so you don't need it.
  4. 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.
  5. The class of the entity you are interested in. e.g. EntityLivingBase.class
  6. You want a class reference. If you want to insure that it is an EntityLivingBase, your "add this recipe" method accepts Class<? extends EntityLivingBase>
  7. 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.
  8. Screenshot is a screenshot of you writing your post, not code.
  9. You're still using a wonky for-loop with an iterator.
  10. Also, why do you need an internal version of the method anyway? Especially one that is public (i.e. externally visible)?
  11. 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()
  12. or for(BlockPos p : it) { }
  13. 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.
  14. You didn't set a registry name for the Item form of your Block. You must do this.
  15. 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.
  16. 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.
  17. 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; }
  18. I think that that is unfortunately due to Minecraft's approach to transparent rendering passes. Ice and water do that all the time.
  19. Yes, we know. Diesieben07 has pointed out the problems with your current code. You need to fix those.
  20. I'd add Capabilities in there between Block with Entity and Custom Crafting table. Which necessitates the Packets.
  21. Still abstract, still has a bunch of methods that are tacked on without apparent purpose, still didn't answer diesieben07's question.
  22. You see this bit in your blockstate file? "model": "cube_all" What do you suppose that does and what you might do to change it such that your model is used instead?
  23. I had to logout/login at that point, as the client was unable to keep traveling farther. It was busy trying to fall.
  24. He is not checking equality. Ah, you are correct. But yes, still nonsense.

Important Information

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

Account

Navigation

Search

Search

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.