-
Content Count
15923 -
Joined
-
Last visited
-
Days Won
143
Posts posted by Draco18s
-
-
-
GUIs aren't that difficult. There's dozens of tutorials for them and they haven't really changed all that much in ten years.
-
Posted · Edited by Draco18s
Yeah, because you're passing in a height value that's 2.5 times taller than the vanilla Button renderer expects. It expects that all UI buttons are only 20 pixels tall and the sprite sheet reflects that. So what you're seeing is other areas of the UI sprite sheet.
(Is the vanilla code broken? Yes. Does Mojang care? No)
-
-
1 hour ago, Lellian said:() -> new Block(AbstractBlock.Properties
Cough.
1 hour ago, Lellian said:public class ExampleBlock extends Block {
-
Really high level nonsense, all modifiers are invoked any time any loot is dropped by anything.
The LootConditions result in most of those modifiers effects being skipped (because the conditions were false, and that includes things like "a zombie died? Well that wasn't iron ore..."), but they're still checked.
The point was to create a system that replaced HarvestDropsEvent in a way that was as data driven as possible and would layer properly so that multiple mods could modify the same loot table without conflict (eg. adding a new crop seed to tall grass).
As such its complicated to create, but it is more better than any other approach for all the reasons that those other approaches are broken.
-
17 minutes ago, AzizD said:This is not the issue.
I didn't say it was. I was asking why you did it because its stupid.
-
-
3 hours ago, AzizD said:ItemEntity entity = new ItemEntity(getEntityWorld(),this.getPosX(),this.getPosY(),this.getPosZ());
Why is this a class property and not a local variable?
-
-
I said folder, not file. I don't care about your lang.json, I care about a folder named Lang.
-
Apparently its been like that for 4 years.
-
1
-
-
Posted · Edited by Draco18s
sounds.json is just a file that Minecraft was looking for at a given location. It doesn't make sense that it was doing so, but that's what gets reported, just because of how Minecraft is poking around the assets directories.
Do you have a folder named Lang? (even if empty)
Is your modID Lang?
-
"If I never tell the structure about this property, will it know about it?"
Think about that for a minute.
No.
In fact, the nbt file may just straight up fail because the serialized BlockState doesn't match the new data.
-
1
-
-
-
Posted · Edited by Draco18s
25 minutes ago, DoctorC said:I want to add it on the Itemstack, not the item (I've tried Item.addInformation), but I'll look into RenderTooltipEvent.
Thanks!
ItemStacks are Stacks of an Item.
addInformation in the ItemClass is passed the relevant ItemStack for you to make any determinations based on other data. But only works for your own items.
RenderTooltipEvent would be if you need to add information to an Item you don't control (and gets the same parameters addInformation does).
-
-
-
-
2 hours ago, applegod said: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.
It's how forums work. Its not something special about this board.
2 hours ago, applegod said: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?
You would need a new crafting type, but your custom furnace could load both the vanilla recipes and your custom one.
-
Posted · Edited by Draco18s
17 minutes ago, applegod said:How do I mark this thread solved?
Welcome to a "forum" where there are not questions and answers, but merely a discussion. This is not Stack Exchange.
There is no such thing as "marking a thread solved" beyond changing the thread title with "edit post" to manually type "solved" yourself.But that is an optional and subjective act.
You could just as easily type "Resolved" or "Found the Answer" or "Answered."
-
2 minutes ago, applegod said:but what is the json template for creating smelting/blasting recipes?
Browse the game's files for them?
They're in client.jar like the crafting table recipes. -
2 hours ago, applegod said:Yeah but for that I need a custom tile entity class and a custom tile entity type and register all that don't I?
Yes. Which is where you store the inventory. You can't store it anywhere else...
2 hours ago, applegod said: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.
Vanilla code is a pretty good resource. Just ignore anything about IInventory and use the Forge supplied Capabilities system instead.
-
Tile enntities haven't changed significantly in several versions.
Override hasTileEntity and createTileEntity in your block class.
Cannot interact with MinecraftForge repositories
in Modder Support
Posted
Yeah I looked at your comments (there were all of about five). Nothing stood out.
Start with the mods here, I guess.