Glad to help!
Oops didn't see that there. Eh...... not quite so easy. You can't simply change the texture of the skin to whatever you want, but you can more easily base a new mob with the same shape as any of the mobs. There are also other steps involved. To make a completely custom mob requires a lot more work.
- Registered Member
Member for 9 years, 5 months, and 2 days
Last active Tue, Jul, 17 2018 02:52:34
- 0 Followers
- 412 Total Posts
- 1 Thank
May 1, 2011Hello, yes, you can, I recommend Minecraft Coder Pack, look into EntityPig.java, change the item in getDropItemId(). (If you're new to modding, check out them great tutorials on the forums)Posted in: Modification Development
Hm.. that should be brief enough for ya.. Happy modding!
May 1, 2011Hello there! Looking at the BlockFurnace.java should help.Posted in: Mods Discussion
There there's getBlockTexture() and getBlockTextureFromSide(). I don't know how exactly to use this, but it might be possible to put YourBlock.getBlockTextureFromSide(Modload.addOverride("/terrain.png","yourimage")) and make your image be in a similar format to that of the furnace in terrain.png. Sorry, I haven't tried yet.
But for the recipes, you are using the put() function of java.util.Map. However, you can't just add another parameter to the put function. Originally, the regular uses
Integer.valueOf(i), itemstackbut you added another Integer, making it
Integer.valueOf(i), Integer.valueOf(j), itemstackwhich isn't support by put(). I suggest finding another way to input items.
Er hopefully this helps? Happy modding!
May 1, 2011The thing is that you can't just create any texture file. You'd have to modify the RenderKunaithrown.java so that it takes your model and uses and renders it properly. However I don't know anything about that, so good luck :/Posted in: Mods Discussion
May 1, 2011Posted in: Mods DiscussionQuote from Halo 2 91 »Hello I'm new here, does anyone know of any tutorials of how to make a item with light coming out like a torch? My Idea is a lightbulb that you place in the celling of your house, and replaces the block you put it on with a block with a lightbulb in it? And it would also burn out and you would have to replace it every 40 days. Any Ideas? THANKS!
Hello there, also new. If you don't have the Minecraft Coder Pack already, I would highly recommend you getting it. Once you have that set up (plenty of tutorials on how to), you can open up Block.java and search for any light-emitting blocks such as lightstone (glowstone). You'll notice that it has a property attached to it.
.setLightValue(1.0F)meaning it emits a light value of 15.
Inside your block file, you can just put
this.setLightValue(1.0F);inside your main function to limit your dependency on changing the original minecraft files.
Happy modding! Sorry it wasn't very in-depth, I'm kind of busy at the moment.
May 1, 2011I'm not to great with any of this stuff, so I'll point you to BlockCrops.java which has some functions examples that you can use for damage values. For example, to set a block's damage (metadata):Posted in: Mods Discussion
world.setBlockMetadataWithNotify(blockXposition, blockYposition, blockZposition, damage/metadata)
Getting block metadata (returns the metadata/damage value):
world.getBlockMetadata(blockXposition, blockYposition, blockZposition)
Changing textures per metadata, see the function:
getBlockTextureFromSideAndMetadata(int i, int j)
Hope this helps, happy modding!
btw nice puzzles :biggrin.gif: original
Apr 27, 2011Hello Mgalekgolo!Posted in: Tutorials
Reading the error log can really help you out.
Let's fix the errors in order.
For the first error, <edit> see below
For the second error, your problem is the package you're importing. You don't want your mod to import itself; you want to import the rest of Minecraft so it can use its tools. So at "package net.minecraft.src.BlockIceBlock;", change that to "package net.minecraft.src;"
I believe that should fix almost all of the errors. Also, in your BlockIceBlock.java, you can change Material.rock to something else like Material.ice or something (darn no ice smily). Open the Materials.java to see your whole list of options.
- To post a comment, please login or register a new account.