Jump to content

brewing recipes.


Guest

Recommended Posts

now i know that none of this is simple from looking around at the information on this website, and some other places. also looking at the tile an container classes for brewing stand

 

can some one, please, just show me how to add and creat brewing stand recipes. i checked out the link for the registry and thought i had found what i needed. well, id say not sure.

so please, lay it on me.

Link to comment
Share on other sites

If you're using 1.8+, Forge provides the

BrewingRecipeRegistry

class that allows you to add brewing recipes. If you're not, update.

 

Simply call one of the

BrewingRecipeRegistry.addRecipe

overloads to add a recipe, they all have doc comments explaining their inputs.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Link to comment
Share on other sites

Make sure you're using the latest version, preferably for 1.8.9. Brewing recipes were introduced in 1.8-11.14.2.1440.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Link to comment
Share on other sites

Change the

minecraft.version

property in your build.gradle to the new version, run

setupDecompWorkspace

and refresh your IDE project.

 

If you're updating to 1.8.9, you'll need to update to ForgeGradle 2.1 from 2.0 by changing the version in the

buildscript.dependencies

section of your build.gradle and update your MCP mappings by changing the

minecraft.mappings

property. Look at the build.gradle of the latest 1.8.9 MDK download to see what you need.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Link to comment
Share on other sites

okay, perfect thanks.

 

now what  would be the correct way to code one of these?

 

BrewingRecipeRegistry.addRecipe(ItemStack input, ItemStack ingredient, ItemStack output)

    {

    return addRecipe(new BrewingRecipe(Tools.alcmix, MarijuanaBud.mBud, Tools.ExtractPotion));

    }

 

Link to comment
Share on other sites

Do you actually understand Java? You don't need to create a new method, just call one of the existing ones.

 

The methods expect

ItemStack

or

String

(ore dictionary name) ingredients and outputs, not

Item

s.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Link to comment
Share on other sites

i am doing my best to learn it by reading(by which i do not learn by. i need someone showing me how to do it), and people serve little to no help.

it's not my fault i couldnt find a tutorial on the adventure that is brewing potions that could suit me.

so tell me, how would i add it. show me what you would do?

 

or is this to much to ask.

 

and i also got that command from insdie the registry.

 

all the tutorials dont explain shit, they just say do this.

Link to comment
Share on other sites

You need to understand Java and OO programming in general before you can make a mod. There won't be a tutorial for everything, so you need to know how to read existing code and use it.

 

The registry already has the methods you need, you just need to call one of them with the appropriate arguments.

 

Create an

ItemStack

each for your input, ingredient and output items and call

BrewingRecipeRegisty.addRecipe

with these three

ItemStack

arguments. That's all you need to do.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Link to comment
Share on other sites

Yes i know. in case it's a new concept, I am using Minecraft to teach myself. and then if i feel comfortable enough with it, then i will continue on to something else.

however, at this point, i will make it known that i do not learn by people repeating the fact that i don't know java.

no shit

i am learning

i am asking for help.

just help.

 

 

now can you, straight up, tell me if i need to (and how to) register these the same was i register my smelting and shaped and shapeless recipes?

Link to comment
Share on other sites

i am aware of all of those things.

however, what you people dont seem to undertsand that for this particular thing i need the answer "spoon fed" to me, because i dont understand it. and i am teaching myself java for minecraft, thats what i want to know at the moment, so thats all im looking for, and if being "spoon fed" the answer will help me get to my acheivment, because adding a recipe such as this is only a percentage of what i am doing here in this mod.

 

so if you could be so kind as to give me  line that is an example of what you have given me. because all i ahve right now is

 

BrewingRecipeRegistry.addRecipe.............................fuck it

Link to comment
Share on other sites

Because you do not know how to invoke a method then any response we could give to help you would be spoon feeding. Because you do not know a basic, fundamental, operation of object oriented programming.

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.

Link to comment
Share on other sites

when learning math does the teacher not show you examples of how to do it with COMPLETE examples.

 

its not spoon feeding. its this is how you do it, now adapt it to yours. learn from it.

Link to comment
Share on other sites

Except that this isn't math, this is English, and I told you to write a story of your summer vacation.

 

And you want me to provide you with an example summer vacation story that includes you traveling to Disney Land.

 

Or alternatively if you want to stick with the math analogy, it looks like this:

 

