Jump to content

Help
Latest News Article

[1.1] XTremity's modding tutorials


376 replies to this topic

#361

Posted 21 March 2012 - 07:12 PM

View PostSondre1236, on 21 March 2012 - 05:35 PM, said:

UPDATE!!!
There is no need to really update. Everything is just in camelcase now.
So to update, just change stuff like "ModLoader.AddName" or "ModLoader.AddRecipe"
to "ModLoader.addName" or "ModLoader.addRecipe"
Posted Image

Register or log in to remove.

#362

Posted 22 March 2012 - 03:13 PM

i have a problem when i make my mod its allready a .class file how do i fix that im using eclipse

#363

  • Location: MC seed -19478593463457648
  • Minecraft: AussieTerra

Posted 27 March 2012 - 06:30 AM

View PostKoadmaster, on 20 February 2012 - 07:18 PM, said:

Do you know how to make a custom potion? If so, could you do a tutorial on that?
Also: Thanks for the link to my mod Posted Image
Also: I was wondering if it would be simple to make an tool with it's own damage because I want to make a tool (but NOT a set of tools) that harvest blocks with one click, so if you could tell me that would be cool.
Also: at the advanced blocks tutorial, particularly the heal on contact: the block is somewhat buggy, e.g.
Spoiler

Ah yes, i forgot about that problem!heres what you do to fix that,

either in the block file add:
public boolean renderAsNormalBlock()
{
	    return false;
}

that then renders the texture to the acctual collision box, and not the default render paramaters

Posted Image


#364

    zodeoo

    Tree Puncher

  • Members
  • 37 posts
  • Minecraft: zodeoo

Posted 04 April 2012 - 07:29 PM

AMAZING! But update thease to 1.2.5?
Posted Image

#365

    DSZM

    Coal Miner

  • Members
  • 108 posts
  • Minecraft: DSZM

Posted 04 April 2012 - 08:04 PM

View Postzodeoo, on 04 April 2012 - 07:29 PM, said:

AMAZING! But update thease to 1.2.5?
It almost the same code :D
Posted Image

#366

  • Location: Withee WI
  • Minecraft: KoditheMaster

Posted 05 April 2012 - 03:22 AM

View PostAussieTerra, on 27 March 2012 - 06:30 AM, said:

Ah yes, i forgot about that problem!heres what you do to fix that,

either in the block file add:
public boolean renderAsNormalBlock()
{
		return false;
}

that then renders the texture to the acctual collision box, and not the default render paramaters
In the mean time I have figured out that it is better to made the collision box the same as soul sand, and then it won't glitch when next to other blocks, but thanks for telling me, even though it was delayed.
Posted Image

#367

    DSZM

    Coal Miner

  • Members
  • 108 posts
  • Minecraft: DSZM

Posted 05 April 2012 - 08:41 AM

Need Help!!!
I recompiled and there where no errors.
I reobfuscated and everything was ok.
But when I started Minecraft this Error came:

Quote


Mods loaded: 3
ModLoader 1.2.5
mod_TooManyItems 1.2.5pre 2012-03-30
mod_MoTNT 1.2.5

Minecraft has crashed!
----------------------

Minecraft has stopped running because it encountered a problem.




--- BEGIN ERROR REPORT 8db76e5 --------
Generated 05.04.12 10:40

Minecraft: Minecraft 1.2.5
OS: Windows 7 (x86) version 6.1
Java: 1.7.0_04-ea, Oracle Corporation
VM: Java HotSpot™ Client VM (mixed mode), Oracle Corporation
LWJGL: 2.4.2
OpenGL: Intel® HD Graphics version 2.1.0 - Build 8.15.10.2104, Intel

java.lang.ArrayIndexOutOfBoundsException: 300
at ModLoader.initStats(ModLoader.java:926)
at ModLoader.init(ModLoader.java:910)
at ModLoader.addAllRenderers(ModLoader.java:189)
at ahu.<init>(ahu.java:77)
at ahu.<clinit>(ahu.java:8)
at net.minecraft.client.Minecraft.a(SourceFile:273)
at net.minecraft.client.Minecraft.run(SourceFile:657)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT f72b5df7 ----------



