MC Modding
Please register and join the community!


Join the forum, it's quick and easy

MC Modding
Please register and join the community!
MC Modding
Would you like to react to this message? Create an account in a few clicks or log in to continue.

[answered] What do i do when the coding is done?

4 posters

MC Modding :: Help :: Help

Go down

[answered] What do i do when the coding is done? Empty [answered] What do i do when the coding is done?

Post by thedirtyassassin Sun Oct 30, 2011 3:03 am

When im done with all the coding then how/what do i do to be able to play with the mod that i made for Minecraft? Plz answere quick cuz im allmost done with the coding! (Im done recompiling,do i reobfuscate? Question Question Suspect scratch


Last edited by thedirtyassassin on Sun Oct 30, 2011 3:02 pm; edited 2 times in total

thedirtyassassin
Member

Posts : 28
Join date : 2011-10-30
Location : In your dreams!

Back to top Go down

[answered] What do i do when the coding is done? Empty Re: [answered] What do i do when the coding is done?

Post by lcass Sun Oct 30, 2011 3:11 am

Yes

lcass
Member

Posts : 145
Join date : 2011-10-24
Location : england

https://www.youtube.com/user/thealcasgroup

Back to top Go down

[answered] What do i do when the coding is done? Empty Re: [answered] What do i do when the coding is done?

Post by ikke009 Sun Oct 30, 2011 12:27 pm

indeed and after reobf-ing put all the files in the reobf folder in your minecraft.jar with modloader
ikke009
ikke009
Member

Posts : 65
Join date : 2011-10-24
Age : 30
Location : The netherlands

Back to top Go down

[answered] What do i do when the coding is done? Empty Re: [answered] What do i do when the coding is done?

Post by thedirtyassassin Sun Oct 30, 2011 1:24 pm

and how do i do that ? Razz

edit 1 : Can you make a tutorial on what i need to do?

thedirtyassassin
Member

Posts : 28
Join date : 2011-10-30
Location : In your dreams!

Back to top Go down

[answered] What do i do when the coding is done? Empty Re: [answered] What do i do when the coding is done?

Post by ikke009 Sun Oct 30, 2011 2:58 pm

go in your folder, recompile, reobf, go in reobf folder, copy all files in there, put em in your %appdata%/roaming/.minecraft/bin/minecraft.jar, run minecraft, have fun. cant be too hard can it
ikke009
ikke009
Member

Posts : 65
Join date : 2011-10-24
Age : 30
Location : The netherlands

Back to top Go down

[answered] What do i do when the coding is done? Empty Re: [answered] What do i do when the coding is done?

Post by thedirtyassassin Sun Oct 30, 2011 3:00 pm

no i thing it cant Smile THX!

thedirtyassassin
Member

Posts : 28
Join date : 2011-10-30
Location : In your dreams!

Back to top Go down

[answered] What do i do when the coding is done? Empty Re: [answered] What do i do when the coding is done?

Post by thedirtyassassin Sun Oct 30, 2011 11:04 pm

It does not work i think Razz I dont know where that reobfuscate folder is lol!

thedirtyassassin
Member

Posts : 28
Join date : 2011-10-30
Location : In your dreams!

Back to top Go down

[answered] What do i do when the coding is done? Empty Re: [answered] What do i do when the coding is done?

Post by thedirtyassassin Sun Oct 30, 2011 11:28 pm

i found the folder. but help!! i get errors when i open up minecraft. do i put the .class files in minecraft.jar or do i put the minecraft folder that is in the reobf foler in minecaft.jar?

thedirtyassassin
Member

Posts : 28
Join date : 2011-10-30
Location : In your dreams!

Back to top Go down

[answered] What do i do when the coding is done? Empty Re: [answered] What do i do when the coding is done?

Post by thedirtyassassin Sun Oct 30, 2011 11:31 pm

this is what it says in the modloader.txt after i did try to play minecraft with my mod:
Code:
okt. 30, 2011 9:26:20 PM ModLoader readFromClassPath
FINER: Zip found.
okt. 30, 2011 9:26:21 PM ModLoader getUniqueItemSpriteIndex
FINER: THROW
java.lang.Exception: No registry for this texture: /gui/SlimyStick.png
   at ModLoader.getUniqueSpriteIndex(ModLoader.java:661)
   at ModLoader.addOverride(ModLoader.java:329)
   at mod_SlimyStick.<init>(mod_SlimyStick.java:9)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
   at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
   at java.lang.reflect.Constructor.newInstance(Unknown Source)
   at java.lang.Class.newInstance0(Unknown Source)
   at java.lang.Class.newInstance(Unknown Source)
   at ModLoader.addMod(ModLoader.java:275)
   at ModLoader.readFromClassPath(ModLoader.java:1114)
   at ModLoader.init(ModLoader.java:825)
   at ModLoader.AddAllRenderers(ModLoader.java:186)
   at aam.<init>(aam.java:61)
   at aam.<clinit>(aam.java:10)
   at net.minecraft.client.Minecraft.a(SourceFile:259)
   at net.minecraft.client.Minecraft.run(SourceFile:629)
   at java.lang.Thread.run(Unknown Source)

okt. 30, 2011 9:26:31 PM ModLoader addMod
FINE: Mod Loaded: "mod_SlimyStick 1.8.1" from mod_SlimyStick.class
okt. 30, 2011 9:26:31 PM ModLoader getUniqueItemSpriteIndex
FINER: THROW
java.lang.Exception: No registry for this texture: /My folder!/StickyStickBlock.png
   at ModLoader.getUniqueSpriteIndex(ModLoader.java:661)
   at ModLoader.addOverride(ModLoader.java:329)
   at mod_StickyStickBlock.<init>(mod_StickyStickBlock.java:15)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
   at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
   at java.lang.reflect.Constructor.newInstance(Unknown Source)
   at java.lang.Class.newInstance0(Unknown Source)
   at java.lang.Class.newInstance(Unknown Source)
   at ModLoader.addMod(ModLoader.java:275)
   at ModLoader.readFromClassPath(ModLoader.java:1114)
   at ModLoader.init(ModLoader.java:825)
   at ModLoader.AddAllRenderers(ModLoader.java:186)
   at aam.<init>(aam.java:61)
   at aam.<clinit>(aam.java:10)
   at net.minecraft.client.Minecraft.a(SourceFile:259)
   at net.minecraft.client.Minecraft.run(SourceFile:629)
   at java.lang.Thread.run(Unknown Source)

okt. 30, 2011 9:26:31 PM ModLoader addMod
FINE: Mod Loaded: "mod_StickyStickBlock 1.8.1" from mod_StickyStickBlock.class
okt. 30, 2011 9:26:31 PM ModLoader getUniqueItemSpriteIndex
FINER: THROW
java.lang.Exception: No registry for this texture: /My folder!/GlowBlock.png
   at ModLoader.getUniqueSpriteIndex(ModLoader.java:661)
   at ModLoader.addOverride(ModLoader.java:329)
   at mod_GlowBlock.<init>(mod_GlowBlock.java:15)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
   at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
   at java.lang.reflect.Constructor.newInstance(Unknown Source)
   at java.lang.Class.newInstance0(Unknown Source)
   at java.lang.Class.newInstance(Unknown Source)
   at ModLoader.addMod(ModLoader.java:275)
   at ModLoader.readFromClassPath(ModLoader.java:1114)
   at ModLoader.init(ModLoader.java:825)
   at ModLoader.AddAllRenderers(ModLoader.java:186)
   at aam.<init>(aam.java:61)
   at aam.<clinit>(aam.java:10)
   at net.minecraft.client.Minecraft.a(SourceFile:259)
   at net.minecraft.client.Minecraft.run(SourceFile:629)
   at java.lang.Thread.run(Unknown Source)

okt. 30, 2011 9:26:31 PM ModLoader addMod
FINE: Mod Loaded: "mod_GlowBlock 1.8.1" from mod_GlowBlock.class
okt. 30, 2011 9:26:31 PM ModLoader AddAllRenderers
FINE: Initialized

thedirtyassassin
Member

Posts : 28
Join date : 2011-10-30
Location : In your dreams!

Back to top Go down

[answered] What do i do when the coding is done? Empty Re: [answered] What do i do when the coding is done?

Post by ikke009 Sun Oct 30, 2011 11:57 pm

you might want to make some textures for your block.. xD right now your minecraft doesnt know what textures to put in for your items/blocks.
if you dont know how read the basic block and item making tutorials first
ikke009
ikke009
Member

Posts : 65
Join date : 2011-10-24
Age : 30
Location : The netherlands

Back to top Go down

[answered] What do i do when the coding is done? Empty Re: [answered] What do i do when the coding is done?

Post by thedirtyassassin Mon Oct 31, 2011 12:09 am

I have made the texture's but still it wont work!

thedirtyassassin
Member

Posts : 28
Join date : 2011-10-30
Location : In your dreams!

Back to top Go down

[answered] What do i do when the coding is done? Empty Re: [answered] What do i do when the coding is done?

Post by ikke009 Mon Oct 31, 2011 10:39 am

and you made the override like this?
Code:

slimystick.iconIndex = ModLoader.addOverride("/gui/items.png", "/dirtyasassin/SlimyStick.png");
also you are positive your texture is .png and not .PNG or something? i had that problem once or twice

edit: might as well post your code xD
ikke009
ikke009
Member

Posts : 65
Join date : 2011-10-24
Age : 30
Location : The netherlands

Back to top Go down

[answered] What do i do when the coding is done? Empty Re: [answered] What do i do when the coding is done?

Post by thedirtyassassin Mon Oct 31, 2011 6:56 pm

mod_SlimyStick

Code:
 
package net.minecraft.src;

public class mod_SlimyStick extends BaseMod
{
  public static final Item SlimyStick = new Item(3999).setItemName("SlimyStick");

public mod_SlimyStick()
{
  SlimyStick.iconIndex = ModLoader.addOverride("/gui/SlimyStick.png", "/SlimyStick.png");
  ModLoader.AddName(SlimyStick, "SlimyStick");
  ModLoader.AddRecipe(new ItemStack(SlimyStick, 1), new Object[] {
    "X", "P", Character.valueOf('P'), Item.stick, Character.valueOf('X'), Item.slimeBall,
    });
}

public String Version()
{
  return "1.8.1";
}
       
}


mod_StickyStickBlock
Code:
package net.minecraft.src;

public class mod_StickyStickBlock extends BaseMod
{
  public static Block StickyStickBlock = new BlockStickyStickBlock(199, 0).setHardness(1.0F).setResistance(1.0F).setLightValue(0.1F).setBlockName("StickyStickBlock");
 
  public String Version()
  {
      return "1.8.1";
  }
 
  public mod_StickyStickBlock()
  {
      ModLoader.RegisterBlock(StickyStickBlock);
      StickyStickBlock.blockIndexInTexture = ModLoader.addOverride("/My folder!/StickyStickBlock.png", "/StickyStickBlock.png");
      ModLoader.AddName(StickyStickBlock, "StickyStickBlock");
      ModLoader.AddRecipe(new ItemStack(StickyStickBlock, 2), new Object[] {
      "###", "XXX", "###", Character.valueOf('#'), Block.planks, Character.valueOf('X'), Item.slimeBall
      });
  }
}



mod_GlowBlock
Code:
package net.minecraft.src;

public class mod_GlowBlock extends BaseMod
{
  public static Block GlowBlock = new BlockGlowBlock(198, 0).setHardness(1.0F).setResistance(1.0F).setLightValue(1.0F).setBlockName("GlowBlock");
 
  public String Version()
  {
      return "1.8.1";
  }
 
  public mod_GlowBlock()
  {
      ModLoader.RegisterBlock(GlowBlock);
      GlowBlock.blockIndexInTexture = ModLoader.addOverride("/My folder!/GlowBlock.png", "/GlowBlock.png");
      ModLoader.AddName(GlowBlock, "GlowBlock");
      ModLoader.AddRecipe(new ItemStack(GlowBlock, 10), new Object[] {
      "###", "XXX", "###", Character.valueOf('#'), Block.glowStone, Character.valueOf('X'), Block.glass
      });
  }
}

thedirtyassassin
Member

Posts : 28
Join date : 2011-10-30
Location : In your dreams!

Back to top Go down

[answered] What do i do when the coding is done? Empty Re: [answered] What do i do when the coding is done?

Post by jaydenbadboii Sun Nov 06, 2011 12:57 am

SlimyStick.iconIndex = ModLoader.addOverride("/gui/items.png", "/slimystick.png");
StickyStickBlock.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/stickystickblock.png");
GlowBlock.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/glowblock.png");
Try that instead, and put slimystick.png & stickystickblock.png & glowblock.png inside minecraft.jar - NOT in the gui folder or anywhere else.

jaydenbadboii
Member

Posts : 2
Join date : 2011-10-27

Back to top Go down

[answered] What do i do when the coding is done? Empty Re: [answered] What do i do when the coding is done?

Post by ikke009 Sun Nov 06, 2011 1:55 pm

ur late man.. this was answered days ago...
ikke009
ikke009
Member

Posts : 65
Join date : 2011-10-24
Age : 30
Location : The netherlands

Back to top Go down

[answered] What do i do when the coding is done? Empty Re: [answered] What do i do when the coding is done?

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

MC Modding :: Help :: Help

 
Permissions in this forum:
You cannot reply to topics in this forum