Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

GodOfYeti

Members
  • Joined

  • Last visited

Everything posted by GodOfYeti

  1. Ok and I seem to have a problem where I can display 1 gui background texture and thats all but I need to be able to draw a rectangle that represents pwoer
  2. Ok Im making a gui that displays info but I need this info to update all the time just like thermal expansions power display does
  3. I got the generator working kinda ish
  4. This is what I got so far package com.linumhost.TileEntity; import com.linumhost.Energy.IEnergyProvider; import net.minecraft.tileentity.TileEntity; import net.minecraftforge.common.util.ForgeDirection; public class TileEntityAirGeneratorBlock extends TileEntity { protected int cooleantAmount; public int getAmount(){ return cooleantAmount; } public int extractAmount(int amount){ int postAmount = cooleantAmount; if(cooleantAmount < 0){ amount = 0; } int cooleantAmount = postAmount - amount; if(cooleantAmount < 0){ cooleantAmount = 0; } return cooleantAmount; } public void onUpdate(){ cooleantAmount += 100; } } package com.linumhost.TileEntity; import org.lwjgl.input.Keyboard; import com.linumhost.Energy.EnergyStorage; import com.linumhost.Energy.IEnergyHandler; import com.mcpixelplex.Gui.TestGui; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.tileentity.TileEntity; import net.minecraft.world.World; import net.minecraftforge.common.util.ForgeDirection; public class TileEntityServerCaseBlock extends TileEntity{ public static boolean isCooled = false; public static boolean receivingAir = false; protected int cooleantAmount; protected int maxCooleantAmount = 10000; public int getAmount(){ return cooleantAmount; } public int getMaxAmount(){ return maxCooleantAmount; } public int addCooleant(int amount){ return cooleantAmount += amount; } }
  5. Good until I got to here "You also wanna check if any blocks have tileentity mathching the server tileentity and if it is call that particular server-tileentity's addCllleant-method and remove that amount from the generator's cooleantAmount" then I got so lost
  6. In theory that should work right?
  7. Maybe something like public void onBlockActivated(World par1World, int par2, int par3, int par4, EntityPlayer player) { if(!par1World.isRemote) { if(player.inventory.getCurrentItem().getItem() == Items.wrench && player.isSneaking()){ //stuff } } }
  8. 1. take custom block 2. use the onBlockActivated method to check if it was shift+right clicked 3. check what item was used 4. if the item was lets say a "wrench" then replace block with air then spawn the item
  9. Im trying to explain this as much as possible, I want to make a block that creates coolant/energy (how every you want to call it) and then make my block register if it is receiving this coolant/energy and display true or false basicly
  10. If I took a block and set a onBlockActivated method and check the tool that click the block and drop the block could I do that so that block requires a special tool
  11. Sorry for the delay here are some pics.
  12. Im not asking for code im just wanting someone to send me in the direction needed to learn how to do this
  13. I dont really want to add the code in until I get a fix but when the pipes connect at a 90 degree angle the block bounds extends outwards to try to keep it a block but I want to know how to get the block bounds to hug the pipe no matter what
  14. Ok I have a pipe and the block bounds works great if its just the core or straight but when it angles it gets wonky how can I fix this
  15. See my problem with this is that when a pipe connects at a angle then the block bounds gets all wonky
  16. Do alot of people really care about block bounds on pipes
  17. So how can I make a generator make the coolant and then the server block detect if its cooled or not
  18. The Item storage is just a place filler.
  19. For now it will probably be simple storage but Ill add more advance thing later but the first thing I want it to do is make a generator that creates the coolant and then make the server accept the "air" coolant and register that its cooled
  20. Its all I could think of and I am getting great practice with it
  21. Ok heres my idea, im implementing servers into minecraft and I need the air type power as a coolant
  22. Just wondering how can I make the provider have a internal buffer
  23. Belopis thanks I know have a better understanding
  24. Ive never used this api so I really dont understand how to use it

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.