Everything posted by GodOfYeti
-
How to update gui screen
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
-
How to update gui screen
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
-
Making a generator
I got the generator working kinda ish
-
Making a generator
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; } }
-
Making a generator
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
-
Special tool
In theory that should work right?
-
Special tool
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 } } }
-
Special tool
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
-
Making a generator
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
-
Special tool
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
-
Custom block bounds
Sorry for the delay here are some pics.
-
Making a generator
Im not asking for code im just wanting someone to send me in the direction needed to learn how to do this
-
More quick question than support
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
-
[1.7.10]Rotating custom model depending on which side it is placed
Have you tried rotating based on metadata
-
Custom block bounds
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
-
More quick question than support
See my problem with this is that when a pipe connects at a angle then the block bounds gets all wonky
-
More quick question than support
Do alot of people really care about block bounds on pipes
-
Making a generator
So how can I make a generator make the coolant and then the server block detect if its cooled or not
-
Making a generator
The Item storage is just a place filler.
-
Making a generator
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
-
Making a generator
Its all I could think of and I am getting great practice with it
-
Making a generator
Ok heres my idea, im implementing servers into minecraft and I need the air type power as a coolant
-
How to use rf api
Just wondering how can I make the provider have a internal buffer
-
How to use rf api
Belopis thanks I know have a better understanding
-
How to use rf api
Ive never used this api so I really dont understand how to use it
IPS spam blocked by CleanTalk.