Jump to content

  • Curse Sites
Become a Premium Member! Help
Latest News Article

[1.6.2]ModLoader Tutorials

mod 1.5.1 modloader risugami tutorial 1.5 java eclipse

  • Please log in to reply
221 replies to this topic

#1

Jamesscn
  • Location: UK
  • Minecraft: Jamesscn

Posted 09 April 2013 - 01:05 AM

Minecraft 1.6.2 Tutorials //forge & video tuts coming soon!!

All code and links are being upgraded to 1.6.2

ModLoader:

Spoiler:

Upcoming Tutorials: Craftable Mobs, Custom Slabs, Textures that change over time, Custom furnace

Recent updates: Gun code and armour code completed and updated and new tutorial: Adding textures

Note: Risugami hasn't updated ModLoader to 1.6.4 yet, so please don't ask me to update this to 1.6.4 until ModLoader has been updated by Risugami.
Posted Image

Register or log in to remove.

#2

mrgreen33gamer
  • Minecraft: mrgreen33gamer

Posted 09 April 2013 - 02:19 AM

You have the privlage to copy my codes if you want. Just support me first.
Posted Image

#3

TehHerb
    TehHerb

    Carpenter

  • Members
  • 49 posts
  • Location: Sydney, Australia
  • Minecraft: tehherb
  • Xbox:Viol3ntHerb

Posted 09 April 2013 - 12:13 PM

creating my mob works but the texture in game is just the error texture rather than my custom texture. I exported the texture file for a biped from techne and used that, is that wrong?

#4

Jamesscn
  • Location: UK
  • Minecraft: Jamesscn

Posted 09 April 2013 - 01:07 PM

View Postmrgreen33gamer, on 09 April 2013 - 02:19 AM, said:

You have the privlage to copy my codes if you want. Just support me first.

Thanks, i'll keep that in mind

View PostTehHerb, on 09 April 2013 - 12:13 PM, said:

creating my mob works but the texture in game is just the error texture rather than my custom texture. I exported the texture file for a biped from techne and used that, is that wrong?

It should work, are you sure you put the file in /mob/ inside of your minecraft.jar in jars?
Posted Image

#5

mrgreen33gamer
  • Minecraft: mrgreen33gamer

Posted 09 April 2013 - 04:17 PM

View PostTehHerb, on 09 April 2013 - 12:13 PM, said:

creating my mob works but the texture in game is just the error texture rather than my custom texture. I exported the texture file for a biped from techne and used that, is that wrong?

1.5 - 1.5.2

You know your mob should have a getTexture method like if you go to to EntityPig you can find the getTexture code and to with that code or go like this: /textures/myMobs/NAME.png

Then you cen create the folders using the jar file or like this:

Eclipse/client/bin/textures/myMobs/NAME.png

I don't get any credit for this it's all goes to Jamesscn.

Good Luck!

EDIT: for 1.6.2 mob textures:

Locate the 1.6.2.jar file in the versions folder, open it with WinArchiver or 7Zip and goto assets/minecraft/textures/mob

That's how to register your mob texture file, thank you!

Posted Image

#6

Aleds
    Aleds

    Newly Spawned

  • Members
  • 1 posts

Posted 11 April 2013 - 02:23 AM

Hey dude if you want to make a block with more than a texture?

#7

I_Iz_Shahid
  • Location: Another where question...
  • Minecraft: I_Iz_Shahid

Posted 12 April 2013 - 08:58 PM

Can you add a simple gun with no gravity effect or add a little, maybe some recoil will be good...
Posted Image

#8

Jamesscn
  • Location: UK
  • Minecraft: Jamesscn

Posted 13 April 2013 - 08:38 PM

View PostAleds, on 11 April 2013 - 02:23 AM, said:

Hey dude if you want to make a block with more than a texture?

I added it to my tutorials (sorry for taking so long)

View PostI_Iz_Shahid, on 12 April 2013 - 08:58 PM, said:

Can you add a simple gun with no gravity effect or add a little, maybe some recoil will be good...

I can try but it probably won't have recoil
Posted Image

#9

Udjat74
    Udjat74

    Iron Miner

  • Members
  • 328 posts
  • Location: España
  • Minecraft: udjat

Posted 14 April 2013 - 01:13 PM

Nice tutos man congratulations keep on that :)
Posted Image
"Lo difícil se consigue, lo imposible se intenta"    Spanish Minecraft Modder

#10

Joe_Doe
    Joe_Doe

    Tree Puncher

  • Members
  • 28 posts

Posted 15 April 2013 - 12:00 AM

These are really simple and easy and you made modding easy to understand. Keep up the good work :)

#11

Jamesscn
  • Location: UK
  • Minecraft: Jamesscn

Posted 16 April 2013 - 03:13 AM

View PostI_Iz_Shahid, on 12 April 2013 - 08:58 PM, said:

Can you add a simple gun with no gravity effect or add a little, maybe some recoil will be good...

I added the code to my tutorials, it uses no gravity
Posted Image

#12

Tak
    Tak

    Tree Puncher

  • Members
  • 35 posts
  • Location: Scotland
  • Minecraft: Muramasa_

