Jump to content

Leaderboard

Popular Content

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

  1. 1) https://github.com/Mavigno42/ModTest/tree/master/src/main/resources/assets/modtest/lang You need to rename that file as en_us.lang as all resources must be in lower case. 2) Part a: https://github.com/Mavigno42/ModTest/blob/master/src/main/java/com/mavigno/modtest/tileentity/base/TileEntityBasicInventory.java#L15 You don't need implements ICapabilityProvider, TileEntity already implements that interface. Part b: https://github.com/Mavigno42/ModTest/blob/master/src/main/java/com/mavigno/modtest/tileentity/base/TileEntityBasicInventory.java#L17 Pretty sure you can't create the ItemHandler like this, as the SIZE value is coming from the constructor, but at the time that this field is initialized, the constructor has not yet been called.
    1 point
  2. You have a non-1.7.10 mod installed.
    1 point
  3. I meant the actual method that does the logic when the event is fired. In your case, onTickEvent needs to have the annotation. WorldTickEvent is fired 20 times a second, but you can just use a modulus operator with the world time to limit how often your code is run. Animation#getWorldTime will return the current world time in seconds.
    1 point
  4. Tada. There was no way we could have figured that out from the code you posted. And now you know how to debug.
    1 point
×
×
  • Create New...

Important Information

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