Everything posted by fr0st
-
CraftingHandler onSmelting with metadata?
EDIT: Oh boy, I am stupid. Solved it like this @Override public void onSmelting(EntityPlayer player, ItemStack item) { if(player == null) return; if(item.itemID == Item.coal.itemID && item.getItemDamage() == 1) completeAchievement(player, "fuelLack"); } Dammit, I need to sleep more. Deleted everything, too ashamed to show ya guys.
-
[SOLVED][1.7.2]Custom "Furnace" crashing the game
It's not because of that, but It's because I'd have to follow the tutorial myself.. Are you sure that tutorial wasn't made for 1.6.4? Anyways, I can still look at your code, don't rage on me.. By the way, does the game also crash when you click on your creative tab? If yes, since this happened me quite a few times, It's an ID problem... EDIT: Oh but you're using 1.7.2. Sorry, I can't help you, I'm still using 1.6.4, never got onto newer versions..
-
[SOLVED][1.7.2]Custom "Furnace" crashing the game
You just copied a tutorial's source code. So I can't help you.
-
[1.6.4] Modeler for Mac
Also i saw some people using this: http://www.mfmesi.ru/uploads/maxed/fmcmodeler/ But i never did, so don't ask me for help. Minecraft forums thread: http://www.minecraftforum.net/topic/247851-modeler-fmcmodeler-v026-minecraft-models-in-a-flash/
-
scale
Thanks for the readable english. By the way, on my experience, my answer is yes. I had to scale a custom mob because it was too big and the texture was still fitting perfectly.
-
[1.7.2] get int from tileentity
Glad I helped ya
-
[1.7.2] get int from tileentity
So right now are you still having the second issue or you fixed everything?
-
[1.7.2] get int from tileentity
For the no world argument, use the IBlockAccess one. For the other issue, I don't really get why that's happening
-
[1.7.2] get int from tileentity
Couldn't you do something like TileEntityHeatConductant tile = (TileEntityHeatConductant)world.getBlockTileEntity(x,y,z); if (tile != null) { color = tile.color; } You have those 4 parameters (pos and world) so it won't be a problem.
-
Setting items to custom inventory on pickup?
Buttons: So, it's just BBCode (Which im aware of, since I also used to program websites)... well thanks for making me look stupid About the code.. yeah but i need to know how to actually assign those items into my backpack's inventory (which is currently equipped on my back as a piece of armor).. because usually armors don't have an inventory
-
Setting items to custom inventory on pickup?
Hey. Im working on a backpack. Its works, has 3d model when worn and all that stuff. The only thing i don't know how to deal with is inserting items on pickup. I already have an event handler set up with this event (which gives an achievement for now) but i dont know to inject items into it. As i said, i can detect when the player picks up items. This is my current code: @ForgeSubscribe public void onItemPickup(EntityItemPickupEvent event){ if(event.item.getEntityItem().getItem() == Item.coal){ AchievementLoader.completeAchievement(event.entityPlayer, "firstStep"); if(event.entityPlayer.inventory.armorInventory[1].getItem() == ToolLoader.itemBackpack){ } } } (You really whould tell me why i can't use the code button and all of those buttons at the top of the post )
-
Configuring custom key in controls tab?
There has been no fix actually I guess it happens to everyone
-
Configuring custom key in controls tab?
I am already adding KeyBindings, but they don't show up in the controls tab. What do I have to do? EDIT: I am dumb. I did not see that in the controls tab, i totally ignored it. I should'nt have asked for help here... sorry
-
Configuring custom key in controls tab?
I've seen some mods doing this (IC2): they have their own key configured in the controls tab. I need this, becaus emy mod would cause many conflicts if i use a specific key. Don't tell me to change key, because i want to learn how to do this. Oh, and i saw there's a class called KeyBinding from some source code.. is that what i'm looking for?
-
Transferring fluids over pipes
OK so i started debugging seriously with breakpoints. I saw that the code gets stuck on int d2 = y + dir.offsetY; I really don't know what's the problem. IN this moment dir.offsetY equals -1 so under the pipe.. i really don't know, maybe I should code it from scratch. Some further debugging had me discover that it checks for the directions actually but it's like it doesnt find any pipe. I know this because i tried to make it set blocks around it at the directions it should check, and since it doesnt replace itself, i know that it doesnt check for itself. At least a problem solved. Now i still need to realize if it doesnt find pipes or it can't inject water in them. To discover this it's simple. Btw guys i'm very glad you keep heling me. My english is not that good and my java skills aren't either, I'm learning. Thanks for helping this stupid 14yrs old boy
-
[1.6.4] my textures are not loaded by minecraft
Alrght let's explain this. Let's say you have an item called ItemSomething. Inside of this class you define its texture: this.setTextureName("modid:nameOfTheTexture); This is the equivalent of this folder: assets/modid/textures/items/nameOfTheTexture.png So if your mod id is IDONTKNOW and your texture file is called someCoolItem you're gonna have: this.setTextureName("idontknow:someCoolItem"); And if it doesn't work, you have probably done something wrong.
-
Transferring fluids over pipes
I can only imagine the pain you've been through.. using only the block class to make gas flow.. By the way i have my idea on why it doesn't work. As i already stated, the block SHOULD check for every direction (for(ForgeDirection dir : ForgeDirection.VALID_DIRECTIONS) and that's ok, but instead of cycling all of them, it stops on the first one (itself) and doesn't do anything...
-
ISimpleBlockRenderingHandler.renderInventoryBlock - Render vanilla block?
Are you making a custom block or overriding vanilla stairs? Because if you're making your stairs, you could just extend BlockStair, I don't see why having a custom renderer for stairs.
-
[1.6.4] my textures are not loaded by minecraft
I didn't ask for your code's location, but what you do to get the textures. Post us your class's full code and we'll try to help you
-
[1.6.4] my textures are not loaded by minecraft
... we are no wizards, so we can't guess what your codes are and what's your folder setup. Please tell us where your textures are stored, and how you are trying to get them.
-
Transferring fluids over pipes
Alright so now i updated the code. This is what the pipe is doing: Hmm i found another pipe, let's connect to it. Done. So now we should transfer our liquids into it.. Nah! Let's keep the liquid for me It's like the pipe finds himself instead of other ones so the process is handled by the single pipe itself, and it does nothing. Updated code with prints for debugging: (It doesnt even print the first one so it's like it's stuck to itself instead of checking other directions too) https://gist.github.com/anonymous/aa0643cd94e825e470c2
-
Transferring fluids over pipes
I cannot believe how I did that. Eagle eye down there, man! Thats my problem in real life at school and at coding: I CAN'T FOCUS. I always make this kind of little errors. Let's see if i change it what it does. Thanks for even having bothered reading my crappy code
-
Transferring fluids over pipes
I know someone might hate me but please, my mod NEEDS these pipes. I don't know whats wrong with them
-
Need help... Ecilpse minecraft keeps crashing
That's just a tiny bit of the console, which tells us nothing. Please post the full crash log at: mcp\jars\crash-reports\crash-2014-02-28_18.02.21-client.txt
- [1.7.2] mod CONFIG button
IPS spam blocked by CleanTalk.