I have been working on my mod for a long time now, and was wondering if anyone knew of a good tutorial for creating a new dimension for Minecraft. I just need to know how to make the dimension, do the terrain generation (I already have the basic blocks), and how to make a way to get there. If someone could link me to a good tutorial, and/or a good tutorial series, it would be much appreciated.
Your Id has to be below 256 if you are just using ModLoader. If you use the forge API you can use Id up to some extreme number. That's only if you have a ton of block and items. Tip: You also need your ID to be above 124 and below 256... those are the only Ids available.
Oh ok, thanks. I also want to import the footsstep. Since it's a dirt block like thing. It needs to sound like dirt. But when I put '.setStepSound(gravelStepSound' (or GravelFootstepSound or whatever) and then it can't compile, but when I put in the package (not actually a package) it crashes the game when i walk on it or harvest it.
Glad I could help with the Ids. But for the sound, you need to put
I have learned that i can have a max of 6 or 7 items at one time.. Its really unusual.
My code has no errors so it cant be errors in code
New Error
java.lang.StringIndexOutOfBoundsException: String index out of range: 8
at java.lang.String.charAt(String.java:695)
at net.minecraft.src.CraftingManager.addRecipe(CraftingManager.java:394)
at net.minecraft.src.ModLoader.addRecipe(ModLoader.java:412)
at net.minecraft.src.mod_Sapphire.<init>(mod_Sapphire.java:95)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
at java.lang.Class.newInstance0(Class.java:372)
at java.lang.Class.newInstance(Class.java:325)
at net.minecraft.src.ModLoader.addMod(ModLoader.java:287)
at net.minecraft.src.ModLoader.readFromClassPath(ModLoader.java:1279)
at net.minecraft.src.ModLoader.init(ModLoader.java:849)
at net.minecraft.src.ModLoader.addAllRenderers(ModLoader.java:157)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:85)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:12)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:424)
at net.minecraft.client.Minecraft.run(Minecraft.java:786)
at java.lang.Thread.run(Thread.java:722)
--- END ERROR REPORT eb516c8f ----------
I am following the tutorial for a new type of bow and arrow. I am trying to do it with out editing base classes. It works but when it hits an entity, i get this error and i have no idea what to do about it...
java.lang.NullPointerException
at net.minecraft.src.EntityPlayer.attackEntityFrom(EntityPlayer.java:862)
at net.minecraft.src.EntityExplodingArrow.onUpdate(EntityExplodingArrow.java:323)
at net.minecraft.src.World.updateEntityWithOptionalForce(World.java:2197)
at net.minecraft.src.World.updateEntity(World.java:2165)
at net.minecraft.src.World.updateEntities(World.java:2039)
at net.minecraft.client.Minecraft.runTick(Minecraft.java:1897)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:870)
at net.minecraft.client.Minecraft.run(Minecraft.java:801)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT fb68777 ----------
This is the code that i have arround line 323 of EntityExplodingArrow...
I´m trying to make a robot wolf that is cinda like a real dog but that you can build it! I get this error and I don´t know wy:
java.lang.ClassCastException: net.minecraft.src.EntityRoboWolf cannot be cast to net.minecraft.src.EntityWolf
at net.minecraft.src.RenderWolf.doRender(RenderWolf.java:54)
at net.minecraft.src.RenderManager.renderEntityWithPosYaw(RenderManager.java:185)
at net.minecraft.src.RenderManager.renderEntity(RenderManager.java:172)
at net.minecraft.src.RenderGlobal.renderEntities(RenderGlobal.java:440)
at net.minecraft.src.EntityRenderer.renderWorld(EntityRenderer.java:1129)
at net.minecraft.src.EntityRenderer.updateCameraAndRender(EntityRenderer.java:939)
at net.minecraft.src.EntityRendererProxy.updateCameraAndRender(EntityRendererProxy.java:20)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:922)
at net.minecraft.client.Minecraft.run(Minecraft.java:801)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT eed3fc34 ----------
Just wondering, did you have your robowolf extend EntityWolf or just EntityMob.
I have it extend EntityTameable just as the regulare wolfs, cuz I want them to be tamable! Should it extend something else? Does it still become tameable then?
Well if you wanted it ro be exactly the same as a wolf you sold simpaly have it extend wolf and then change minor details. However you dont neccicarily have to do that. The reason your getting your error is because your type casting a instance of your robo wolf to entity wolf. But i dont think you could fix that error without alot of work.
Can I see your code? I could give you a better answer if i looked at it.
Ok, well on line 69 of your code you will see this: dataWatcher.addObject(18, new Integer(getHealth())); So, all you need to do for that is change the 18 to another number - i dont think there is a modloader methoud to find a free number so you will probably just have to play around with it.
A simaler thing happend to me when i attempted to make a EntityRadioActiveCreeper but the error didn;t show up on the console it was really weird...
I pretty much have copy paste the code just change the EntityWolf to EntityRoboWolf, I also have changed the extend EntityTameable to EntityWolf now and now I get this error instead:
java.lang.IllegalArgumentException: Duplicate id value for 18!
at net.minecraft.src.DataWatcher.addObject(DataWatcher.java:38)
at net.minecraft.src.EntityRoboWolf.entityInit(EntityRoboWolf.java:69)
at net.minecraft.src.Entity.<init>(Entity.java:212)
at net.minecraft.src.EntityLiving.<init>(EntityLiving.java:185)
at net.minecraft.src.EntityCreature.<init>(EntityCreature.java:22)
at net.minecraft.src.EntityAgeable.<init>(EntityAgeable.java:7)
at net.minecraft.src.EntityAnimal.<init>(EntityAnimal.java:18)
at net.minecraft.src.EntityTameable.<init>(EntityTameable.java:11)
at net.minecraft.src.EntityWolf.<init>(EntityWolf.java:27)
at net.minecraft.src.EntityRoboWolf.<init>(EntityRoboWolf.java:10)
at net.minecraft.src.ItemSpawnRoboWolf.onItemRightClick(ItemSpawnRoboWolf.java:17)
at net.minecraft.src.ItemStack.useItemRightClick(ItemStack.java:138)
at net.minecraft.src.PlayerController.sendUseItem(PlayerController.java:79)
at net.minecraft.client.Minecraft.clickMouse(Minecraft.java:1437)
at net.minecraft.client.Minecraft.runTick(Minecraft.java:1834)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:870)
at net.minecraft.client.Minecraft.run(Minecraft.java:801)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT 5fab50fb ----------
If you want to c the full code I could pm you it cuz I don´t want to put it all here..
dataWatcher.addObject may occor multipe times in the class, in order for it to work find every one and change them to the deisered number. Aso only change the 18 part dont change anything else... also you well need to change all of the 18s in dataWatcher.getWatchableObjectByte
Your Id has to be below 256 if you are just using ModLoader. If you use the forge API you can use Id up to some extreme number. That's only if you have a ton of block and items. Tip: You also need your ID to be above 124 and below 256... those are the only Ids available.
https://itunes.apple.com/us/app/cosmic-balance/id591644211?mt=8
https://itunes.apple.com/us/app/cosmic-balance/id591644211?mt=8
Glad I could help with the Ids. But for the sound, you need to put
in your block declaration.
Here would be the code, that is if you are wanting to use the ore for lapiz lazuli...
Ok, then...
I am assuming that your textures are not in the correct places, or you have an error somewhere in your code.
Minecraft's error
The error in the startclient.bat
I have learned that i can have a max of 6 or 7 items at one time.. Its really unusual.
My code has no errors so it cant be errors in code
New Error
This is the code that i have arround line 323 of EntityExplodingArrow...
Just wondering, did you have your robowolf extend EntityWolf or just EntityMob.
It is actually coming in 1.4):
Coal, and charcoal are the same Item, so if you use coal you will also use charcoal, if you want it onl to be charcoal then set the damage value to 1.
Well if you wanted it ro be exactly the same as a wolf you sold simpaly have it extend wolf and then change minor details. However you dont neccicarily have to do that. The reason your getting your error is because your type casting a instance of your robo wolf to entity wolf. But i dont think you could fix that error without alot of work.
Can I see your code? I could give you a better answer if i looked at it.
That would require modifing a base class(at leat the way i would do it) more specificle Block.java if you still want to i can show you how though...
Guis are complicated- HDA virus does good youtube videos on them TheInstitytions is also good
dataWatcher.addObject(18, new Integer(getHealth()));
So, all you need to do for that is change the 18 to another number - i dont think there is a modloader methoud to find a free number so you will probably just have to play around with it.
A simaler thing happend to me when i attempted to make a EntityRadioActiveCreeper but the error didn;t show up on the console it was really weird...
dataWatcher.addObject may occor multipe times in the class, in order for it to work find every one and change them to the deisered number. Aso only change the 18 part dont change anything else...
also you well need to change all of the 18s in
dataWatcher.getWatchableObjectByte