Everything posted by Draco18s
-
Texture wont display 1.11
ModelLoader is a static class. That means in stead of: Minecraft.getMinecraft().getRenderItem() You put ModelLoader And then because method names are case-sensitive, you need to use: setCustomModelResourceLocation instead of setcustommodelresourcelocation This really isn't that hard.
-
Question! How do I register a click event on custom main menu buttons!
You're doing everything wrong. 1) you should not pass the event to your GUI. 2) You should create buttons doing initGui. 3) Get button clicks during actionPerformed.
-
Question about a method
Don't use setItemDamage, instead use damageItem. That allows the item stack to resist the damage (unbreakable) as well as a few other things.
-
Coords at cursor
Well, technically machine intervention. The code was never used on the server in vanilla code, so the automated "strip out things not used on the server" process stripped it.
-
[1.10.2 | SOLVED] ExceptionInInitializerError while creating axe
Use the constructor that takes two float arguments.
-
[1.12.2]NBT Packet
You can. ByteBufUtils.writeTag(buffer, nbt); You can also send more than one value in a packet...
-
Coords at cursor
You will need to replicate the behavior of the raytrace yourself.
-
[1.10.2] Help with BlockStates
You need to create a block state container. https://github.com/Draco18s/ReasonableRealism/blob/master/src/main/java/com/draco18s/ores/block/BlockAxel.java#L60-L63
-
1.12 Item not rendering [First Mod]
Your method needs to be static.
-
[1.7.10] Player Property and Packet Handler
*I* do not.
-
[1.7.10] Player Property and Packet Handler
The entire system you're working with in 1.7 has been completely replaced with a new system. Currently supported versions are 1.10.2*, 1.11.2, and 1.12.2 *Officially the supported versions are "current" and "previous" but a lot of the systems are the same between 1.10 and 1.11, so 1.10.2 hasn't quite fallen off the list yet.
- [1.12] Send players data.
-
[1.7.10] Player Property and Packet Handler
1.7.10 is no longer supported here. Update.
-
[1.12] Send players data.
You need to send a list of UUIDs.
-
1.12 Item not rendering [First Mod]
You need to use the registry events. Models need to be registered (exactly as you have) but in the ModelRegistryEvent
-
[1.12] Proper way to preserve BlockState Properties in dropped ItemBlock
Oh yeah, making a custom subclass is easy. You just have to override like, two methods. It just so happens that for the most part, there's already ItemMultiTexture (iirc) that already does it.
-
[1.12] Proper way to preserve BlockState Properties in dropped ItemBlock
Minecraft, they're used by wool, planks, etc. They're easy enough to find. Right click -> open type hierarchy. You'll want the one not called "colored" because it inverts the metadata value because Mojang made colors backwards.
-
1.12 Registering Items [First Mod]
This is an event, you do not invoke it yourself. The @SubscribeEvent annotation is what allows the code to be called when the class it is in is correctly registered as an event handler. http://mcforge.readthedocs.io/en/latest/concepts/registries/#registering-things
-
[1.12] What are subtypes?
Wool has subtypes, so does logs and planks. Iron Ore does not.
-
[1.12] Proper way to preserve BlockState Properties in dropped ItemBlock
There are already two subclasses of ItemBlock, one of which should do what you need. The issue is that the ItemBlock class (by default, unless override by a subclass) ignores metadata when placing its block.
-
PlayerDropsEvent and PlayerEvent.PlayerRespawnEvent not called in anyway?
You have two Living Hurt events: https://github.com/Insane-96/GalaxiteMod/blob/master/common/net/insane96mcp/galaxite/lib/CustomEventHandler.java#L20-L21 https://github.com/Insane-96/GalaxiteMod/blob/master/common/net/insane96mcp/galaxite/lib/CustomEventHandler.java#L79 I'm going to bet that one of them works and the other doesn't.
-
Whats the best way to change vanilla blocks behaviour when events are not available?
Prior to the addition of the registry events, this is the wrong way to do item substitution. You were supposed to use GameRegistry.addSubstitutionAlias which may throw a ExistingSubstitutionException so you had to wrap it in a try...catch block.
-
Texture wont display 1.11
This is because the ModelMesher is Mojang's code and must be called at a very specific point during startup, whereas the ModelLoader is Forge supplied so that you (as a modder) can't fuck up.
-
In this mod why won't my ItemBlock models register?
- In this mod why won't my ItemBlock models register?
My comments were less a comment on you than a comment on the people still using ModelMesher. People bitch at me all the time. No joke. - In this mod why won't my ItemBlock models register?
IPS spam blocked by CleanTalk.
Important Information
By using this site, you agree to our Terms of Use.