Jump to content

Jay Avery

Members
  • Posts

    884
  • Joined

  • Last visited

  • Days Won

    9

Everything posted by Jay Avery

  1. So return a list that contains just one stack.
  2. 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.
  3. A static initializer is a Java concept. https://docs.oracle.com/javase/tutorial/java/javaOO/initial.html
  4. 1.7.10 is no longer supported by forge, your thread will be closed by a mod. You should update to 1.11.
  5. You need to send packets to the client when your TileEntity changes, to update its state.
  6. Is this the package that your class is in?
  7. Okay. But we need to see all of your actual code to help you with the problem.
  8. 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.
  9. 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.
  10. 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?
  11. You can't get the block in the game? That's not a texture problem, it means the block hasn't been registered [correctly].
  12. 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?
  13. You haven't fixed it, it's still not finding the file it's looking for. What did you change?
  14. 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.
  15. 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.
  16. 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.
  17. So, do you have a file at this exact location? All lowercase folder and file names, no typos?
  18. It's looking in the folder models/block, not models/blocks.
  19. Do you have a mdoel json file at this location?
  20. 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
  21. 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.
  22. 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.
  23. So where does it get to?
  24. Do you have an image file at alcm:textures/item/arouraingot.png?
  25. 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
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.