Everything posted by Draco18s
-
How do I generate blocks like clay
You're being too vague. Run through that loop, use a piece of paper to track variables if you have to, what is it actually doing?
-
How do I generate blocks like clay
What happens on the first loop?
-
How do I generate blocks like clay
for(int corY=0;corY < 64 && corY > 48; corY++) { //you have a problem here.
-
[SOLVED] Item Overriding? Very confused - Forge 1.6.2
This one actually worked! Thanks! Because he gave you the solution rather than making you think about what you were doing. You have learned: nothing.
- Resizing the Lightmap
-
[SOLVED] Item Overriding? Very confused - Forge 1.6.2
I think I am. adminiumPickaxe = new TriniumPickaxe(IDs.adminiumPickaxe_actual,) etc..... That's USING the variable, not GIVING IT A VALUE. *Facepalm* int a; //a does not have a value int b = 10 + a; //b is now undefined becasuse 'a' DOES NOT HAVE A VALUE
-
Stopping the use of a item/tool
There's also an .equals() function in class ItemStack, which will compare two item stacks for equality (same item ID, same metadata, same NBT tags).
-
How do I generate blocks like clay
You would have to loop through the 16 variations on x and z. Best bet is to pick a spot inside the chunk (add that value to those two lines) and when you find clay, then loop across x and z.
-
How do I generate blocks like clay
That would do it.
-
How do I generate blocks like clay
Same class I've linked like three times. Lines 84-122.
-
Resizing the Lightmap
I would suggest that for held items, that the light value just be grayscale lighting (i.e. like vanilla). I don't think its really worth the overhead of trying to do calculated lighting on inventory items and ItemEntity objects.
-
Block with 100 metadatas problems
If you have background in any language, then you should be OK. I picked up Java (well enough to mod) by trying to mod. There's no way I could ever create a huge chunk of something like Minecraft from scratch (managing GUIs, rendering, multiplayer...nope, can't build from scratch)
-
How reading the configFile works, makiing a config organiser for modpacks
Oh god. Someone on this forum, but that was weeks ago. I don't even know how I'd go about searching for that post. Ah ha! Found it. http://www.minecraftforge.net/forum/index.php/topic,12811.msg66406.html#msg66406
-
How reading the configFile works, makiing a config organiser for modpacks
That's also the general reason why Forge doesn't do any auto-ID assigning. Mod load order (which could be different between client and server, despite having the same mods) could alter the ID assignment. I hear that Minecraft 1.7 will supply a solution to this, though.
-
How do I generate blocks like clay
You would need to poll the chunk for those blocks (see my "locate stronghold" code) then perform a replacement if the RNG says so.
-
1.6.2 Client can't register mob textures ?
Make sure you added the right Forge version to your clean workspace.
-
How reading the configFile works, makiing a config organiser for modpacks
Ah yes, I know of it. No idea if that's up to date or not. I do admit that it has advantages over my tool, though I built my tool as a no nonsense checker. It has its flaws, but it should at least get people to understand how config files work so that when it does fail, they can do it manually.
-
Forge decompiling error, tried everything
DEcompiling. He doesn't have code. I would delete your entire setup (the Forge folder) and redownload.
-
How do I generate blocks like clay
Take a look at my IWorldGenerator class again. Specifically the ch variable.
-
[SOLVED] Item Overriding? Very confused - Forge 1.6.2
I have my own set IDs.java which holds all my IDs. which is the code below public static int adminiumPickaxe_actual; That line does not set a value. Where is that variable initialized?
-
How reading the configFile works, makiing a config organiser for modpacks
You mean http://www.minecraftforum.net/topic/1597274-tool-block-id-conflict-resolver/ ? It shouldn't need updates (other than there being configs it outright won't handle).
-
Searching for a strength modifier
You mean weapon damage? Yeah it exists, though a mite annoying to add. The "attached" function is the only one you're interested in: https://github.com/Draco18s/Artifacts/blob/master/draco18s/artifacts/components/ComponentDamage.java It should be noted that this is a custom class type and that function is run when the item is instanciated (and deals with NBT to determine material), so for you you just need to put that into your item's constructor.
-
[SOLVED] Item Overriding? Very confused - Forge 1.6.2
Change every instance of ItemStart++ that you have like this: public static final int beefStew_default = ItemStart ++; to ++ItemStart Or you'll get a conflict error because... int i = 0; System.out.println(i++); //prints 0 //at this point i is equal to 1 System.out.println(++i); //prints 2
-
Add enchantment to pickaxe
Check the function at line 391.
-
[SOLVED] Item Overriding? Very confused - Forge 1.6.2
You'll actually want ++ItemStart.
IPS spam blocked by CleanTalk.