Jump to content

Elyon

Members
  • Posts

    270
  • Joined

  • Last visited

Everything posted by Elyon

  1. You can use metadata if your information is less than or equal to 4 bits. If it's any more than that, you'll want to look into creating a TileEntity .
  2. java.lang.NullPointerException: Initializing game at com.mottbro.coastercraftmod.model.ModelCoasterCar1.<init>(ModelCoasterCar1.java:1595) What is line 1595 (plus ~5-10 lines of context)?
  3. a77.mirror = true; a77 = new ModelRenderer(this, 103, 34); You access the mirror field before the object has been instantiated. This issue exists for other uninstantiated ModelRenderers, as well. Remove line 779, it is a duplicate of 784.
  4. java.lang.NullPointerException: Initializing game at com.mottbro.coastercraftmod.model.ModelCoasterCar1.<init>(ModelCoasterCar1.java:779) Post your ModelCoasterCar1.java file, preferably as a gist
  5. Working as intended. Carry on
  6. EntityLivingBase#setAbsorptionAmount
  7. assets not assests. Enjoy
  8. Seeing as I asked him to paste quite a bit of code, I prefer gists, as they Are syntax highlighted Have line numbers (that can be highlighted from the URL) Are forkable
  9. Caused by: java.lang.IllegalArgumentException: n must be positive at java.util.Random.nextInt(Random.java:250) ~[?:1.6.0_65]
  10. What does your code look like? Please use a gist.
  11. You're new to forums in general? Welcome, in any case You "reply" to someone simply by posting a reply in the thread you wish to reply in, as you have done now. If you're replying to the entirety of the newest post in the thread, there is no need to "quote" that post, as your reply is implicitly regarded as a reply to either the latest post, the original post, or the topic in general. You will find the Anvil code in build/tmp/recompSrc/net/minecraft/block/BlockAnvil.java. As for NBT tags, there are plenty of tutorials on the subject.
  12. 1 line of code less, maybe - but it is confusing, not indicative of the purpose of the field, as well as taking up 32 or even 64 times more memory.
  13. You are indeed correct, my mistake. public Block setBeaconBase() { isBeaconBase = true; return this; } The reason they return a Block is not to make them usable, but chainable.
  14. Make a class implementing ISimpleBlockRendererHandler , and register this handler. There should be tutorials on the subject. Also, please use [ code ] tags for short snippets of code, and gists for longer snippets with line numbers and syntax highlighting.
  15. *She. Additionally, why use a Block and not a boolean as the private flag for whether the block is a beacon base or not? private boolean isBeaconBase; public void setBeaconBase() { isBeaconBase = true; } @Override public boolean isBeaconBase(IBlockAccess worldObj, int x, int y, int z, int beaconX, int beaconY, int beaconZ) { return isBeaconBase; }
  16. @Override public boolean isBeaconBase(IBlockAccess world, int x, int y, int z, int beaconX, int beaconX, int beaconY, int beaconZ) { return true; } Next time, search for beacon in vanilla sources.
  17. setLightLevel(1.0f); Next time, look in Block.java for how similar blocks (glowstone, etc.) do it.
  18. Add -Xmx8192M -Xms8192M to your VM options. Substitute 8192M for the amount of RAM you want Minecraft to have access to.
  19. The amount of RAM is your issue, yes. Why are you playing Minecraft on a toaster?
  20. Great work, thank you so much!
  21. Looking forward to being able to edit existing entries - I would very much like to add parameter names to function parameters
  22. Syntax highlighted: https://gist.github.com/ElyonItari/8f277f514db0f64d1de6 Now, let's see... How long have you waited to see if your block spread?
  23. Are you sure the code runs? Can you paste your entire class, preferably as a gist for line numbers and syntax highlighting?
  24. You've mentioned the kind of data (basically your description is "random data" so far, which is the worst kind of data to store), but not the access and modification you require. Without this info, anyone would be hard pressed to make suggestions for a storage model.
  25. Is that method ever called? Did you set your block to tick randomly?
×
×
  • Create New...

Important Information

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