Please help!!!
Posted Image

#368

    zodeoo

    Tree Puncher

  • Members
  • 37 posts
  • Minecraft: zodeoo

Posted 05 April 2012 - 04:11 PM

By the way in the block script theres an error at the bottom so if you get that just make Add recipe and Ad name to lower case
(If your modding 1.2.5!)

Oh and also works better if you change the 1.0.0 to 1.2.5

Ive made my mod but I just need to check how to get the directory of the image onto it
Posted Image

#369

  • Location: Withee WI
  • Minecraft: KoditheMaster

Posted 06 April 2012 - 12:25 AM

View PostDSZM, on 05 April 2012 - 08:41 AM, said:

Need Help!!!
I recompiled and there where no errors.
I reobfuscated and everything was ok.
But when I started Minecraft this Error came:


Please help!!!
I would post your code... It might help someone to help you.
Posted Image

#370

    zodeoo

    Tree Puncher

  • Members
  • 37 posts
  • Minecraft: zodeoo

Posted 06 April 2012 - 08:37 PM

HELP!

In the block Tutorial what to do when you want it to drop an item? (instead of a block)
It i change the Block. to Item. but it comes up with an error where it says blockID

Spoiler

Posted Image

#371

    zodeoo

    Tree Puncher

  • Members
  • 37 posts
  • Minecraft: zodeoo

Posted 06 April 2012 - 08:50 PM

View PostDSZM, on 05 April 2012 - 08:41 AM, said:

Need Help!!!
I recompiled and there where no errors.
I reobfuscated and everything was ok.
But when I started Minecraft this Error came:


Please help!!!

I think that if you want anyone to help then you need to post some of the code you think could have been wrong
Posted Image

#372

  • Location: Withee WI
  • Minecraft: KoditheMaster

Posted 07 April 2012 - 02:41 AM

View Postzodeoo, on 06 April 2012 - 08:37 PM, said:

HELP!

In the block Tutorial what to do when you want it to drop an item? (instead of a block)
It i change the Block. to Item. but it comes up with an error where it says blockID

Spoiler

You need to change "BlockID" to shiftedIndex
Posted Image

#373

  • Location: United States
  • Minecraft: 2797jake

Posted 07 April 2012 - 04:08 AM

tutorial on how to add particle effects to blocks? like make a stone block emit fireparticles (thats just an example)
Posted Image

#374

    jackie1482

    The Meaning of Life, the Universe, and Everything...

  • Members
  • 42 posts

Posted 07 April 2012 - 10:54 AM

hey thanks for your advanched block codes!
but i have this from you:
	    public void [color=#ff0000]onEntityWalking[/color](World world, int x, int y, int z, Entity entity)
	    {
		    entity.motionY += 5.0;
but if i make this: onEntityWalking to onEntityJumping it doesnt work is there a other code for that?

#375

    DSZM

    Coal Miner

  • Members
  • 108 posts
  • Minecraft: DSZM

Posted 11 April 2012 - 07:18 PM

I dont know why but my Entity dont uses the Model! Posted Image
it looks like the normal player!!!

EntitySuperSheep
Spoiler

ModelSuperSheep
Spoiler

RenderSuperSheep
Spoiler


Please help :s
Posted Image

#376

  • Location: In one of the servers.
  • Minecraft: UnknowGuy200

Posted 14 April 2012 - 05:16 AM

Hmmm...

I need code to make different block sides!

When I do the block is goes all messed up. And when theres nothing on the bottom it just shows the block as on top. Need help here :/
Posted Image

#377

    DSZM

    Coal Miner

  • Members
  • 108 posts
  • Minecraft: DSZM

Posted 14 April 2012 - 08:14 PM

View PostUnknowGuy200, on 14 April 2012 - 05:16 AM, said:

Hmmm...

I need code to make different block sides!

When I do the block is goes all messed up. And when theres nothing on the bottom it just shows the block as on top. Need help here :/
Do this:
Spoiler

So now my Problem:
When I add a new Block like all my other blocks minecraft crashes and shows this:
Spoiler

But when im recompiling there is now error?!? I dont know what to do Posted Image
Posted Image