Jump to content

Recommended Posts

Posted

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! 

Posted

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.

Posted
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?

Posted
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

  • Thanks 1

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.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)

Posted
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.

  • Thanks 1

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.

Posted
10 hours ago, Cadiboo said:

Допустим, посмотрите на некоторые мотивы с открытым исходным кодом. Конструкция Тинкеров, мэканизм приходят на ум. Minecraft By Example - отличный ресурс

thanks :))

Posted
9 hours ago, Animefan8888 said:

Вы можете взглянуть на мой компрессор Shard, в котором используется пользовательская система рецептов, которую я позже буду использовать для использования формата json. В целом фактический код печи является беспорядком и делается намного проще с помощью кузнечного дополнения, IItemHandler. Это значительно упрощает код, который вы должны записать в методе обновления.

Okey, i will be see :) thx dude 

Posted

Is it just for me that the quotes are in Cyrillic?

924948260_ScreenShot2018-08-06at11_38_54pm.thumb.png.d8cfefe4601a04664101ce325f287a3d.png

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.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)

Posted
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 WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.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)

Posted (edited)

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 by MairwunNx
Posted

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.

Posted
3 minutes ago, Draco18s said:

Потому что это то, что делает ванильная печь: когда она горит, она заменяет собой Blocks.FURNACE_BURNING

what i can it make? 

Posted

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.

Posted (edited)
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 by MairwunNx
Posted

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.

Posted
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);
}
Posted
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

Posted
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.

Posted (edited)
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?

 

image.png.0ecae88e5155963b74dc21653d2a174b.png

 

I also try GameRegistry, but i don't know what put in 2 arg.

 

Edited by MairwunNx
Posted
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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.