-
Posts
884 -
Joined
-
Last visited
-
Days Won
9
Everything posted by Jay Avery
-
[Forge 1.10.2] Create a pickaxe that break unbreakable blocks?
Jay Avery replied to lethinh's topic in Modder Support
So return a list that contains just one stack. -
You're trying to get a slot index that is bigger than the size of the array. It's most likely a mistake with the slot indexing in your container, it can be tricky to get right. I'd recommend stepping through the construction of your container slots in the debugger to find out which indexes they are being associated with and where it goes wrong. If you want more help please post your ContainerBase and ContainerConstructor classes.
-
[1.11.2] Is there any alternate way of FluidContainerRegistry?
Jay Avery replied to LeoCTH's topic in Modder Support
A static initializer is a Java concept. https://docs.oracle.com/javase/tutorial/java/javaOO/initial.html -
1.7.10 is no longer supported by forge, your thread will be closed by a mod. You should update to 1.11.
-
[1.11.2] Update block when something changes on the server side?
Jay Avery replied to Kander16's topic in Modder Support
You need to send packets to the client when your TileEntity changes, to update its state. -
Is this the package that your class is in?
-
Okay. But we need to see all of your actual code to help you with the problem.
-
No, that is absolutely not good enough. If your code was identical to a working tutorial, it would be working, and it clearly isn't. Please just use github.
-
Post ALL of these things together: Blockstates files Block model files Block registration Model registration Main mod class Any reference classes/fields your other code refers to A screenshot of your assets folder structure with all folders expanded We can't help if you just keep posting snippets, changing things in between posts, and not specifying clearly what you have done and what is and isn't working. It's very likely to be an extremely simple issue, but it's impossible for anyone to identify it because you still aren't providing enough information at once. It would be easiest if you just set up a github repo of your whole workspace, but failing that, post all of the things I've listed above.
-
[1.11]Help with Packets, NBT, and Tile Entities
Jay Avery replied to its_meow's topic in Modder Support
You don't need to implement ITileEntityProvider, those methods are in Block so you just need to override them. Actually it is. Minecraft is a client-only class, which means it only exists on the client. Even if it's only referenced inside an if-statement, it will cause a crash on the server because the code contains a reference to something that doesn't exist at all. Override the method getLightValue(IBlockState, IBlockAccess, BlockPos). In there, get the TileEntity and get the light level from it, then return that value. No need for block updates, you just need your TE to store its current light level. Container is for server-side, GUI is for client-side. That seems like kind of an unhealthy justification for this? If you don't enjoy it then just... go for a walk or something instead. It's supposed to be fun y'know? -
You can't get the block in the game? That's not a texture problem, it means the block hasn't been registered [correctly].
-
Can you see what is happening here? Look at the name of the file which the crash report can't find, and look at the name of the file you have in your workspace. Why can't it find the file it's looking for?
-
You haven't fixed it, it's still not finding the file it's looking for. What did you change?
-
That's because this isn't the name of your blockstates file. Your blockstates file needs to have the exact same name as your block's registry name. Right now your registry name is aurorablock and the blockstates file is called blockarouralblock.
-
Okay, and how about all the other information I asked for? I'd like to help if I can, but I can't read your mind and I'm not at your computer looking at your code.
-
You need to be more specific and provide a lot more information. What isn't working? What happens in the game that is not what you expect? What code have you changed since the last crash report you posted? Post ALL your updated code and files. If you can't upload a screenshot to this forum, use another site like imgur and post a link to it so we can see your file structure.
-
So, do you have a file at this exact location? All lowercase folder and file names, no typos?
-
It's looking in the folder models/block, not models/blocks.
-
Do you have a mdoel json file at this location?
-
Do you have a blockstates json file at this location? Please post: Your blockstates file Your block model file(s) The place you register and render your blocks
-
Looks like your post got cut off - show the entire console log. Also please use the code tags (<> icon) and a spoiler (eye icon), it makes code blocks much easier to read.
-
Completely new to modding, but have an idea of what i want.
Jay Avery replied to Bluethefox's topic in Modder Support
You should make sure you have a solid basic understanding of Java before trying to make a mod, otherwise you'll get stuck very quickly, and people on this forum generally have very little patience for helping people with Java knowledge. You'll need to create a GUI class, register a GUI handler and open it when the block is activated. Look at vanilla GUI classes (e.g. command blocks) to see how they work. You just need to check that the radius is the same in both TEs before confirming the swap. World#getBlockState(pos) returns the IBlockState at the given position. Then you can store these in whatever way is easiest. -
Overwritten getItemDropped not being called
Jay Avery replied to DragonFerocity's topic in Modder Support
So where does it get to? -
Do you have an image file at alcm:textures/item/arouraingot.png?
-
Post the following: The whole json file The place you construct and register your item(s) The place you register your models A screenshot of your models + textures folder structure