Me: "With the function f(x): y = x2, what is Y when X equals 3?"

You: "What do you mean 'squared'?"

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.

Link to comment
Share on other sites

so this?

 

BrewingRecipeRegistry.addRecipe(ItemStack input, ItemStack ingredient, ItemStack output)

 

This is the correct Method for adding a simple brewing recipe, now you only need to calm them correctly (now it is wrong).

catch(Exception e)

{

 

}

Yay, Pokémon exception handling, gotta catch 'em all (and then do nothing with 'em).

Link to comment
Share on other sites

yes that is the portion of java i am trying to grasp. i have clearly done it before in the mod somewhere, but i dont get it because im learnring form shit tuorials.

 

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

I learned AHK, HTML, PHP and SQL first, then wanted to make a mod. I was confused when everyone was talking about "methods" when I was used to hearing them called functions.

 

Functions and methods aren't the same thing, a method is a special kind of function:

 

http://stackoverflow.com/questions/155609/difference-between-a-method-and-a-function

 

A method is a piece of code that is called by name that is associated with an object. In most respects it is identical to a function except for two key differences.


  •    
  • It is implicitly passed the object on which it was called.
       
  • It is able to operate on data that is contained within the class (remembering that an object is an instance of a class - the class is the definition, the object is an instance of that data).

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.

Link to comment
Share on other sites

this....

 

// The following adds a recipe that brews a piece of rotten flesh "into" a diamond sword resulting in a diamond hoe

        BrewingRecipeRegistry.addRecipe(new ItemStack(Items.diamond_sword), new ItemStack(Items.rotten_flesh), new ItemStack(Items.diamond_hoe));

 

 

is the first thing i looked at ad tried to use.

 

you have methods that need to be called on. these methods determine how the object in the game run, correct?

 

but i guess i just wasn't asking the right question.

 

where do i register these methods, in the main, client, common, or the varying order.

 

 

and to respond to the rest. i do not have a firm grasp on it, and what you have me was helpful so thank you, and i am workign towards that grasp.