Posted 17 April 2013 - 06:36 PM

Hey Jamesscn,

Do you think you could add a tutorial for linking a WorldType/Realm to a custom Portal?

Also, a tutorial for generating structures would be handy but only if you have time Posted Image

Thanks, Great Tutorials!!

#13

Jamesscn
  • Location: UK
  • Minecraft: Jamesscn

Posted 17 April 2013 - 09:22 PM

View PostTak, on 17 April 2013 - 06:36 PM, said:

Hey Jamesscn,

Do you think you could add a tutorial for linking a WorldType/Realm to a custom Portal?

Also, a tutorial for generating structures would be handy but only if you have time Posted Image

Thanks, Great Tutorials!!

You can teleport to an existing dimension using entityplayer.travelToDimension(); but you can't teleport to a custom dimension/worldtype in modloader, only in forge.

I'll start making the tutorial now
Posted Image

#14

Tak
    Tak

    Tree Puncher

  • Members
  • 35 posts
  • Location: Scotland
  • Minecraft: Muramasa_

Posted 17 April 2013 - 10:42 PM

Another suggestion to help your tutorials stand out :)

The number one thing I cant personally find tutorials for is adding new images to the players HUD.

Or even to utilize the existing features of the players HUD for other purposes, like changing the XP level to a thirst meter.

#15

MinMax123
  • Location: Under your bed with a diamond sword
  • Minecraft: MinMax123

Posted 18 April 2013 - 01:56 AM

Hi
I was trying to use your code for how to add food, but I got an error. Basically the constructor with the item int int float boolean doesn't work D:
Any fix for this, or is there a mistake in the code?
Posted Image

#16

Jamesscn
  • Location: UK
  • Minecraft: Jamesscn

Posted 18 April 2013 - 02:39 AM

M

View PostMinMax123, on 18 April 2013 - 01:56 AM, said:

Hi
I was trying to use your code for how to add food, but I got an error. Basically the constructor with the item int int float boolean doesn't work D:
Any fix for this, or is there a mistake in the code?

Must be a mistake in your code, the itemfood constructor for me is
net.minecraft.src.ItemFood.ItemFood(int par1, int par2, float par3, boolean par4)

View PostTak, on 17 April 2013 - 10:42 PM, said:

Another suggestion to help your tutorials stand out Posted Image

The number one thing I cant personally find tutorials for is adding new images to the players HUD.

Or even to utilize the existing features of the players HUD for other purposes, like changing the XP level to a thirst meter.

I'll take a look into the code and see if I can modify it
Posted Image

#17

Jamesscn
  • Location: UK
  • Minecraft: Jamesscn

Posted 18 April 2013 - 03:19 AM

View PostTak, on 17 April 2013 - 06:36 PM, said:

Hey Jamesscn,

Do you think you could add a tutorial for linking a WorldType/Realm to a custom Portal?

Also, a tutorial for generating structures would be handy but only if you have time Posted Image

Thanks, Great Tutorials!!

I added the tutorial for structures
Posted Image

#18

MinMax123
  • Location: Under your bed with a diamond sword
  • Minecraft: MinMax123

Posted 18 April 2013 - 05:07 AM

I really like your mob tutorial, but I get an error. When I type "publicvoid addRenderer(Map var1){"
Map gets an error. It says "Map cannot be resolved to a type". Also, how do I know if the mobs are spawning? Do they act like animals and rarely spawn?
Posted Image

#19

Jamesscn
  • Location: UK
  • Minecraft: Jamesscn

Posted 18 April 2013 - 08:53 PM

View PostMinMax123, on 18 April 2013 - 05:07 AM, said:

I really like your mob tutorial, but I get an error. When I type "publicvoid addRenderer(Map var1){"
Map gets an error. It says "Map cannot be resolved to a type". Also, how do I know if the mobs are spawning? Do they act like animals and rarely spawn?

Add this to your imports (after package net.minecraft.src but before public class):

import java.util.Map;

also make sure you add a space between public and void.

I forgot to add how to make your mobs spawn naturally (fail): Add this to your BiomeGenBase.java file in the protected BiomeGenBase(int par1):

this.spawnableCreatureList.add(new SpawnListEntry(EntitySteve.class, 8, 4, 8));

Change EntitySteve to your mob and spawnableCreatureList if it's not a passive land mob
Posted Image

#20

MinMax123
  • Location: Under your bed with a diamond sword
  • Minecraft: MinMax123

Posted 19 April 2013 - 01:20 AM

View PostJamesscn, on 18 April 2013 - 08:53 PM, said:

Add this to your imports (after package net.minecraft.src but before public class):

import java.util.Map;

also make sure you add a space between public and void.

I forgot to add how to make your mobs spawn naturally (fail): Add this to your BiomeGenBase.java file in the protected BiomeGenBase(int par1):

this.spawnableCreatureList.add(new SpawnListEntry(EntitySteve.class, 8, 4, 8));

Change EntitySteve to your mob and spawnableCreatureList if it's not a passive land mob
THx
Posted Image