Jump to content

zlotnleo

Members
  • Posts

    21
  • Joined

  • Last visited

Converted

  • Gender
    Male
  • Location
    London, UK

zlotnleo's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Here it is:
  2. Minecraft 1.9 Forge 12.16.0.1867 I noticed that GUI I'm drawing is displayed twice, when in Normal or Large GUI Scale, and works correctly in Small GUI Scale only, where is is displayed only once. Screenshots: Code: Also, the rectangle is not being drawn where it should be, unless I really messed up the coordinates
  3. Well, seems like a lot to be understood and rethought. I will probably look deeper into it tomorrow.
  4. Well, neither FMLEvents nor ForgeEvents class seems to exist
  5. Still doesn't work. That method is not being called. And also, as far as I understand, Entity join happens once for every new dropped item. And that is not what I want to do. Basically, I'm just asking whether my code will work or not to turn any coal/charcoal into wet one?
  6. In a class called ChangeDefaults I've got this: In the main mod class is where I get stuck. I tried this:
  7. I think I understand how the method should work, however I can't get the EntityJoinWorldEvent to be called at proper places
  8. -32k ... +32k, so twice as much. As far as I know, negative metadata works fine
  9. I want a vanilla item to change into an item from my mod when dropped in water. For that I need to override onEntityItemUpdate(EntityItem) method.
  10. Is there a way to override a vanilla item method without editing the base classes or do I have to create my own item with the same properties and replace the vanilla one with my own?
  11. Just had to change places between initialization of wet items and the dry ones. Got it all working, thank you
  12. I have this code in the generic item class: And in the item's class I call this in constructor: this.setWashingResult(new ItemStack(ModItems.wetCoal, 1, 0)); The item obtained with /give command or from creative inventory works just fine and has no problems being dropped. However, when I drop an item into the water, game crashes. Crash log:
  13. The ModelBakery.addVariants works great However to load the models I had to use this method: Because the one I fount to be said correct: was being called all the time and made a giant mess in the log
  14. This code works perfectly: However when I overload this method to handle items with metadata they're rendered as cubes (json model file not loading) Since the first one is working, assets is loading properly etc. The part of log with all the "Loading model..." I'd think that if "coalage:coal_piece" is OK, then "coalage:colored_coal_black" hould work, but it doesn't. And getUnlocalizedName method is overloaded and works as I want it to. That's proved by the log
  15. That is not the problem since I override the Item method with my own in ItemNEPWR
×
×
  • Create New...

Important Information

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