Jump to content

Sail338

Members
  • Posts

    5
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

Sail338's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. anyone know why or what I am doing wrong
  2. I am using Extra utilities Energy Node and when connected by itself it produces 0 rf/t but when i connect an energy extraction thingy and then connect a Node to the exraction pipe it does output rf.... how strange
  3. so i got the RF api and attempted to generate RF with this public void updateEntity() { if(!this.worldObj.isRemote) { storage.setEnergyStored(storage.getEnergyStored() + 10); and then attmped to extract the rf with this public int extractEnergy(ForgeDirection from, int maxExtract, boolean simulate) { return storage.extractEnergy(maxExtract, simulate); but i am not getting any output. am i generating the RF properly
  4. tried changing the if statement to a while statement, getting a null pointer expection
  5. So I tried mimicing the beacon code. I know the ticker variable is working but the potion effects are not applying is there anything wrong with my code? Forgive me i am new to modding public PolCanEntity() { double ranges = 6; if(ticker >= 23 ) { int pollutionlevel = 100; AxisAlignedBB axis = AxisAlignedBB.getBoundingBox((double)xCoord-ranges, (double)yCoord, (double)zCoord, (double)xCoord + ranges, (double)yCoord + ranges, (double)zCoord + ranges); List list = this.worldObj.getEntitiesWithinAABB(EntityPlayer.class,axis); Iterator ilikepie = list.iterator(); EntityPlayer player; if(pollutionlevel >=100 && ilikepie.hasNext()) { player = (EntityPlayer)ilikepie.next(); player.addPotionEffect(new PotionEffect(17,1000,1,true)); ticker = 0;
×
×
  • Create New...

Important Information

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