Link to comment
Share on other sites

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

    • OLXTOTO: Platform Maxwin dan Gacor Terbesar Sepanjang Masa OLXTOTO telah menetapkan standar baru dalam dunia perjudian dengan menjadi platform terbesar untuk pengalaman gaming yang penuh kemenangan dan kegacoran, sepanjang masa. Dengan fokus yang kuat pada menyediakan permainan yang menghadirkan kesenangan tanpa batas dan peluang kemenangan besar, OLXTOTO telah menjadi pilihan utama bagi para pencinta judi berani di Indonesia. Maxwin: Mengejar Kemenangan Terbesar Maxwin bukan sekadar kata-kata kosong di OLXTOTO. Ini adalah konsep yang ditanamkan dalam setiap aspek permainan yang mereka tawarkan. Dari permainan slot yang menghadirkan jackpot besar hingga berbagai opsi permainan togel dengan hadiah fantastis, para pemain dapat memperoleh peluang nyata untuk mencapai kemenangan terbesar dalam setiap taruhan yang mereka lakukan. OLXTOTO tidak hanya menawarkan kesempatan untuk menang, tetapi juga menjadi wadah bagi para pemain untuk meraih impian mereka dalam perjudian yang berani. Gacor: Keberuntungan yang Tak Tertandingi Keberuntungan seringkali menjadi faktor penting dalam perjudian, dan OLXTOTO memahami betul akan hal ini. Dengan berbagai strategi dan analisis yang disediakan, pemain dapat menemukan peluang gacor yang tidak tertandingi dalam setiap taruhan. Dari hasil togel yang tepat hingga putaran slot yang menguntungkan, OLXTOTO memastikan bahwa setiap taruhan memiliki potensi untuk menjadi momen yang mengubah hidup. Inovasi dan Kualitas Tanpa Batas Tidak puas dengan prestasi masa lalu, OLXTOTO terus berinovasi untuk memberikan pengalaman gaming terbaik kepada para pengguna. Dengan menggabungkan teknologi terbaru dengan desain yang ramah pengguna, platform ini menyajikan antarmuka yang mudah digunakan tanpa mengorbankan kualitas. Setiap pembaruan dan peningkatan dilakukan dengan tujuan tunggal: memberikan pengalaman gaming yang tanpa kompromi kepada setiap pengguna. Komitmen Terhadap Kepuasan Pelanggan Di balik kesuksesan OLXTOTO adalah komitmen mereka terhadap kepuasan pelanggan. Tim dukungan pelanggan yang profesional siap membantu para pemain dalam setiap langkah perjalanan gaming mereka. Dari pertanyaan teknis hingga bantuan dengan transaksi keuangan, OLXTOTO selalu siap memberikan pelayanan terbaik kepada para pengguna mereka. Penutup: Mengukir Sejarah dalam Dunia Perjudian Daring OLXTOTO bukan sekadar platform perjudian berani biasa. Ini adalah ikon dalam dunia perjudian daring Indonesia, sebuah destinasi yang menyatukan kemenangan dan keberuntungan dalam satu tempat yang mengasyikkan. Dengan komitmen mereka terhadap kualitas, inovasi, dan kepuasan pelanggan, OLXTOTO terus mengukir sejarah dalam perjudian dunia berani, menjadi nama yang tak terpisahkan dari pengalaman gaming terbaik. Bersiaplah untuk mengalami sensasi kemenangan terbesar dan keberuntungan tak terduga di OLXTOTO - platform maxwin dan gacor terbesar sepanjang masa.
    • OLXTOTO - Bandar Togel Online Dan Slot Terbesar Di Indonesia OLXTOTO telah lama dikenal sebagai salah satu bandar online terkemuka di Indonesia, terutama dalam pasar togel dan slot. Dengan reputasi yang solid dan pengalaman bertahun-tahun, OLXTOTO menawarkan platform yang aman dan andal bagi para penggemar perjudian daring. DAFTAR OLXTOTO DISINI DAFTAR OLXTOTO DISINI DAFTAR OLXTOTO DISINI Beragam Permainan Togel Sebagai bandar online terbesar di Indonesia, OLXTOTO menawarkan berbagai macam permainan togel. Mulai dari togel Singapura, togel Hongkong, hingga togel Sidney, pemain memiliki banyak pilihan untuk mencoba keberuntungan mereka. Dengan sistem yang transparan dan hasil yang adil, OLXTOTO memastikan bahwa setiap taruhan diproses dengan cepat dan tanpa keadaan. Slot Online Berkualitas Selain togel, OLXTOTO juga menawarkan berbagai permainan slot online yang menarik. Dari slot klasik hingga slot video modern, pemain dapat menemukan berbagai opsi permainan yang sesuai dengan preferensi mereka. Dengan grafis yang memukau dan fitur bonus yang menggiurkan, pengalaman bermain slot di OLXTOTO tidak akan pernah membosankan. Keamanan dan Kepuasan Pelanggan Terjamin Keamanan dan kepuasan pelanggan merupakan prioritas utama di OLXTOTO. Mereka menggunakan teknologi enkripsi terbaru untuk melindungi data pribadi dan keuangan para pemain. Tim dukungan pelanggan yang ramah dan responsif siap membantu pemain dengan setiap pertanyaan atau masalah yang mereka hadapi. Promosi dan Bonus Menarik OLXTOTO sering menawarkan promosi dan bonus menarik kepada para pemainnya. Mulai dari bonus selamat datang hingga bonus deposit, pemain memiliki kesempatan untuk meningkatkan kemenangan mereka dengan memanfaatkan berbagai penawaran yang tersedia. Penutup Dengan reputasi yang solid, beragam permainan berkualitas, dan komitmen terhadap keamanan dan kepuasan pelanggan, OLXTOTO tetap menjadi salah satu pilihan utama bagi para pecinta judi online di Indonesia. Jika Anda mencari pengalaman berjudi yang menyenangkan dan terpercaya, OLXTOTO layak dipertimbangkan.
    • I have been having a problem with minecraft forge. Any version. Everytime I try to launch it it always comes back with error code 1. I have tried launching from curseforge, from the minecraft launcher. I have also tried resetting my computer to see if that would help. It works on my other computer but that one is too old to run it properly. I have tried with and without mods aswell. Fabric works, optifine works, and MultiMC works aswell but i want to use forge. If you can help with this issue please DM on discord my # is Haole_Dawg#6676
    • Add the latest.log (logs-folder) with sites like https://paste.ee/ and paste the link to it here  
    • I have no idea how a UI mod crashed a whole world but HUGE props to you man, just saved me +2 months of progress!  
  • Topics

×
×
  • Create New...

Important Information

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