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.

ovikk

Forge Modder
  • Joined

  • Last visited

Everything posted by ovikk

  1. Put an @Override over the onItemUse function and change the x, y, and z integers to one BlockPos. The side must also be changed to EnumFacing instead, like this: @Override public boolean onItemUse(ItemStack stack, EntityPlayer player, World par3World, BlockPos pos, EnumFacing facing, float hitX, float hitY, float hitZ) The world's get and set blocks are replaced with setBlockState and getBlockState. So you get and set like this: par3World.getBlockState(BlockPos pos).getBlock(); par3World.setBlockState(Block block, block.getDefaultState()); The editing of the x, y, and z variables when you check if the portal is created is done as follows: You simply call the BlockPos variable, which will be named pos in this example, and call .north(), .east().... respectively. You can add a number as an argument to specify how many blocks you want to go in that direction, but you don't need that. pos.south(); //returns a new BlockPos with coordinates that have increased by one block along the z-axis; pos.north(); //returns a new BlockPos woth coodinates that have decreased by one block along the z-axis; pos.east(); //returns a new BlockPos woth coodinates that have increased by one block along the x-axis; pos.west(); //returns a new BlockPos woth coodinates that have decreased by one block along the x-axis; pos.up(); //returns a new BlockPos woth coodinates that have increased by one block along the y-axis; pos.down(); //returns a new BlockPos woth coodinates that have decreased by one block along the y-axis; pos.south(2).east(); //to blocks south and one block east I thing you get the idea
  2. Well there an instance of the FontRender in the Minecraft class thats called fontRenderObj. It's basiclly the fontRender you're looking for
  3. Have you tried debugging it? That usually solves problems like that.
  4. ScratchForFun has some nice tutorials about this, but his channel is a bit messy. I recommend going to ThePizzaBoyHD's channel as he has placed all of ScrathForFun's tutorials in organized playlists: https://www.youtube.com/user/ThePizzaBoyHD/playlists If you know Java, you should be able to modify it and create your own variants! If you there's something you don't understand post it here, or you could check out Thermal Expansion on GitHub..
  5. and that didn't work? Try creating a new folder and unzip the file there, and write gradlew setupDecompWorkspace eclipse --refresh-dependencies And also, make sure you have Java 7+ JDK
  6. Have you tried debugging the code upon generation of the biome?
  7. Move your workspace folder to your C: drive. That worked for me
  8. That is the most funniest thing I have read in a loong while
  9. Yes it does! 100%! You only need to follow Jedispencer21's advice and look in the vanilla's furnace classes when theres something you do not understand!
  10. The method addRecipe in vanilla code does not check for a list of item has an argument.. You could create your own method that allows a list of item. You could then then calls the addRecipe in vanilla. Or you could create your own Recipe class that implements IRecipe..
  11. The version should be "1.0", not "{1.0", and the mcversion should be "1.7.10", not "${1.7.10}" I don't know if this will take effect, but it's worth a try
  12. I'm not sure if this will work but, have you tried the different § codes? You can Google them by typing "Minecraft color codes". The different § codes brings italic, color, boldness.. Everything..
  13. There is a playlist on ThePizzaBoyHD's channel.. ScrathForFun basiclly copies the entire vanilla furnace and creates his own "quartz furnace", while explaining everything. You should only skip stuff you know you understand and can manage on your own
  14. No, a .jar file is a .zip file with a different extension. Try renaming a .jar to .zip, you can then open it up with whatever extraction program you like. Okay.. Learned something new today!
  15. Looking closer at the error log, it says: Zip file MacsUtilitiesMod-1.7.10-v.1-FULL.jar Are you sure your file is a jar file and not a zip file?
  16. Give the player jump boost for 0 tick whenever he is wearing the armor piece. If the player only requires one armor piece to activate the jump effect you can do this by overwriting the onArmorTick method in you ItemArmor class, and do it there. If the player requires more than one armor piece you'll have to do it in some event and check if the player is wearing the armor.
  17. ScratchForFun has a very good tutorial on how to create a furnace from scratch https://m.youtube.com/channel/UC786-fvOTMkndZPRwr15zVA His channel is a bit messy so you might have to look around a bit.. The furnace series is 27 videos.. Good luck!!
  18. First problem You nees to open the gui on the client and the server. Your onBlockActivated method should look like this: public boolean onBlockActivated(World world, BlockPos pos, IBlockState state, EntityPlayer player, EnumFacing side, float hitX, float hitY, float hitZ) { if (!player.isSneaking()) { player.openGui(Reference.MOD_ID, CarbonBlocks.guiIDIronForge, world, pos.getX(), pos.getY(), pos.getZ()); return true } return false; } Second problem You only get the red zeros if you forget to set the ItemStack to null when it reaches 0. If you decrease the stacksize to 0, but forget to remove by setting it to null, you will get a stacksize of zero in that slot. Third problem You're block crashes when you shift right click on an item, is that you have an error in your transferStackInSlot method.. I can't locate the error, but you should find it in the crash log.
  19. I had the same problem... I just deleted the mcmod.info in my src folder, and the building went successfully. The only problem with this is that the mod won't have a mcmod.info file..

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.