Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 07/19/19 in all areas

  1. Use Java 8 or 10. Forge needs to update a library to be compatible with J11 and coordinating the update for that library across the toolchain is expected to be a pain.
    1 point
  2. Blocks have states. Those states contain extra information. Like what kind of stone the stone is. Polished diorite is a variant of minecraft:stone. Also, stop using getFromName and just use the constants in the Blocks class.
    1 point
  3. Ok, now I see what you mean. The "picture that's worth 1000 words" only works if there's an obvious problem or a freehand red circle around it. Personally, I'd say screw it and not worry about it. Its minecraft, it has a blocky aesthetic. I'm not sure how to go about handling this.
    1 point
  4. This... THIS is how people should handle things rather than insisting that you should be allowed to conditionally register things. </rant>
    1 point
  5. I don't know if it can help you : https://github.com/iChun/GeneralLaymansAestheticSpyingScreen If I understand well, this mod use very similar properties of what you want to do, try to look in it.
    1 point
  6. ManaStoneContainer, ManaStoneTile, and ManaStoneScreen are not blocks and should not be in your blocks package. They should be in inventory, tileentities, and client.gui respectively. https://github.com/Cleardragonf/AsuraMagica/blob/master/src/main/java/me/asuramagica/blocks/Mana_StoneTile.java#L101-L103 BlockPos.getInBox(...) https://github.com/Cleardragonf/AsuraMagica/blob/master/src/main/java/me/asuramagica/blocks/Mana_StoneTile.java#L150 1) you can just make the field a CustomEnergyStorage in the first place so you don't need to cast 2) you shouldn't have "add fire energy" as a separate method from "add water energy" on your custom energy storage as you already separate them by using different instances 3) What, if you're "adding fire energy" as your singular method name, its named wrong. And now on to your requested problem https://github.com/Cleardragonf/AsuraMagica/blob/master/src/main/java/me/asuramagica/blocks/Mana_StoneTile.java#L249 Because all of your energies are all the same ENERGY capability you can't distinguish which energy you return from GetCapability. Either: 1) make a new capability 2) use a custom energy storage that stores all four as independent variables I recommend #1, as #2 will require an assumption when dealing with energy systems from other mods (which one is the right type to send over?)
    1 point
  7. You must run Forge for 1.12.2 and earlier with Java 8
    0 points
  8. Why are you using 1.12 specifically instead of 1.12.2?
    0 points
×
×
  • Create New...

Important Information

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