Posted January 26, 201510 yr Ok guys I was wondering how I could make a type of generator that makes air like a air conditioner
January 26, 201510 yr Air? Like Blocks.air? If so, then no, don't make a "generator" for it. If you want to create something like wind then you have to do everything yourself. There is no wind in Minecraft. Don't make mods if you don't know Java. Check out my website: http://shadowfacts.net Developer of many mods
January 26, 201510 yr What, exactly, are you trying to do? Panel 2 is highly appropriate: http://imgs.xkcd.com/comics/well_2.png[/img] Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
January 26, 201510 yr Nah air would be like the energy Do you mean the name of the energy system would be "air"? If so: 1. This is not a good name, pick something unique. 2. PneumaticCraft has something similar involving pressurized air. 3. Why not just use an existing energy system like RF or EU? Don't make mods if you don't know Java. Check out my website: http://shadowfacts.net Developer of many mods
January 27, 201510 yr Author Ok heres my idea, im implementing servers into minecraft and I need the air type power as a coolant
January 27, 201510 yr Servers? Like multiplayer servers? Or like computer servers? If you mean computer servers then, why? Don't make mods if you don't know Java. Check out my website: http://shadowfacts.net Developer of many mods
January 27, 201510 yr First of all, what do you want the servers to do? Don't make mods if you don't know Java. Check out my website: http://shadowfacts.net Developer of many mods
January 27, 201510 yr Author 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
January 27, 201510 yr Storage as in item/block storage like AE? If so, don't remake AE. Don't make mods if you don't know Java. Check out my website: http://shadowfacts.net Developer of many mods
January 27, 201510 yr Author So how can I make a generator make the coolant and then the server block detect if its cooled or not
January 27, 201510 yr "I am new" Thanks, Sherlock. You can't just go around asking people to make stuff for you. That's the point of learning Java... Maker of the Craft++ mod.
January 27, 201510 yr Author Im not asking for code im just wanting someone to send me in the direction needed to learn how to do this
January 27, 201510 yr No one knows what you want. http://imgs.xkcd.com/comics/well_2.png[/img] Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
January 27, 201510 yr Author 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
January 27, 201510 yr 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 I think I understand what you want to be able to do. And I will give you the idea how to do it but you have to implement it. First step: create tileentity classes for your cooleant generator and your server and register it. I will assume that you dont want to make the cooleant an item because that is tiny bit more complex. Second step: create a variable called cooleantAmount on both server tileentiy and generator tileentity and create methods getCooleantAmount to both and into the server tileentity you create method addCooleant. Step three: on your generator tileentity's onUpdate method you want to increase the value of cooleantAmount by how much you want be generated. You also wanna check if any blocks around the generator have tileentities mathching the server tileentity and if it is call that particular server-tileentity's addCooleant-method and remove that amount from the generator's cooleantAmount Step 4: Check in your server tileentity's onUpdate-method if you have enough cooleant and do it do what it should. It wasnt so hard was it. If my post helped you, please press that "Thank You"-button to show your appreciation. Also if you don't know Java, I would suggest you read the official tutorials by Oracle to get an idea of how to do this. Thanks, and good modding! Also if you haven't, set up a Git repo for your mod not only for convinience but also to make it easier to help you.
January 27, 201510 yr Author 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
January 27, 201510 yr Author 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; } }
January 27, 201510 yr Send me like a pastebin of your code or something in PM and I can help you. If my post helped you, please press that "Thank You"-button to show your appreciation. Also if you don't know Java, I would suggest you read the official tutorials by Oracle to get an idea of how to do this. Thanks, and good modding! Also if you haven't, set up a Git repo for your mod not only for convinience but also to make it easier to help you.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.