Posted August 5, 20187 yr Hey, dudes. Need help with the stove. I want to make exactly the same stove as in vanilla, but a different exterior texture, similar to vanilla, and a different burning time. Is there an easy way to implement such a furnace? Thanks for help!
August 5, 20187 yr Step 1: look at what vanilla did Step 2: copy what vanilla did Step 3: make desired changes Now, vanilla did do some right dumb shit in a few places (such as using two different blocks for the furnace, while its possible to use only one), but you can get most of the way to what you want with this process. The main issue is that you'll need to override shouldRefresh in your TileEntity class and return true only when your TE should be destroyed/recreated fresh. 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.
August 5, 20187 yr Author 1 hour ago, Draco18s said: Step 1: look at what vanilla did Step 2: copy what vanilla did Step 3: make desired changes Now, vanilla did do some right dumb shit in a few places (such as using two different blocks for the furnace, while its possible to use only one), but you can get most of the way to what you want with this process. The main issue is that you'll need to override shouldRefresh in your TileEntity class and return true only when your TE should be destroyed/recreated fresh. Hi, thx for help, i try make steps 1 - 3. But are there ready-made solutions to the normal (not shit vanilla) stove?
August 6, 20187 yr 7 hours ago, MairwunNx said: Hi, thx for help, i try make steps 1 - 3. But are there ready-made solutions to the normal (not shit vanilla) stove? Proabably, look at some open source mods. Tinkers construct, Mekanism come to mind. Minecraft By Example is a great resource too About Me Spoiler My Discord - Cadiboo#8887 My Website - Cadiboo.github.io My Mods - Cadiboo.github.io/projects My Tutorials - Cadiboo.github.io/tutorials Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support. When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible. Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)
August 6, 20187 yr 7 hours ago, MairwunNx said: Hi, thx for help, i try make steps 1 - 3. But are there ready-made solutions to the normal (not shit vanilla) stove? You could take a look at my Shard Compressor it uses a custom recipe system that I will later implement to use the json format. Overall the actual furnace code is a mess and is made so much simpler by a forge addition, the IItemHandler. It greatly simplifies the code you have to write in the update method. VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect. Forge and vanilla BlockState generator.
August 6, 20187 yr Author 10 hours ago, Cadiboo said: Допустим, посмотрите на некоторые мотивы с открытым исходным кодом. Конструкция Тинкеров, мэканизм приходят на ум. Minecraft By Example - отличный ресурс thanks
August 6, 20187 yr Author 9 hours ago, Animefan8888 said: Вы можете взглянуть на мой компрессор Shard, в котором используется пользовательская система рецептов, которую я позже буду использовать для использования формата json. В целом фактический код печи является беспорядком и делается намного проще с помощью кузнечного дополнения, IItemHandler. Это значительно упрощает код, который вы должны записать в методе обновления. Okey, i will be see thx dude
August 6, 20187 yr Is it just for me that the quotes are in Cyrillic? About Me Spoiler My Discord - Cadiboo#8887 My Website - Cadiboo.github.io My Mods - Cadiboo.github.io/projects My Tutorials - Cadiboo.github.io/tutorials Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support. When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible. Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)
August 6, 20187 yr Author 3 minutes ago, Cadiboo said: Is it just for me that the quotes are in Cyrillic? Sorry, i use auto google translate, He translated the quotes.
August 6, 20187 yr 1 minute ago, MairwunNx said: Sorry, i use auto google translate, He translated the quotes. Oh all good aha I was just confused About Me Spoiler My Discord - Cadiboo#8887 My Website - Cadiboo.github.io My Mods - Cadiboo.github.io/projects My Tutorials - Cadiboo.github.io/tutorials Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support. When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible. Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)
August 8, 20187 yr Author Hi, i make furnace, I rewrote the vanilla furnace class. But when i put eat and coal, my furnace change to vanilla furnace, but with burn effect, what fix it? i can give video Edited August 8, 20187 yr by MairwunNx
August 8, 20187 yr Because that's what the vanilla furnace does: when it's burning it replaces itself with Blocks.FURNACE_BURNING 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.
August 8, 20187 yr Author 3 minutes ago, Draco18s said: Потому что это то, что делает ванильная печь: когда она горит, она заменяет собой Blocks.FURNACE_BURNING what i can it make?
August 8, 20187 yr You need to override that behavior. 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.
August 8, 20187 yr Author 5 minutes ago, Draco18s said: You need to override that behavior. How come I didn't find a line with FURNACE_BURNING in the class with a stove like this, may be LIT_FURNACE Edited August 8, 20187 yr by MairwunNx
August 8, 20187 yr Sorry, yes, LIT_FURNACE, the name has changed a few times and I couldn't recall what it was currently called. 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.
August 8, 20187 yr Author 1 minute ago, Draco18s said: Sorry, yes, LIT_FURNACE, the name has changed a few times and I couldn't recall what it was currently called. ok, i change it on KEY5 (emerald_furnace), but when i put eat and coal it change to vanilla if (active) { worldIn.setBlockState(pos, KEY5.getDefaultState().withProperty(FACING, iblockstate.getValue(FACING)), 3); worldIn.setBlockState(pos, KEY5.getDefaultState().withProperty(FACING, iblockstate.getValue(FACING)), 3); } else { worldIn.setBlockState(pos, KEY5.getDefaultState().withProperty(FACING, iblockstate.getValue(FACING)), 3); worldIn.setBlockState(pos, KEY5.getDefaultState().withProperty(FACING, iblockstate.getValue(FACING)), 3); }
August 8, 20187 yr 4 hours ago, MairwunNx said: Help Your TileEntity is probably calling BlockFurnace.setState instead of EmeraldFurnace.setState VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect. Forge and vanilla BlockState generator.
August 9, 20187 yr Author 8 hours ago, Animefan8888 said: Your TileEntity is probably calling BlockFurnace.setState instead of EmeraldFurnace.setState I completely rewrote the TileEntityFurnace class to TileEntityEmeraldFurnace, changed the line to emeraldfurnace.setState, then in the main stove class I changed TileEntityFurnace to TileEntityEmeraldFurnace and I get crash when I put food there. debug.log
August 9, 20187 yr 21 minutes ago, MairwunNx said: TileEntityEmeraldFurnace and I get crash when I put food there. You need to register your TileEntity with TileEntity.register VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect. Forge and vanilla BlockState generator.
August 9, 20187 yr Author 45 minutes ago, Animefan8888 said: You need to register your TileEntity with TileEntity.register I don't know, why it not work? Or what true? I also try GameRegistry, but i don't know what put in 2 arg. Edited August 9, 20187 yr by MairwunNx
August 9, 20187 yr TileEntity.register(modis + ":" + name. TileEntityClass) VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect. Forge and vanilla BlockState generator.
August 9, 20187 yr Author 39 minutes ago, Animefan8888 said: TileEntity.register(modis + ":" + name. TileEntityClass) ok, thx it work, furnace open, furnace work But I would like to hide in the game a burning furnace block
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.