Everything posted by ovikk
-
[1.8/1.7.10] Custom Portal - Item [Solved]
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
-
[1.8]Gui fontRenderer not working
Well there an instance of the FontRender in the Minecraft class thats called fontRenderObj. It's basiclly the fontRender you're looking for
-
[1.8][SOLVED] Tile Entity dosen't save integer in private field
Have you tried debugging it? That usually solves problems like that.
-
[1.7.10] Generators and Energy help
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..
-
Eclipse Wont open the project
Great!
-
Eclipse Wont open the project
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
-
[1.7.10] generate seaweed underwater instead of clay using BiomeDecorator
Have you tried debugging the code upon generation of the biome?
-
Eclipse Wont open the project
Move your workspace folder to your C: drive. That worked for me
-
Initialize Ore Recipes with a list of items
That is the most funniest thing I have read in a loong while
-
How do I create a furnace?
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!
-
Initialize Ore Recipes with a list of items
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..
-
Forge 1.7.10 will not recognize my mod's jar as a mod file
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
-
[Solved] Formatting achievement text
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..
-
How do I create a furnace?
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
-
Forge 1.7.10 will not recognize my mod's jar as a mod file
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!
-
Forge 1.7.10 will not recognize my mod's jar as a mod file
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?
-
[1.7.10] Living Jump Event
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.
-
How do I create a furnace?
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!!
-
[Read Comments at Page 2][1.8]--Custom Crafting Table not Removing Ingredients
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.
-
[1.7.10] Mod will not compile
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..
IPS spam blocked by CleanTalk.