Thank you for this great Tutorials.
With your Tut i finally managed to create a working Propery File.
Can you make a Tutorial on how to make Properties Serverside?
That would be awesome. :smile.gif:
Btw im looking forward to the Redstone Tut.
Keep up the good work.
hmmm... what do you mean by properties serverside?
thank you for your interest
i shall be trying to make the redstone tut very soon
right, i've updated my forge to 1.2.2 but now i get a nullpointerexception when i try to see my blocks in the creativelist
here's the error:
java.lang.NullPointerException
at net.minecraft.src.ItemStack.getIconIndex(ItemStack.java:92)
at net.minecraft.src.RenderItem.renderItemIntoGUI(RenderItem.java:299)
at net.minecraft.src.GuiContainer.drawSlotInventory(GuiContainer.java:188)
at net.minecraft.src.GuiContainer.drawScreen(GuiContainer.java:62)
at net.minecraft.src.GuiContainerCreative.drawScreen(GuiContainerCreative.java:200)
at net.minecraft.src.EntityRenderer.updateCameraAndRender(EntityRenderer.java:805)
at net.minecraft.src.EntityRendererProxy.updateCameraAndRender(EntityRendererProxy.java:25)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:729)
at net.minecraft.client.Minecraft.run(Minecraft.java:627)
at java.lang.Thread.run(Unknown Source)
this is the snippet i use to show my blocks in the creativelist:
Well,I'm personally having trouble getting my Sprite Indices thing going. I got my mod working with vanilla minecraft but not MCForge(As I'm really trying to make it compatible with the technic pack)
Methuselah - or anyone else experienced with Forge, can you take a look over my mod? I can send you a link to the zip/rar over PM
I have Errors on this two Lines, cause they have todo with the Client
import net.minecraft.client.Minecraft;
static Configuration configuration = new Configuration(new File(Minecraft.getMinecraftDir(), "/config/Glasgalore.cfg"));
The first Error can be resolved by importing net.minecraft.server.MinecraftServer instead.
But i looked in MinecraftServer.java and found nothing like getMinecraftdir or getServerdir.
So im not sure what to do here. :smile.gif:
Try this:
static Configuration configuration = new Configuration(new File("config/CamelOre.cfg"));
ive got one more question :tongue.gif:
you as an experienced modder, do you think its possible to add preenchanted weapons/armors? for example: you craft (with custom recipe) or find a special axe in a chest and it allready has unbeaking enchantment or something.. ?
if so, could you make a tut on it?
thanks alot for your help!
Yes it would be possible, but i feel like I wouldn't write this tutorial for a while because 1)I don't already know how to do it and 2)I feel like I have much more important tutorials to write
This would be a very good learning experience for you. :smile.gif:
But if I ever have the time I will write a tutorial for you.
right, i've updated my forge to 1.2.2 but now i get a nullpointerexception when i try to see my blocks in the creativelist
here's the error:
java.lang.NullPointerException
at net.minecraft.src.ItemStack.getIconIndex(ItemStack.java:92)
at net.minecraft.src.RenderItem.renderItemIntoGUI(RenderItem.java:299)
at net.minecraft.src.GuiContainer.drawSlotInventory(GuiContainer.java:188)
at net.minecraft.src.GuiContainer.drawScreen(GuiContainer.java:62)
at net.minecraft.src.GuiContainerCreative.drawScreen(GuiContainerCreative.java:200)
at net.minecraft.src.EntityRenderer.updateCameraAndRender(EntityRenderer.java:805)
at net.minecraft.src.EntityRendererProxy.updateCameraAndRender(EntityRendererProxy.java:25)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:729)
at net.minecraft.client.Minecraft.run(Minecraft.java:627)
at java.lang.Thread.run(Unknown Source)
this is the snippet i use to show my blocks in the creativelist:
private boolean AreBlocksAdded;
@Override
public boolean OnTickInGame(float f, Minecraft minecraft)
{
if(minecraft.currentScreen == null)
AreBlocksAdded = false;
return true;
}
@Override
public boolean OnTickInGUI(float f, Minecraft minecraft, GuiScreen guiscreen)
{
if((guiscreen instanceof GuiContainerCreative) && !minecraft.theWorld.multiplayerWorld)
{
if(AreBlocksAdded == false)
{
Container container = ((GuiContainer)guiscreen).inventorySlots;
List list = ((ContainerCreative)container).itemList;
// Add a single, standard block
list.add(new ItemStack(mod_Test.TestBlock_A));
// Add a block with subtypes
int numberOfSubtypes = 4;
for(int i = 0; i < numberOfSubTypes; i++)
list.add(new ItemStack(mod_Test.TestBlock_B, 1, i));
}
AreBlocksAdded = true;
}
return true;
}
Well,I'm personally having trouble getting my Sprite Indices thing going. I got my mod working with vanilla minecraft but not MCForge(As I'm really trying to make it compatible with the technic pack)
Methuselah - or anyone else experienced with Forge, can you take a look over my mod? I can send you a link to the zip/rar over PM
For some odd reason, the sprite loader seems NOT to work correctly. I don't know if its just me, or if its everyone else, but someone better fix it. I'm sure there are A LOT of angry modders out there who feel like pulling their hair out because their sprites arn't working!!!
One question: I have items (not blocks) that has damage values. Only the item with damage value 0 are shown up. Is there a similar way to add the rest of all my items in the creative inventory? I have tried these steps for my item class, but it doesn't work.
Nice, thank you for your tutorials! They helped me alot! :smile.gif:
One question: I have items (not blocks) that has damage values. Only the item with damage value 0 are shown up. Is there a similar way to add the rest of all my items in the creative inventory? I have tried these steps for my item class, but it doesn't work.
I would be glad, if you can help me
Best regards:
SanAndreasP
hmmm i assumed it added all items regardless of damage value autoamatically
no matter
that will be added to the tutorial immediately
hmmm... what do you mean by properties serverside?
thank you for your interest
i shall be trying to make the redstone tut very soon
i just finished tool tutorial
oh right
what would you need to change?
it seems like it would be the same
i'll try to proofread it as soon as i can
here's the error:
Methuselah - or anyone else experienced with Forge, can you take a look over my mod? I can send you a link to the zip/rar over PM
Try this:
Yes it would be possible, but i feel like I wouldn't write this tutorial for a while because 1)I don't already know how to do it and 2)I feel like I have much more important tutorials to write
This would be a very good learning experience for you. :smile.gif:
But if I ever have the time I will write a tutorial for you.
Try using this for items.png:
http://www.mediafire.com/i/?bsqa2fg6y961dyr
I would suggest using this:
Altough I think when I was browsing code I saw a Forge workaround for it so use ^ for now.
Sure, go ahead and shoot me the pm.
same error :sleep.gif:
i'll try it with forge 1.2.0 tomorrow
no don't do that...
look at my creative gui tutorial
yes i do
gee... i haven't used it in so long i forget what it is
i have to click the forgot username link...
it's methuselah96
public mod_WraithTools()
^
1 error
Help? :tongue.gif:
if you want some help you could pm your mod_WraithTools.java
Sent :biggrin.gif:
I'll add that to the tutorial as soon as I can
ok its done
i hope you understood that u will only ever have to make 5 files
u don't have to make a new one for EVERY tool
One question: I have items (not blocks) that has damage values. Only the item with damage value 0 are shown up. Is there a similar way to add the rest of all my items in the creative inventory? I have tried these steps for my item class, but it doesn't work.
I would be glad, if you can help me
Best regards:
SanAndreasP
hmmm i assumed it added all items regardless of damage value autoamatically
no matter
that will be added to the tutorial immediately