Hey,
so my question is - how would I for example draw a line in the word? Or even draw a shape? Just something like the lines in chunk borders or in hitboxes. (I found that it used to be done with GL11 and Tessellator but I couldn't find a way to do it in 1.16)
Thanks in advance
Hey,
I think the title explains itself pretty well - my question is: how to change the session name of the debug account from "Dev" to anything else?
Any help would be appreciated, thanks in advance!
Alright thanks, as I'm sure you can see I'm new to this forum and nothing about this subject was written in the rules.
Just one more question tho, how would I make it so that my custom smelting recipe only works in my custom furnace block? I understand that I could create a new crafting type (like smelting, blasting, shaped crafting etc...) but then I couldn't use vanilla smelting recipes in that custom furnace unless I manually added every single one of them to the new type which I don't want to do. Is there some condition argument about which smelting is happening that I could just add to my json file?
Oh wow thanks, found it. Btw for example its:
{
"type": "minecraft:smelting",
"ingredient": {
"item": "minecraft:clay_ball"
},
"result": "minecraft:brick",
"experience": 0.3,
"cookingtime": 200
}
PS: How do I mark this thread solved?
Hey, I know it's possible to register new recipes in two ways: .JSON files & hard coded recipes. I know how to make a custom crafting table recipe using .json but what is the json template for creating smelting/blasting recipes?
Thank you in advance!
event.enqueueWork(() -> ScreenManager.registerFactory(StartupCommon.containerTypeContainerBasic, ContainerScreenBasic::new));
Used this and everything works perfectly now!
Thank you so much.
Thanks, I understand that's done with
ScreenManager.registerFactory(StartupCommon.containerTypeContainerBasic, ContainerScreenBasic::new);
But where should I put this? In my main startup class next to my bus registries?
Hey, thanks for the advice, I looked into this and got inspired. I'm pretty sure everything works now but when I try to open the container I get an error that says:
[14:09:56] [Render thread/WARN] [minecraft/ScreenManager]: Failed to create screen for menu type: modId:apple_smelter_container
I don't really understand where the mistake happened. Should I post my code?
Yeah but for that I need a custom tile entity class and a custom tile entity type and register all that don't I?
Could you provide me with any sort of a code example for this?
I understand that there are these functions that create the tile entities etc. but I just don't get how they are generally connected whatsoever.
I think the title is pretty self-explanatory. I have experience with Java & Minecraft (I started with coding spigot plugins), however I am new to Forge.
I have decided that I want to make mods for the newest version (1.16.4), but soon realised there aren't many (almost none) tutorials for this version. I especially cannot figure out (after hours of searching through original Minecraft code) how to create a block that has it's own inventory that can be interacted with and saves when closed. I kinda figured out it has to do with tile entities but because of my lack of knowledge of the Forge API (the docs aren't helpful around this theme whatsoever) when I tried creating something related to tile entities I always encountered some stupid errors that I don't even remember yet.
I would really appreciate any help I can get around this topic because it doesn't seem so straight forward. What I am mainly looking for here is complete code of a fully working yet simple block which basically just stores items (or later even a custom furnace) and upon right click opens a container (inventory/gui) in which these items are stored (for the most part I have already figured this part out) from which I could learn more about this topic.
PS: I already have my block registered and working in game.