Everything posted by Draco18s
-
[1.14.4] GUI is tiled
You didn't tell the parent class what your gui width and height are, so it assumes the default values, which are out of an assumed total of 256 when calculating UVs (which are what's actually used when drawing the gui).
-
get texture from block
IStateMapper "serializes" a BlockState into a json string. For example, see this implementation I used in order to use different json files based on the two values of a boolean property: https://github.com/Draco18s/ReasonableRealism/blob/1.12.1/src/main/java/com/draco18s/flowers/states/StateMapperFlowers.java
-
1.12.2-1.15.2 mod
Correct. 1.12 and 1.15 is so radically different that it is fundamentally impossible.
-
get texture from block
I've never done it, so I don't know the specific process. But also be aware that multiple faces (or none!) could match that normal vector for an arbitrary block model.
-
get texture from block
You need to figure out which face of the model you're interested in.
-
[1.14.4] ContainerGUI not syncing with Server
GUI-Slots are, yes. But your button doesn't hook into those mechanisms. You must send a packet. See this (old, 1.12) code: https://github.com/Draco18s/ReasonableRealism/blob/1.12.1/src/main/java/com/draco18s/ores/client/gui/GuiContainerOreCart.java#L77
-
[Solved][Outdated]How to override/use blocks without custom class
I am pretty sure this is not what you meant.
-
[1.15.2] Trouble with BlockStates
Also Forge. https://github.com/MinecraftForge/Documentation
-
[Solved][1.15.2-31.1.1] @SubscribeEvent not working in ExampleMod
DeferredRegister is newer than @ObjectHolder
-
[1.14.4] Slider GUI Component.
Also, look at the creative inventory gui for doing scrolling stuff.
-
[Solved][1.15.2-31.1.1] @SubscribeEvent not working in ExampleMod
What if some other mod wants to override your item's class with a new class in order to add functionality? Now your mod would think that your item is one thing and the game would think your item was another thing, because it was overwritten in the registry. @ObjectHolder synchronizes those things so that your mod gets the correct reference. What if you want to reference an item from another mod, but don't know if that mod is loaded or not? @ObjectHolder, check it for null.
-
[Solved][1.15.2-31.1.1] @SubscribeEvent not working in ExampleMod
Static is for things that are members of the class, not to an instance of the class. Math.PI and Math.Pow() are examples. There is no need to call new Math() in order to access those.
-
Block texture broken
You have 14 items in your inventory. All of them have working textures. Mind providing more detail?
-
s
A client cannot know it's own external IP address. It has to ask someone else "reply back to me the address this message came from"
-
(Solved)[1.15.2]How do I add custom loot tables?
I'm not sure what part of YOU DO NOT REQUIRE JAVA CODE was not made painfully clear. You do not need java. No java. No code. Only data json files. Put the json files in the right place and it will be loaded automatically FOR you. You do not need to do anything.
-
Changing vanilla recipes, block drops, and hardness
Override the data json files.
-
(Solved)[1.15.2]How do I add custom loot tables?
Dude. This isn't that hard. Loot tables are json files. Put the json files in the right location and it happens automagically.
-
(Solved)[1.15.2]How do I add custom loot tables?
Cool. But not relevant. This does not require java code.
-
[1.14.4] My TileEntities are not being registered properly & ConcurrentModification Exception
You never assign the objects in your BlocksList class to anything.
-
[1.14+] Advice to block harvest level modification
I doubt it. All of those properties are final, now.
-
[Solved]1.15 Hook into world generation
Do that.
-
Minecraft FTB Crashing constantly with shaders
1) We support people who make mods, not the people who use them 2) Complain to whomeever put that together 3) 1.7.10 is 5 years, 8 months old. Fucking update already. We don't give a shit what mod you're using that has no modern counter part, we can't support software indefinitely.
-
[SOLVED] [1.15.2] Capability#getDefaultInstance is returning null
Can you please edit your post and click this button next time: Because without doing that your spoiler blocks are 4000 pixels tall and completely useless.
-
Items look weird and crooked in inventory
Those are graphical assets, but they are not in the UI. Draw what the player will see when they open their inventory.
-
[1.14.4] Any way to hook into Elytras code?
I have never said it's not possible, I've said that you have to replicate the behavior yourself in an event handler because the vanilla code cannot be used.
IPS spam blocked by CleanTalk.