Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 03/04/17 in all areas

  1. I'd just put it in the code right before it checks if you're wearing the armour.. That way it sets it to 0 each time and then increases it afterwards.
    1 point
  2. EntityHumanFighter#initEntityAI calls super.applyEntityAttributes, which registers the entity's attributes. This method has already been called by the EntityLivingBase constructor, so the attribute registration fails with an exception because the attributes it's trying to register have already been registered. EntityHumanCivilian doesn't do this, so it can be summoned without issue.
    1 point
  3. Don't download mods from sites like Minecraftexe, these often host outdated and potentially malicious versions of mods. Only download mods from their official source, usually a Minecraft Forum thread or Curse project. You can read more about this here. You can find ATG's official Minecraft Forum thread here and Curse project here. Probably not. ATG adds several of its own biomes, these would revert to vanilla plains biomes without the mod installed. In addition, any new terrain generated would use the vanilla generator rather than the ATG one.
    1 point
  4. I'm like brand new to modding so take my info with a grain of salt. I believe the storage class should only be used to read and write the nbt and as long as it's registered and attached, the provider will automatically call the read/write nbt methods of the storage class from the serializeNBT and deseralizeNBT methods . The client won't actually save and load the nbt data though, so it will probably just be default values. So in PlayerLoggedInEvent you just send a packet from the server to the client to sync the data. From here I don't know whether you handle the increase/decrease of mana only server side or both client and server side. For me I only handle the mana server side and I use PlayerTickEvent to send a packet to the client to sync the mana. Here is an older tutorial, but it still works: http://www.planetminecraft.com/blog/forge-tutorial-capability-system/ Other useful links: https://mcforge.readthedocs.io/en/latest/datastorage/capabilities/ http://jabelarminecraft.blogspot.com/p/minecraft-17x.html
    1 point
  5. Because Windows 7 is still better than literally any other version of Windows?
    1 point
×
×
  • Create New...

Important Information

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