Jump to content

Leaderboard

Popular Content

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

  1. what he means is hoppers can extract items out of Entity's using the IInventory but not Itemhander as you can see in the spoiler getInventoryAtPosition first checks for tile and then for Entity's it get also used in BlockDispenser line 54
    1 point
  2. Instead of Minecraft.getMinecraft().player, use playerIn.
    1 point
  3. This will make the code run on the client only. But that will still crash the server as it still tries to load the Minecraft class on the server side. Using the EntityPlayer parameter will fix this.
    1 point
  4. This will still crash the server you need to you use the player given to you in the parameters
    1 point
  5. if(consumer != null) this.container.extractEnergy(consumer.receiveEnergy(this.container.getEnergyStored(), false), false); I think your issue is here. You are trying to make the consumer receive all the energy stored inside the solar panel. Try using the max output (15) instead of getEnergyStored().
    1 point
  6. Before you start making a mod, make sure you have a solid understanding of Java and OO programming in general. Once you have that, you can look through some of the tutorials linked here and the Forge Documentation.
    1 point
×
×
  • Create New...

Important Information

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