ok, lets get right into it, first make a new block, then open up Blocknewblockthing
now pretty simple, put in this code, and it will make it will spawn lightning when redstone powered!
ok, now thats done!
you now know how to make it, here i will break it down
the is a simple constructer, just checks if the block next to it is powered redstone, then it will do the function, (i think)
world.entityJoinedWorld(new EntityLightningBolt(world, i, j, k));
you probably don't need the full code, its just one thing!
well, have fun
here are some examples of what entity's you can spawn, im not sure if they work with this code though
EntityLightningBolt
EntityCow
EntityZombie
EntityCreeper
EntityArrow
EntityYourGrenade (if you use this one you should make it resistant to TNT)
EntityMonster (not sure about this one, i think its a human looking guy that chases you)
EntityGiant (that would be fun)
good luck! :smile.gif:
This doesn't look too fixed, is it?
moar code plox.
But really, is that all there is? I don't think so...
Rollback Post to RevisionRollBack
BOTTLES: First you must stand like this...
KAZOOIE: What, wearing ridiculous glasses and a silly grin?
OI!!!! I NEEED HELP QUICK!!!! I need to learn 1# how to know if you right clicked a MOB With something, perhaps sugar!!!! #2 How to make that mob follow you and not despawn #3 (optional) How to make that mob be named, and have a nameplate!
PL0X HELP!!!!
*edit* ive looked at the wolf src, but i STill cant figure it out!!! HEEEEEELP
OI!!!! I NEEED HELP QUICK!!!! I need to learn 1# how to know if you right clicked a MOB With something, perhaps sugar!!!! #2 How to make that mob follow you and not despawn #3 (optional) How to make that mob be named, and have a nameplate!
PL0X HELP!!!!
*edit* ive looked at the wolf src, but i STill cant figure it out!!! HEEEEEELP
i can do the despawn thing, but the other things, im not sure, sorry, but i will add the despawning thing to the tutorial
can anyone tell me why every time i give a block i made a crafting recipe of another block i made i get starting errors??? here are the errors
== MCP v4.3 ==
[11:42] 16 achievements
[11:42] Exception in thread "main" java.lang.ExceptionInInitializerError
[11:42] at net.minecraft.src.StatList.func_25157_c(StatList.java:50)
[11:42] at net.minecraft.src.StatList.func_25154_a(StatList.java:31)
[11:42] at net.minecraft.src.Block.<clinit>(Block.java:873)
[11:42] at net.minecraft.src.TextureWaterFX.<init>(TextureWaterFX.java:16)
[11:42] at net.minecraft.client.Minecraft.<init>(Minecraft.java:41)
[11:42] at net.minecraft.src.MinecraftImpl.<init>(MinecraftImpl.java:19)
[11:42] at net.minecraft.client.Minecraft.startMainThread(Minecraft.java:1556)
[11:42] at net.minecraft.client.Minecraft.func_6269_a(Minecraft.java:1542)
[11:42] at net.minecraft.client.Minecraft.main(Minecraft.java:1602)
[11:42] at Start.main(Start.java:26)
[11:42] Caused by: java.lang.NullPointerException
[11:42] at net.minecraft.src.ItemStack.<init>(ItemStack.java:37)
[11:42] at net.minecraft.src.CraftingManager.<init>(CraftingManager.java:213)
[11:42] at net.minecraft.src.CraftingManager.<clinit>(CraftingManager.java:332)
[11:42] ... 10 more
thats if i do the crafting recipe without modloader and heres with modload
Minecraft has stopped running because it encountered a problem.
If you wish to report this, please copy this entire text and email it to [email protected].
Please include a description of what you did when the error occured.
--- BEGIN ERROR REPORT fe7d1015 --------
Generated 8/31/11 11:47 AM
Minecraft: Minecraft Beta 1.7.3
OS: Windows XP (x86) version 5.1
Java: 1.6.0_26, Sun Microsystems Inc.
VM: Java HotSpot(TM) Client VM (mixed mode), Sun Microsystems Inc.
LWJGL: 2.4.2
OpenGL: GeForce 6200/AGP/SSE/3DNOW! version 2.1.2, NVIDIA Corporation
java.lang.NullPointerException
at net.minecraft.src.CraftingManager.addRecipe(CraftingManager.java:270)
at net.minecraft.src.ModLoader.AddRecipe(ModLoader.java:330)
at net.minecraft.src.mod_Tools.<init>(mod_Tools.java:16)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at net.minecraft.src.ModLoader.addMod(ModLoader.java:224)
at net.minecraft.src.ModLoader.readFromClassPath(ModLoader.java:1022)
at net.minecraft.src.ModLoader.init(ModLoader.java:687)
at net.minecraft.src.ModLoader.AddAllRenderers(ModLoader.java:121)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:65)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:158)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:138)
at net.minecraft.client.Minecraft.run(Minecraft.java:435)
at java.lang.Thread.run(Thread.java:662)
--- END ERROR REPORT 4dafdc08 ----------
thats with modloader 1's while trying to start the others when game loads and crashes right before the mojang thing
thank you for all the help and keep up the tutorials woot lightning and grenades!!!!
Do you mean a crafting recipe of another already-existing block? If you did the same pattern with the same items in the recipe as the already-existing block uses, it will crash because it can't make two blocks from the same recipe. Go and make another recipe and then try it. If what I said isn't what you mean, can you explain your problem in further detail?
Rollback Post to RevisionRollBack
Duct-tape is like the force, it has a light side, a dark side, and it holds the world together.
_____
Do you mean a crafting recipe of another already-existing block? If you did the same pattern with the same items in the recipe as the already-existing block uses, it will crash because it can't make two blocks from the same recipe. Go and make another recipe and then try it. If what I said isn't what you mean, can you explain your problem in further detail?
what i did is im making a new tool set to also go with my mod and i made a sword and a ingot/bar for the item every time i try to make it so my sword is crafted with the bar i get starting errors but if it isn't a item i made it works heres my mod with the sword
package net.minecraft.src;
import java.util.Random;
public class mod_Tools extends BaseMod
{
public static final Item LavaSword = new ItemSword(2005, EnumToolMaterial.LAVA).setItemName("LavaSword");
public mod_Tools()
{
LavaSword.iconIndex = ModLoader.addOverride("/gui/items.png", "/lavasword.png");
ModLoader.AddName(LavaSword, "LavaSword");
ModLoader.AddRecipe(new ItemStack(LavaSword, 1), new Object[]{
"X", "X", "#", Character.valueOf('X'), Item.LavaBar, Character.valueOf('#'), Item.stick
});
}
public String Version()
{
return "3.14159265";
}
}
i've tryed many difern't tutorials all of them give me same errors its that way with anything i make if i want it to have a crafting recipe of a item i made
ok this is soo anoying and im sure it is for you now i got thease 3 errors!!!! same line tho
== ERRORS FOUND ==
src\minecraft\net\minecraft\src\WorldGenT.java:26: ')' expected
world.setBlock(i + i1, j + l1, k + k1, mod_LavaOregen.101.blockID);
^
src\minecraft\net\minecraft\src\WorldGenT.java:26: illegal start of expression
world.setBlock(i + i1, j + l1, k + k1, mod_LavaOregen.101.blockID);
^
src\minecraft\net\minecraft\src\WorldGenT.java:26: ';' expected
world.setBlock(i + i1, j + l1, k + k1, mod_LavaOregen.101.blockID);
^
3 errors
==================
and do you think you chould tell me how to put up a direct photo??? thanks again for help
This doesn't look too fixed, is it?
moar code plox.
But really, is that all there is? I don't think so...
what? where did the rest of it go!?!
lol, it disappeared...
I made this map! Please check it out! It's a really awesome map that took me over a year to make! :3
you might have too many or not enough curly brackets. these ones: } {
check if that all match with another.
i told you, no mod_LavaOre, just the id, like this
remember that now!
I made this map! Please check it out! It's a really awesome map that took me over a year to make! :3
:biggrin.gif:
Do you think you will finish the ranged weapon tutorial soon?
I’d love it if you did.
I made this map! Please check it out! It's a really awesome map that took me over a year to make! :3
did you ever realise... IT IS FINISHED :biggrin.gif: :biggrin.gif: :biggrin.gif: :biggrin.gif: :biggrin.gif:
I made this map! Please check it out! It's a really awesome map that took me over a year to make! :3
finaly got it t work i'd put up pictures but idk how to thank you for all the help
putting up pictures is easy, just go to imageshack or something else and put the direct link into a [img] format
I made this map! Please check it out! It's a really awesome map that took me over a year to make! :3
MAC MAC MAC MAC MAC MAC MAC MAC MAC MAC'S ARE AWWWWWEEEEEEEEESSSSSOOOOOOOOMEEMEEMEMEME !!!! I have a macbook!
- Plazmotech
PL0X HELP!!!!
*edit* ive looked at the wolf src, but i STill cant figure it out!!! HEEEEEELP
- Plazmotech
really sweet ty :biggrin.gif:
here it is [img]http://img195.imageshack.us/img195/1885/20110830195109.png[/img]
they were both actually there only the lava block was hidden im not done with them will make them less common but thats them
[img]http://img195.imageshack.us/img195/1885/20110830195109.png[/img]
NOOOOOOOOOOOOOO
really? i HATE my macbook, its annoying!
i can do the despawn thing, but the other things, im not sure, sorry, but i will add the despawning thing to the tutorial
np :biggrin.gif:
ohh, that looks nice :biggrin.gif: great job!
so true... so very true...
I made this map! Please check it out! It's a really awesome map that took me over a year to make! :3
making a block glow upon redstone activation!
I made this map! Please check it out! It's a really awesome map that took me over a year to make! :3
== MCP v4.3 ==
[11:42] 16 achievements
[11:42] Exception in thread "main" java.lang.ExceptionInInitializerError
[11:42] at net.minecraft.src.StatList.func_25157_c(StatList.java:50)
[11:42] at net.minecraft.src.StatList.func_25154_a(StatList.java:31)
[11:42] at net.minecraft.src.Block.<clinit>(Block.java:873)
[11:42] at net.minecraft.src.TextureWaterFX.<init>(TextureWaterFX.java:16)
[11:42] at net.minecraft.client.Minecraft.<init>(Minecraft.java:41)
[11:42] at net.minecraft.src.MinecraftImpl.<init>(MinecraftImpl.java:19)
[11:42] at net.minecraft.client.Minecraft.startMainThread(Minecraft.java:1556)
[11:42] at net.minecraft.client.Minecraft.func_6269_a(Minecraft.java:1542)
[11:42] at net.minecraft.client.Minecraft.main(Minecraft.java:1602)
[11:42] at Start.main(Start.java:26)
[11:42] Caused by: java.lang.NullPointerException
[11:42] at net.minecraft.src.ItemStack.<init>(ItemStack.java:37)
[11:42] at net.minecraft.src.CraftingManager.<init>(CraftingManager.java:213)
[11:42] at net.minecraft.src.CraftingManager.<clinit>(CraftingManager.java:332)
[11:42] ... 10 more
thats if i do the crafting recipe without modloader and heres with modload
Mods loaded: 3
ModLoader Beta 1.7.3
net.minecraft.src.mod_Blocks 1.7.3
net.minecraft.src.mod_LavaMan 1.7.3
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem.
If you wish to report this, please copy this entire text and email it to [email protected].
Please include a description of what you did when the error occured.
--- BEGIN ERROR REPORT fe7d1015 --------
Generated 8/31/11 11:47 AM
Minecraft: Minecraft Beta 1.7.3
OS: Windows XP (x86) version 5.1
Java: 1.6.0_26, Sun Microsystems Inc.
VM: Java HotSpot(TM) Client VM (mixed mode), Sun Microsystems Inc.
LWJGL: 2.4.2
OpenGL: GeForce 6200/AGP/SSE/3DNOW! version 2.1.2, NVIDIA Corporation
java.lang.NullPointerException
at net.minecraft.src.CraftingManager.addRecipe(CraftingManager.java:270)
at net.minecraft.src.ModLoader.AddRecipe(ModLoader.java:330)
at net.minecraft.src.mod_Tools.<init>(mod_Tools.java:16)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at net.minecraft.src.ModLoader.addMod(ModLoader.java:224)
at net.minecraft.src.ModLoader.readFromClassPath(ModLoader.java:1022)
at net.minecraft.src.ModLoader.init(ModLoader.java:687)
at net.minecraft.src.ModLoader.AddAllRenderers(ModLoader.java:121)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:65)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:158)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:138)
at net.minecraft.client.Minecraft.run(Minecraft.java:435)
at java.lang.Thread.run(Thread.java:662)
--- END ERROR REPORT 4dafdc08 ----------
thats with modloader 1's while trying to start the others when game loads and crashes right before the mojang thing
_____
what i did is im making a new tool set to also go with my mod and i made a sword and a ingot/bar for the item every time i try to make it so my sword is crafted with the bar i get starting errors but if it isn't a item i made it works heres my mod with the sword
i've tryed many difern't tutorials all of them give me same errors its that way with anything i make if i want it to have a crafting recipe of a item i made