Jump to content

How do i make my own variant of the brewing stand?


Drachenbauer

Recommended Posts

Hello

 

I noticed, that a brewing-stand fit´s perfectly onto a square-shaped block, if it had four plates for bottles.

I can create souch a block-model and it´s bottle-parts, based on the vanilla-brewing-stand and i can draw it´s inventory-window with four little squares, where the normal one has three.

But how do i tell the game to place item-slots in theese new positions?

And how do i make it use normal brewing recipes and have four bottles of potion as output instead of three?.

 

Link to comment
Share on other sites

13 minutes ago, Drachenbauer said:

But how do i tell the game to place item-slots in theese new positions?

Inside your container. Containers control what slots are where and handle syncing everything.

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)

Link to comment
Share on other sites

That would depend on how recipes are already implemented. I would start off by finding out how normal brewing stands make 3

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)

Link to comment
Share on other sites

  • 1 month later...

In the BrewingStandBloch i find "BlockStateProperties.HAS_BOTTLE_0" and the same with 1 and 2.

It seems like BlockStateProperties is a vanilla-class

How do i add one more for the fourth bottle?

 

And for the TileEntity:

I extend LockableTileEntity, because if i extend BrewingStandTileEntity, i cannot pass my TileEntityType to the constructor.

So i copied the whoole code of BrewingStandTileEntity into my one.

But i´m not sure, where i have to do some changes to add one more inventory-slot

 

Edit

I had to change the position of the bubbles and the arrow on the brewingstand-window a bit to fit four slots.

Wich values on my screen-class (copy of the brewingstand´s screen-class) must i change to change the positions for the white overlays?

Edited by Drachenbauer
Link to comment
Share on other sites

If you look at the class, you can tell that blit draws the binded texture to the screen. It would make sense that the first blit renders the entire screen since it is the gui and background layer to be rendered. This would mean that all other blits are used the render the overlays (arrow, bubbles, blaze input). Deconstructing that further, the integer l seems to clamp down a value divided by 20 between 0 and 18. It also has a integer of k which, if you search what it equals to, is the fuel or blaze input. This means that the blit that is handled by integer l is the blaze input. This means that the last two blits handles either the arrow or the bubbles. Since the second blit of the last two clearly handles the bubbles (it says bubblelengths), then the first blit of the last two must handle the arrow overlay.

Link to comment
Share on other sites

I mean, i don´t know, wich numbers instde theese blits are the position for displaying the graphics.

Is the blaze input the little horizontal bar below the bubbles?

If yes, i moved it together with the bubbles.

 

And i wonder, why there is a longer spiral-wire at the right side of the graphic, where the overlays are?

Edited by Drachenbauer
Link to comment
Share on other sites

How do i register the container with DeferredRegister?

 

I have this in my main-calss constructor:

FourBottlesBrewingStandContainers.CONTAINER_TYPES.register(FMLJavaModLoadingContext.get().getModEventBus());

 

and this in my container-register-class:

public static final DeferredRegister<ContainerType<?>> CONTAINER_TYPES = new DeferredRegister<>(ForgeRegistries.CONTAINERS, Reference.MOD_ID);

 

But i cannot find a way to create the RegistryObject without any red errors in the code...

 

In the vanilla ContainerType-class i found this:

public static final ContainerType<BrewingStandContainer> BREWING_STAND = register("brewing_stand", BrewingStandContainer::new);

 

at other stuff (blocks, items, entities,...), i was able to put the part behind the registryname into the RegistryObject behind the id-name.

But here it is "BrewingStandContainer::new" and it does not work...

 

 This:

public static final RegistryObject<ContainerType<FourBottlesBrewingStandContainer>> FOUR_BOTTLES_BREWING_STAND = CONTAINER_TYPES.register("four_bottles_brewing_stand", () -> FourBottlesBrewingStandContainer::new);

 

gives two errors:

Quote

The target type of this expression must be a functional interface


Type mismatch: cannot convert from RegistryObject<ContainerType<?>> to RegistryObject<ContainerType<FourBottlesBrewingStandContainer>>

 

What else must i place behind the arrow-operator in that line to register a container?

Edited by Drachenbauer
Link to comment
Share on other sites

Push

 

I still don´t know, how to register an inventory-container with DeferredRegister.

 

If i try to use IForgeContainerType like this:

public static final RegistryObject<ContainerType<FourBottlesBrewingStandContainer>> FOUR_BOTTLES_BREWING_STAND = CONTAINER_TYPES.register("four_bottles_brewing_stand", () -> IForgeContainerType.create(FourBottlesBrewingStandContainer::new));

 

i get theese three errors:

Quote

The method create(IContainerFactory<T>) in the type IForgeContainerType is not applicable for the arguments (FourBottlesBrewingStandContainer::new)


The method register(String, Supplier<? extends I>) in the type DeferredRegister<ContainerType<?>> is not applicable for the arguments (String, () -> {})


The type FourBottlesBrewingStandContainer does not define FourBottlesBrewingStandContainer(int, PlayerInventory, PacketBuffer) that is applicable here

 

How do i add a PacketBuffer to the constructor of my container?

 

Edit:

Now i added "PacketBuffer buffer" to the constructor input.

The errors disappeared, but no window opens, if i click on my brewingstand and an error appears in the console:

Quote

[m[33m[15:32:57] [Render thread/WARN] [minecraft/ScreenManager]: Failed to create screen for menu type: fourbottlesbrewingstandmod:four_bottles_brewing_stand

Edit:

Now i placed this in my client-setup:

ScreenManager.registerFactory(FourBottlesBrewingStandContainers.FOUR_BOTTLES_BREWING_STAND.get(), FourBottlesBrewingStandScreen::new);

And it works.

Edited by Drachenbauer
Link to comment
Share on other sites

Now my brewing screen appears and i can place matching items into all the slots.

And the model also shows bottles on the matching positions (view from south matches perfect with the slots on the brewing-window).

 

But as i tested a brewing process, the fourth bottle disappeared at the finish.

 

Edit:

i had to increase some InventorySlot values in the TileEntity and the Container by 1.

Now everything works fine.

 

Edit again:

As i used it in the actual game, i noticed, that at placing it, for a short moment a bottle appears on one of the filling arms.

Seams like a boolean for one of them is true for a short moment after placing.

 

Edit fixed:

The constructor of the Block has aline, that sets the states for the filling arms in the model to false at first.

It included only three of theese parts.

So i added

with(HAS_BOTTLE[3], Boolean.valueOf(false))

as the fourth part into that line.

I´m sure, that no more bottle will appear at placing the brewing stand now.

Edited by Drachenbauer
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.