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.

fr0st

Forge Modder
  • Joined

  • Last visited

Everything posted by fr0st

  1. 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.
  2. 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..
  3. You just copied a tutorial's source code. So I can't help you.
  4. 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/
  5. fr0st replied to majesticmadman98's topic in Modder Support
    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.
  6. So right now are you still having the second issue or you fixed everything?
  7. For the no world argument, use the IBlockAccess one. For the other issue, I don't really get why that's happening
  8. 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.
  9. 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
  10. 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 )
  11. There has been no fix actually I guess it happens to everyone
  12. 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
  13. 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?
  14. 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
  15. 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.
  16. 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...
  17. 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.
  18. 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
  19. ... 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.
  20. 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
  21. 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
  22. I know someone might hate me but please, my mod NEEDS these pipes. I don't know whats wrong with them
  23. 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

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.