Everything posted by Draco18s
-
Recompiling Error?
Ignore it. Client and server are the same thing these days, I don't know why that error is there, but it's not critical.
-
How do I generate blocks like clay
par3/4/5 are an XYZ block location. IWorldGenerator passes a chunkX and chunkZ (so cX of 10 = world location of 160). You'll have to calculate Y manually. See this class for an example.
-
Infinite Sprite Indexes
There are no sprite indexes any more. Sprite sheets are generated at runtime from separate icon images.
-
How do I generate blocks like clay
return true/false; -> return;
-
How do I generate blocks like clay
Uh huh. You add the unimplemented methods, the move the code that exists in the methods you have into those methods.
-
How do I generate blocks like clay
Then implement IWorldGenerator rather than extending WorldGenerator Note: That will probably cause errors, which you will need to fix, but the bulk of what you want to happen will remain constant. You'll probably just end up retyping a variable or method name.
-
[1.6.4] How to use metadata of a block?
Er, no. That won't work. The bitwise AND you've got there will return 0 all the time, because this happens: 1101 (this is a metadata value expressed in binary. 0011 (3, binary) 0100 (4, binary) metadata & 3 = (1101) & (0011) -> 1 & 0 = 0, 1 & 1 = 1 -> 0001 previous result & 4 = (0001) & (0100) -> 0000 In order to get the 4 directions preserving on/off and open/close you'd just return the metadata value without modifying it.
-
How do I generate blocks like clay
worldGen = new WorldGenLithium (someVal); GameRegistry.registerWorldGenerator(worldGen);
-
How do I generate blocks like clay
This may be helpful (note: several things are going on in that class, quicksand is the only one you need to look at). I'm not sure that clay uses WorldGenLakes(...) but it probably uses something close.
-
[1.6] Help adding a potion effect when my item is held
See line 153. Probably not the best method in the world, but it works. (Note: that particular class doesn't care about currently-active status, but that's just a flag)
-
How to get a mod entity from a string
I would direct you to a wiki tutorial I wrote on this very subject, but the wiki appears down. Instead: All the way at the bottom.
-
[1.6.4] Binding Textures
new ResourceLocation("assets/more_apples:textures/gui/container/Status Effect Icons.png"); "assets" is implied, you don't need it.
-
[1.6.4] How to create a block only players can walk through
Have fun Check out lines 134+
-
[1.6.4][Solved] MetaData Item ID Is Conflicting With Regular Item ID
You have not included the error.
-
Custom Mob attacks other Custom Mob [Solved]
And what does EntityMob extend?
-
Custom Mob attacks other Custom Mob [Solved]
So uh. Let me guess. Your mob extends EntityLiving doesn't it? And your mob attacks ALL ENTITYLIVING INSTANCES. 2 + 2 = ? (Side note: the player does not extend EntityLiving)
-
How do make a TnT block primed on placed?
A player object is not required for the TNT to function, but that particular function has one available. Slight difference.
-
[1.6.4][Solved] MetaData Item ID Is Conflicting With Regular Item ID
Why is this: new ItemStarParts(4002); Not using a config based ID?
-
How do make a TnT block primed on placed?
onBlockPlacedBy will pass a player necessary to make it go boom.
-
How would I make this rotate based on how its placed?
Check out this class, line 63.
-
Editing base classes/coremods
You can use IWorldGenerator to look for huts, actually. They are built with a material that appears no where else in worldgen, IIRC (spruce planks). Generate a bunch of worlds and figure out the Chunk coordinates* of a unique block position of the hut (e.g. the block that makes the door). Because huts are in swamps and at sea level, you will also want the Y coordinate. Check out how I look for pyramids: in this class. Line 63ish. *By which I mean the block's coordinates inside a chunk. 0-16.
-
How do make a TnT block primed on placed?
Fixed that for you. Madao, why are you using ModLoader.addName instead of LanguageRegistry.addName? ModLoader.addRecipe instead of GameRegistry.addShapedRecipe ?
-
Custom Mob attacks other Custom Mob [Solved]
~CODE~
-
Internet Interaction
Ok, basic question: Why?
-
Block with 100 metadatas problems
Learn Java
IPS spam blocked by CleanTalk.