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. He isn't doing it to just his own Blocks. Edit: Also I do not believe that IBlockColor can add a "tint", or transparent layer.
  2. That is explained in the link I sent you. OK, I will ask then as I through the pack to pass to the client player IStamina values? The SimpleNetworkWrapper field you created has methods for sending packets you want SimpleNetworkWrapper#sendTo(IMessage, EntityPlayer) which will send the data to the specific player.
  3. That is explained in the link I sent you.
  4. Using packets. http://www.minecraftforge.net/forum/index.php?topic=20135.0
  5. I mean that the max changes when in a different dimension. E.g. 32 in the Overworld 512 in the Nether. How would you handle the damage being greater than the durability, ie i am in the nether i use it more than 32 and then travel to the overworld? But you could do this through Item#getMaxDamage() and a capability that holds the dimension id the holder is in, which can be updated before it takes damage.
  6. It has a canExtract and canReceive methods use them.
  7. I think it depends on wht you mean by change the durability. Do you mean it will have separate durability amounts in different dimensions or that the the max changes when inside different dimensions?
  8. A predicate is a functional interface. It has one method a boolean, and i assume in this context it would be if the enchantment type can be applied to the item passed.
  9. I think you would need to use the RenderWorldLastEvent
  10. When you say you want to add a transparent tint over the block, when do you want to do this? Is there any example you could give?
  11. So I should create a class for my ItemBlocks and set there the meta for each color? Yes assuming when you say color you mean it is going to have different Item models. Because you can always you IBlockColor.
  12. What that does is when a Blocks block state has the EnumDyeColor as a PropertyEnum on it, changes the color/state of the block.
  13. Because there is no meta for your ItemBlock.
  14. That returns the correct block, your problem is that you are not considering metadata.
  15. The bed and door don't have ItemBlocks associated with them, if you want to get the ItemStack associated with a Block call Block#getPickBlock().
  16. Probably reading the JavaDoc of MCMultipart.
  17. Why not just look at BlockDoor?...
  18. "#"'s are not used in Java for any actual programming. They are used to denote that what comes after it is a method and is not static so no confusion comes. AKA EntityLivingBase.addPotionEffect(...) is different from EntityLivingBase living = ... living.addPotionEffect(...)
  19. First how much Java do you know?
  20. That depends on what you want your TE to do.
  21. Because potions cause Effects. There are also (or can be) affects that aren't applied by potions. You are right there, but I fail to see the logic behind that reasoning. All that MobEffects stores is the Potion instances from the Registry. It doesn't store any effects inside of it. And the only link between Potions and Mobs is that potion effects are applied to mobs.
  22. Don't use numeric IDs, they're not guaranteed to be the same for every save and they're a lot less descriptive than using fields or registry names. The vanilla Potion instances are now stored in the MobEffects class. Ah, very true, but why did MobEffects become MobEffects and not Potions? Kinda like how we have Block and Blocks or Item and Items?
  23. EntityLivingBase#addPotionEffect(new PotionEffect(Potion.getPotionById(10), 100, 3)); Will give the entity regeneration for 100 seconds and level 4.
  24. Override Entity#getCollisionBox

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.