Everything posted by Draco18s
-
Learning Advancements
I'd add Capabilities in there between Block with Entity and Custom Crafting table. Which necessitates the Packets.
-
[1.10] Disable container item double click.
Still abstract, still has a bunch of methods that are tacked on without apparent purpose, still didn't answer diesieben07's question.
-
{Solved}[1.10.2] Block texture unable to be located
You see this bit in your blockstate file? "model": "cube_all" What do you suppose that does and what you might do to change it such that your model is used instead?
-
Chunk Handling
I had to logout/login at that point, as the client was unable to keep traveling farther. It was busy trying to fall.
-
[1.8]Make booleans stay after quitting Minecraft
He is not checking equality. Ah, you are correct. But yes, still nonsense.
-
[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.
IPS spam blocked by CleanTalk.