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.

Animefan8888

Forge Modder
  • Joined

  • Last visited

Everything posted by Animefan8888

  1. If you have many blocks that need to rotate and you want to store them all in one block using metadata/blockstates the max different "blocks" you could have would be 4.
  2. One Block can have 16 meta data, things that rotate like the furnace use four of those metadata. *Edit there is no limit on how many Properties you can have on one block though.
  3. You have a max metadata limit of 16, four different faces.
  4. Something like this will require an event handler this way. // Add the Recipe GameRegistry.addShapelessRecipe(new ItemStack(Items.IRON_PICKAXE), new Object[]{Items.IRON_INGOT, new ItemStack(Items.IRON_PICKAXE, 1, OreDictionary.WILDCARD_VALUE)}); // Register Event Class MinecraftForge.EVENT_BUS.register(new EventHandlerClass()); // Then handle the repairing @SubscribeEvent public void onCrafting(ItemCraftedEvent event) { // TODO Handle Item Repair here. }
  5. EntityConstructedEvent is a forge hook. Event Handlers Cool Alias's tutorial http://www.minecraftforum.net/forums/mapping-and-modding/mapping-and-modding-tutorials/1571567-forge-1-6-4-1-8-eventhandler-and That will not work that would set all motion to 0 and change the the rotation to 0. Look into ItemBow there are two events called there.
  6. Probably has to do with you initializing the tool material after initializing the tools.
  7. You would have to make an addon, so you need to talk to the creator of custom npcs
  8. First you would need to go through and and basically copy EntityArrow but you would have to make the edits for gravity yourself there is a way to check if an ItemStack has an enchantment and the instantly hit you could use MovingObjectPosition to get the coords.
  9. If you are talking about using them for textures like mutisided blocks you use blockstates.
  10. So the way you have it set for the player will work however as far as I can tell onEntityCollidedWithBlock doesn't get called for Item Entities.
  11. You could read diesiebens 2nd response and that may answer your question. http://www.minecraftforge.net/forum/index.php/topic,39203.0/wap2.html
  12. I am sorry for the problem and I can't guarantee that you will get any help on here as Minecraft Forge only supports the 1.10 versions, though that may only be in this area.
  13. First wrong part of the Forum to post this on, this is where mod authors come to ask for help with code, and did you try looking on the internet for that specific error?
  14. Why are you casting the entity to an EntityPlayer if it is not an instanceof EntityPlayer ((EntityPlayerMP) entityIn).connection.setPlayerLocation(worldIn.getSpawnPoint().getX(), worldIn.getSpawnPoint().getY(), worldIn.getSpawnPoint().getZ(), entityIn.getRotationYawHead(), entityIn.getRotationYawHead()); entityIn.playSound(SoundEvents.ENTITY_ENDERPEARL_THROW, 0.5f, 0.5f); worldIn.spawnParticle(EnumParticleTypes.PORTAL, entityIn.getPosition().getX(), entityIn.getPosition().getY(), entityIn.getPosition().getZ(), 0, 0, 10, 0); }
  15. Could you post your whole block class or tell me what line 32 is in that class.
  16. Here is the documentation on Capabilities provided by forge. http://mcforge.readthedocs.io/en/latest/datastorage/capabilities/
  17. So what is happening when this code is triggered?
  18. I'm pretty sure you need to use the new JSON model system or IBakedModels. I have found no tutorials on either of these.
  19. In your GuiHandler do an instanceof check to see if the Capability you are getting is IPlayerCapability one.
  20. Just as long as it contains your modid.
  21. You are using IPlayerCapability in there.
  22. You should prefix unlocalised names with your modid, Forge does not do this. Registry names automatically have the modid prefixed to the passed name. Just a question, does forge even care about Unlocalized names any more? Aren't they just used to localize the name in game?
  23. No you do not, also it would happen in previous versions. Before the new registry if the mod authors didn't register it with there modid appended, but forge should now automatically append it. If you want them to be equal register them in the OreDictionary.
  24. In your Container and GUi you require IPlayerCapability and it will auto cast to that to try and give it that.

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.