Everything posted by Draco18s
-
Forge Error Reached end of file while parsing
Post the whole class.
-
[1.10.2] Event not working at all.
Without seeing your whole code, I can only make guesses. You also didn't post the error, just the line that caused it.
-
[1.10.2] Event not working at all.
This is probably because mov.entityHit is null. You should check for that. Yes. @EventHandler is for FML mod lifecycle events.
-
[1.10.2] Event not working at all.
Why do you have both @SubscribeEvent and @EventHandler?
-
[1.10.2] Redstone and Block States.
If you have a reason to extend the diode, sure.
-
[1.10.2] Event not working at all.
Do you have this anywhere: @SubscribeEvent public void onEvent(MouseEvent event) { //... }
-
[Solved] Looking to get back into Minecraft Modding
That's effectively a library mod. "Coremod" has a specific meaning.
-
[1.10.2] Event not working at all.
Welp, there's your problem. You're not supposed to extend the event classes. You're supposed to create a single function that takes a single parameter (of any Event subtype) and mark it with an @EventHandler annotation. Can you please link the tutorial you were using?
-
Registering enums
Registry name is per block, not per state. You can only set it once.
-
writeToNBT/readFromNBT not called?
Your TileEntity's NBT methods aren't calling super, ergo there is some data loss (the TE's position in the world), and rather than try and recover what it can (because it doesn't know where it goes), Minecraft just creates a new one.
-
[1.10.2] Block renders on world but not in hand
Alternatively you can just add a rotation to your inventory variant.
-
[1.10.2] Block renders on world but not in hand
Yep, because the item version of your block uses metadata:0. If you want it to be a different variant, you need to specify that. (e.g. getSubBlocks)
-
[1.10.2] Block renders on world but not in hand
The ItemBlock still uses a metadata value somewhere. It's probably using 0.
-
[1.10.2] Block renders on world but not in hand
That depends: is the default state the one used for the itemblock?
-
1.10 crashes on start + missing sounds.
The entire Minecraft class is client side only: import net.minecraft.client.Minecraft;
-
1.10 crashes on start + missing sounds.
Your crash occurs in com.minecolonies.colony.Colony which is not available on your github. Also what Jeffry said. Searched what class?
-
[1.10.2] Block renders on world but not in hand
You'd want the only value for the singular variant in that case, yes.
-
Help with recipe class [1.7.10]
Unrelated question: why does your class start with an 'I'?
-
[1.10.2] Block renders on world but not in hand
It's just a loop that determines all the valid states and registers a renderer for them.
-
[1.10.2] Block renders on world but not in hand
https://github.com/Draco18s/ReasonableRealism/blob/master/src/main/java/com/draco18s/ores/client/ClientProxy.java#L54-L56
-
[1.10.2] Block renders on world but not in hand
Oh! Your block has several states. Are you holding one that does not correspond to the default state?
-
[1.10.2] Block renders on world but not in hand
That should work, provided that the block has an item associated with it.
-
[1.10.2] Block renders on world but not in hand
Did you register a renderer for your itemblock?
-
[1.10.2] Block renders on world but not in hand
You need an inventory variant. You'd know this if you read the log.
-
[1.10.2] Metadata Crop Blockstate/Models
IIRC, it gets truncated binarily to 4 bits. That is, 16 and 0 would be identical.
IPS spam blocked by CleanTalk.