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. Are you absolutely positive you are using forge 1.9.4.
  2. We need all of the code where you call it.
  3. Is that directed at other users on this thread, or me? If it is directed towards me, what do you mean? Yes it is direcred at you, he means what doesnt work?
  4. It now takes a EntityEquipmentType...
  5. Yeah but make sure that when you call getEntitiesWithinAABB(...) pass EntityLivingBase.class not Entity, because anything lower in the hierarchy is not damageable like that.
  6. Lol, yeah that will work.
  7. Not quite, you don't need to use iterator for a list at least if you are not removing anything. Instead a simple for loop would work. The one you have down there will not work mainly because you don't create a variable for the next iteration. Though if you ever need to use an iterator look at some vanilla examples one off the top of my head would be FurnaceRecipes#getSmeltingResult(...).
  8. Why don't you go back and look at what you may have copied this from. ItemSnowball to be more precise.
  9. Instead of modelMesher use ModelLoader.setCustomModelResourceLocation(...) in your preInit method.
  10. That is client side you can grab what there is client side and modify it, but since all data is saved and should be modified on the server. It will just be overriden by the server. Thus a packet is required.
  11. First EntityPlayerSP is not a variable you can use, you will need to send packets. This is a link to Diesieben07's tutorial on Packets. http://www.minecraftforge.net/forum/index.php?topic=20135.0
  12. Do you have access to a EntityPlayer variable? If so there is a thing called inventory in there.
  13. Any specific slot? Players hand? And input would be using a KeyHandler and possibly the KeyInputEvent
  14. Also you don't add your modid to the front of the name, for your ModelResourceLocation.
  15. It is most likely not a forge bug, it is most likely a Minecraft bug. Not sure if they will/can help.
  16. First instead of using the modelMesher you should use ModelLoader.setCustomModelResourceLocation(...) And post your model JSONs
  17. I doubt it is a bug because if you do round the players position, it would round down after being near the bottom. Just use pos.up () instead of pos. But use a print line to check if the code gets called with just one. Mainly because i dont know how onFallen works.
  18. Go learn Java, then you will know.
  19. You loop through the list using a for loop.
  20. With one if statement &&'s to use more than one boolean value. Also world.getEntitiesWithinAABB(...) should return a List<Entity> not a single Entity also instead of player.getClass() use EntityLivingBase.class. *Edit Also to damage an entity living.attackEntityFromDamageSource(...)
  21. To detect if they are wearing the armor use onArmorTick and check if the players armor slots are of the armor Item. And I don't think there is a collision event so i would issue a pull request on forges github. Other thatn that you could use PlayerTickEvent and manually check if the player collides with another player.
  22. You cant pass EntityPlayer into the method only the event, also 1.7.10 is not supported on this forum, please update.
  23. Yse three nested for loops. All going from -radius to +radius. And check if x, y, z is = to -radius or +radius.
  24. You would need to replace BiomeGenBase.hell/nether what ever the biome is called because it is part of the main biome.

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.