
Elyon
Members-
Posts
270 -
Joined
-
Last visited
Everything posted by Elyon
-
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 .
-
Game crashes after adding a custom rendered block
Elyon replied to Mottbro's topic in Modder Support
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)? -
Game crashes after adding a custom rendered block
Elyon replied to Mottbro's topic in Modder Support
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. -
Game crashes after adding a custom rendered block
Elyon replied to Mottbro's topic in Modder Support
java.lang.NullPointerException: Initializing game at com.mottbro.coastercraftmod.model.ModelCoasterCar1.<init>(ModelCoasterCar1.java:779) Post your ModelCoasterCar1.java file, preferably as a gist -
Some things in the log that got my attention...
Elyon replied to latias1290's topic in Modder Support
Working as intended. Carry on -
EntityLivingBase#setAbsorptionAmount
-
assets not assests. Enjoy
-
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
-
Caused by: java.lang.IllegalArgumentException: n must be positive at java.util.Random.nextInt(Random.java:250) ~[?:1.6.0_65]
-
What does your code look like? Please use a gist.
-
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.
-
[1.7.10]How to make blocks work with beacon bases.
Elyon replied to DerpyHoovesMC's topic in Modder Support
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. -
[1.7.10]How to make blocks work with beacon bases.
Elyon replied to DerpyHoovesMC's topic in Modder Support
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. -
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.
-
[1.7.10]How to make blocks work with beacon bases.
Elyon replied to DerpyHoovesMC's topic in Modder Support
*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; } -
[1.7.10]How to make blocks work with beacon bases.
Elyon replied to DerpyHoovesMC's topic in Modder Support
@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. -
[1.7.10] How to make a block give off light.
Elyon replied to DerpyHoovesMC's topic in Modder Support
setLightLevel(1.0f); Next time, look in Block.java for how similar blocks (glowstone, etc.) do it. -
Add -Xmx8192M -Xms8192M to your VM options. Substitute 8192M for the amount of RAM you want Minecraft to have access to.
-
The amount of RAM is your issue, yes. Why are you playing Minecraft on a toaster?
-
Great work, thank you so much!
-
Looking forward to being able to edit existing entries - I would very much like to add parameter names to function parameters
-
[1.7.2] How to check if player is in creative mode
Elyon replied to Electrobob99's topic in Modder Support
Syntax highlighted: https://gist.github.com/ElyonItari/8f277f514db0f64d1de6 Now, let's see... How long have you waited to see if your block spread? -
[1.7.2] How to check if player is in creative mode
Elyon replied to Electrobob99's topic in Modder Support
Are you sure the code runs? Can you paste your entire class, preferably as a gist for line numbers and syntax highlighting? -
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.
-
[1.7.2] How to check if player is in creative mode
Elyon replied to Electrobob99's topic in Modder Support
Is that method ever called? Did you set your block to tick randomly?