Everything posted by Draco18s
-
[1.10.2] World Gen... AND now blockstates too!
Java suggests UpperCamelCase for class names, so in your case it would be MadnessOre . Also called TitleCase. OreMadness, BlockMadnessOre, BlockOreMadness would also be good names ("Block" to match the existing naming convention of Minecraft, BlockStone, BlockDoor, etc.) as well as if you'd like to denote your ores by calling them "BlockOre[x]" or "Block[x]Ore" I favor the former (it puts all ore blocks near each other when sorted alphabetically) whereas the latter reads more naturally.
-
1.11 Stuttery Flight
Nope. That checks physical side, not logical side. SSP will return true for both the client and server in that case. If you want logical side, you MUST check world.isRemote (read it as "world.isClient").
-
[1.10] Changing recipes when connecting to server
When the player joins a server, send a packet with a list of booleans about each recipe. When the packet is received, remove all your recipes from the recipe lists, then add back all the ones set to True. https://github.com/Draco18s/ReasonableRealism/blob/master/src/main/java/com/draco18s/hardlib/util/RecipesUtils.java#L44
-
[1.8]Make booleans stay after quitting Minecraft
Well that will never be true. true != false or false != true Think about what you're doing for a minute, then stop being an idiot.
-
Chunk Handling
This is particularly amusing with the vanilla boat desync bug. I once was traveling so far by boat that the client-player (me) ended up in an unloaded chunk (client side, obviously). I could see the chunks that were loaded in front of me, but I was not in them.
-
[1.10.2] World Gen... AND now blockstates too!
In 99% of cases the fix is not to remove the annotation. This is because Eclipse cannot determine what the correct method signature is.
-
{Solved}[1.10.2] Block texture unable to be located
This is completely unaffected of what is in the run Directory. there is nothing in there after all The run directory is just runtime stuff: world saves, screenshots, config files, etc. The only directory you should have to worry about is src\main\resources, as that is copied to bin\main\resources when you click "run." Can you show a screenshot of the directory structure as seen by Windows?
-
[1.11]Spawning ItemEntity
My guess is that you haven't registered your entity.
-
{Solved!!!} [1.10.2] Block Textures Not Loading
You need to call setCustomModelResourceLocation during preInit
-
[1.10] Outside eclipse, server crashes or disconnects when using one of 3 blocks
worldObj is null when you read from NBT. You are not allowed to reference the world before the TE has been given a world, which happens AFTER it's read from disk.
-
{Solved!!!} [1.10.2] Block Textures Not Loading
You replace it with the Item
-
{Solved!!!} [1.10.2] Block Textures Not Loading
Now do the same thing for your ModItems class. (Also, you should definitely mark your registerRenders methods as SideOnly(Client) because the ModelLoader is a client side class. You won't see a problem right now because the class itself isn't marked SideOnly(Client) for some reason, but it might be in the future).
-
{Solved!!!} [1.10.2] Block Textures Not Loading
Ah, you edited it in while I was posting. Good job.
-
{Solved!!!} [1.10.2] Block Textures Not Loading
Oh for fuck's sake. How do you use this? Like this: ModelLoader.setCustomModelResourceLocation(item, metadata, modelResourceLocation) Holy balls batman. It's almost like I gave you the answer the first time. As for #1, my mistake. I double checked my code and there shouldn't be anything you need to do for the in-world block renderer (I forget that it's handled automatically). However, if there is a problem, you need to post the error that the game spits out (otherwise I don't know what to look for).
-
[1.10.2] FileNotFoundEx for native ResourceLoc, when using ResourcePack only
This makes no sense. The error is not thrown until after all the loaders have failed to load the file. If the file is loaded at all then no error is thrown.
-
{Solved!!!} [1.10.2] Block Textures Not Loading
Sooo.... #1: your registerRender method only registers a model for the Item form of your block. #2: don't use the ModelMesher. Use ModelLoader.setCustomModelResourceLocation.
-
[1.10] Outside eclipse, server crashes or disconnects when using one of 3 blocks
> It crashes > No crash log posted Yeah, I can totally solve this without knowing what the error was and where... You also didn't post the DataConnectedDevice class. Also, why are you still using IInventory? You should be using capabilities.
-
[SOLVED] Trying to count Trees at World Gen : How to iterate through blocks ?
Also, for reference, when I was doing something similar, even when delaying the tree detection via Custom Ore Gen's delayed population (that is, a chunk would only get its ore generated after every adjacent chunk had generated, and I was waiting for COG's "I'm done" event) it would still miss trees. Not very many, but some. Waiting for the end of the vanilla generation phase will miss a lot of trees, due to the cross-chunk-boundary nature of their generation.
-
[1.8]Make booleans stay after quitting Minecraft
So how can I make it work? Make your config variable exist outside local scope.
-
[1.10.2] FileNotFoundEx for native ResourceLoc, when using ResourcePack only
SuppressWarnings is like ignoring that light on your dash telling you to change the oil: The car is going to catch fire and you're just ignoring it. The only reason to use SuppressWarnings is when you know that there's a particular non-critical warning being thrown and that it's not actually a problem. It doesn't fix the problem it just says "I don't wish to be informed." FileNotFound is not a warning, it's an error. The file isn't there, it wasn't loaded. Ignoring it won't suddenly make the file load.
-
[1.11] Making a bush look like a bush.
"parent": "block/cross"
-
[1.11] Print to chat when item is used
Incorrect. Imports are syntactical sugar. They allow you to not need fully qualified names on every reference. Which means, an unused import is not present in compiled code (as all imports are transformed into fully qualified references). However, a single usage of a fully qualified reference (see how imports are compiled) will cause the NoClassDefFoundError to be thrown, unless that usage exists inside a method that is marked @SideOnly(Side.Client) however you can only mark methods as Side-only-client if they themselves are not invoked from common code, as they too are still referenced from the server. (This is why getSubBlocks can be / is marked with side-only-client, because it is only referenced from other side-only-client code).
-
[SOLVED] Trying to count Trees at World Gen : How to iterate through blocks ?
A few things I know: Dirt under a log also detects villager farms. Trees can also sit on top of gravel or in thin air (hooray lakes!)
-
[1.8]Make booleans stay after quitting Minecraft
Because it's only in Local Scope.
-
[1.8]Make booleans stay after quitting Minecraft
It "doesn't work" because it does nothing. Your code literally tells the game to go get the milk out of the fridge, then put it back without doing anything with it. Then you come to the forums and complain that your glass is still empty and that your robot doesn't work. No, your robot is 100% functional, you just gave it a series of instructions that are the equivalent of a NO-OP. "Replace the first word in this sentence with the first word in this sentence." > The first word is "Replace" > Will now replace "Replace" with "Replace" "Replace the first word in this sentence with the first word in this sentence." > Done!
IPS spam blocked by CleanTalk.