Jump to content

Recommended Posts

Posted

I have a custom furnace with 4 input slots, which I got working correctly to read shaped recipe Json files. I was also able to get the result slot to only allow the player to remove items from it and set the fuel slot so that only fuel items can be placed into it. So all of that is working as intended.

Now I'm trying to get it so that it burns the fuel and crafts the recipe when the fuel is burning. I'm using the ForgeHooks.getBurnTime() method, but nothing seems to be happening - or if something is, I don't have it set up correctly for what I need it to do. It looks like it's not actually detecting the fuel since my furnace doesn't consume it and no errors are popping up, which tells me I'm not pointing at the correct thing. Am I misunderstanding what this method does and completely setting it up wrong, or is there something else that I need to be looking at here because I missed something important somewhere? If I need to roll back and start over to make it work, that's fine too. Any insight would be greatly appreciated.

https://github.com/toadie-odie/TodeVillagers/blob/08_Kiln_not_taking_fuel/src/main/java/net/warrentode/todevillagers/blocks/entity/GlassKilnBlockEntity.java

Posted
23 hours ago, Warren Tode said:

It looks like it's not actually detecting the fuel since my furnace doesn't consume it and no errors are popping up, which tells me I'm not pointing at the correct thing.

Are you verifying this through a breakpoint or printing the server output? I don't see anything major preventing the execution, but I do question a number of the choices made.

Posted
58 minutes ago, ChampionAsh5357 said:

Are you verifying this through a breakpoint or printing the server output? I don't see anything major preventing the execution, but I do question a number of the choices made.

To be completely honest, I've never thought to do that. My learning process in all this has been to just simply start over from scratch if I get completely stuck. I suppose in some ways I learn more that way through experimentation but this has been a sticking point for me for some reason. I will be looking into how to set breakpoints and print outputs to hopefully save me some time later down the road. Thank you. :)

Posted

omg THANK YOU!

I figured out how to use the break points and print outs and by doing that I was able to figure out that I had my check for fuel in the slot was placed in the wrong spot/order, so it wasn't firing.

I had it nested within the check for matching recipe, when I needed the fuel check to happen first. So that's working exactly the way it's supposed to now. There's still a lot of other things I need to tweak/fix/clean up, but I'm marking this as solved and moving on to tinkering with other stuff for this entity.

Again, thank you so much. :D

  • Warren Tode changed the title to [SOLVED] Need help with getting custom furnace to burn fuel

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



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Hello everyone, As the title suggests I'm new the the entire modding thing I used to make little game projects here and there and since I've started University I've taking Java and I fell in love with it somehow. So I have a couple of questions: Can I learn Java from modding the game (Yes I have the basics) can it expand my knowledge in this language? Does modding require massive teams (I've seen too many projects on curseforge that have like 3-6 contributors) or can I do it solo? Where to start? I know you might be thinking "Whats wrong with this guy just simply google what to do..." and for that I say "I did" and found too many results not saying its a bad thing just you know we have a common term in development in general and that's "Development hell" you guys are more experienced than I'm what tutorial series do you recommend? Why didn't I use Reddit for this question why the minecraftforge forums where we fix issues to modding not help beginners start?  Because it gave me mental issues not saying this for attention but I really dislike the communities there are helpful somewhat but everything I said there regardless of what it is even a simple question in development will be bombarded with hateful comments cruelty and bullying and even worse grammar police , I truly hope that you guys aren't like this...   Please forgive me for my English as I'm not an English speaker. I'm alright with you people criticizing me for the question or the stuff I said just don't be cruel , thanks in advance! 
    • Hi! As the title suggests, I am encountering an issue with the Prominence II mod pack in which my server keeps crashing at random intervals. I am hosting it through Aternos, and below is a copy of my crash log. I have tried googling solutions and all forums are years old. I am new to hosting a server and don't know my way around files. I have also contacted Aternos support and they said it was a problem with the trinket mod? However I don't know if removing it will solve or corrupt my world. Any help would be greatly appreciated!   https://mclo.gs/RWmkEtK
    • I've been trying to render a line on the screen for a few days now, and everywhere I've looked has outdated answers. They say to use RenderGameOverlayEvent, which has been removed by my understanding. Is there a specific event I should be using or anything else I'm doing wrong? Tesselator tesselator = Tesselator.getInstance(); BufferBuilder renderer = tesselator.getBuilder(); renderer.begin(VertexFormat.Mode.DEBUG_LINES, DefaultVertexFormat.POSITION_COLOR); Color c = new Color(255, 0, 0, 255); renderer.vertex(0, 100, 0).color(c.getRed(), c.getGreen(), c.getBlue(), c.getAlpha()).endVertex(); renderer.vertex(0, 200, 0).color(c.getRed(), c.getGreen(), c.getBlue(), c.getAlpha()).endVertex(); tesselator.end(); Based on what I've seen, this is the code that should be working, though I feel that I need to override an event and add it in. What event should I be using for this? Is there another way of doing it that I don't know of?
    • yes i did it, we installed the drivers from nvidia website
    • Wait, how did you fix it?      
  • Topics

×
×
  • Create New...

Important Information

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