TehGimpsters
To view all the forum contents. Please login or register.

Join the forum, it's quick and easy

TehGimpsters
To view all the forum contents. Please login or register.
TehGimpsters
Would you like to react to this message? Create an account in a few clicks or log in to continue.

[Tutorial Set] [ModLoader] Slymask3's Modding Tutorials

+15
yazan123
N1xx1
bardock10
urkkle
Zblade93
JoeySalsa
tanzkua
cloudstrife29461
guitarmen
Hollywood_Undead
zdmshadow
PlayerTim6
Zeperus
dittos
Slymask3
19 posters

Page 2 of 5 Previous  1, 2, 3, 4, 5  Next

Go down

[Tutorial Set] [ModLoader] Slymask3's Modding Tutorials - Page 2 Empty Re: [Tutorial Set] [ModLoader] Slymask3's Modding Tutorials

Post by Slymask3 Fri Jul 29, 2011 11:54 am

PlayerTim6 wrote:Alright.. I did install modLoader, but didn't decompile with them..
Oh I see,
Just try it, and post if it worked. Very Happy
Slymask3
Slymask3
Administrator
Administrator

Minecraft : Slymask3
YouTube : TehGimpsters
Posts : 441
Join date : 2011-07-26
Age : 27
Location : Canada

https://www.youtube.com/tehgimpsters

Back to top Go down

[Tutorial Set] [ModLoader] Slymask3's Modding Tutorials - Page 2 Empty Re: [Tutorial Set] [ModLoader] Slymask3's Modding Tutorials

Post by PlayerTim6 Fri Jul 29, 2011 2:37 pm

It worked! Your tuts really helped me out Smile
PlayerTim6
PlayerTim6

Posts : 8
Join date : 2011-07-29

Back to top Go down

[Tutorial Set] [ModLoader] Slymask3's Modding Tutorials - Page 2 Empty Re: [Tutorial Set] [ModLoader] Slymask3's Modding Tutorials

Post by Slymask3 Fri Jul 29, 2011 3:15 pm

PlayerTim6 wrote:It worked! Your tuts really helped me out Smile
Thank You. Very Happy
I'm glad I helped someone! Very Happy
Slymask3
Slymask3
Administrator
Administrator

Minecraft : Slymask3
YouTube : TehGimpsters
Posts : 441
Join date : 2011-07-26
Age : 27
Location : Canada

https://www.youtube.com/tehgimpsters

Back to top Go down

[Tutorial Set] [ModLoader] Slymask3's Modding Tutorials - Page 2 Empty Re: [Tutorial Set] [ModLoader] Slymask3's Modding Tutorials

Post by PlayerTim6 Sat Jul 30, 2011 9:56 am

Slymask3 wrote:
PlayerTim6 wrote:It worked! Your tuts really helped me out Smile
Thank You. Very Happy
I'm glad I helped someone! Very Happy
And now I neep help again Razz

I want to know, how do I declare Lapis Lazuli in the .java file? I wrote 'Item.lapislazuli' but it doesn't seem to work, it gives me an error...
PlayerTim6
PlayerTim6

Posts : 8
Join date : 2011-07-29

Back to top Go down

[Tutorial Set] [ModLoader] Slymask3's Modding Tutorials - Page 2 Empty Re: [Tutorial Set] [ModLoader] Slymask3's Modding Tutorials

Post by Slymask3 Sat Jul 30, 2011 10:06 am

PlayerTim6 wrote:And now I neep help again Razz

I want to know, how do I declare Lapis Lazuli in the .java file? I wrote 'Item.lapislazuli' but it doesn't seem to work, it gives me an error...
Well, Lapis Lazuli is a Dye with a damage value of 4.

What are you trying to do with the Lapis Lazuli?
Slymask3
Slymask3
Administrator
Administrator

Minecraft : Slymask3
YouTube : TehGimpsters
Posts : 441
Join date : 2011-07-26
Age : 27
Location : Canada

https://www.youtube.com/tehgimpsters

Back to top Go down

[Tutorial Set] [ModLoader] Slymask3's Modding Tutorials - Page 2 Empty Re: [Tutorial Set] [ModLoader] Slymask3's Modding Tutorials

Post by PlayerTim6 Sat Jul 30, 2011 10:10 am

Slymask3 wrote:
PlayerTim6 wrote:And now I neep help again Razz

I want to know, how do I declare Lapis Lazuli in the .java file? I wrote 'Item.lapislazuli' but it doesn't seem to work, it gives me an error...
Well, Lapis Lazuli is a Dye with a damage value of 4.

What are you trying to do with the Lapis Lazuli?
I'm trying to use it in a recipe for a block.
PlayerTim6
PlayerTim6

Posts : 8
Join date : 2011-07-29

Back to top Go down

[Tutorial Set] [ModLoader] Slymask3's Modding Tutorials - Page 2 Empty Re: [Tutorial Set] [ModLoader] Slymask3's Modding Tutorials

Post by Slymask3 Sat Jul 30, 2011 10:26 am

PlayerTim6 wrote:I'm trying to use it in a recipe for a block.
Alright, you have to use a different Recipe code.
I will add a in-depth tutorial soon though.

But here is the simple code:
Code:
ModLoader.AddShapelessRecipe(new ItemStack(IB.NAME, QUANTITY), new Object[] {new ItemStack(IB2.NAME2, QUANTITY2, DAMAGEVALUE)});
IB = Item/Block. As usual.
NAME = The name of the Item/Block.
QUANTITY = The quantity of that item/block.
IB2 = Item/Block.
NAME2 = The name of the Item/Block.
QUANTITY2 = The quantity of that item/block.
DAMAGEVALUE = the damage value of the item/block.

Now here is the same one, but added one more ingredient the recipe:
Code:
ModLoader.AddShapelessRecipe(new ItemStack(IB.NAME, QUANTITY), new Object[] {new ItemStack(IB2.NAME2, QUANTITY2, DAMAGEVALUE), new ItemStack(IB3.NAME3, QUANTITY3, DAMAGEVALUE2)});
Same as above, but added in another ingredient.

Example:
Code:
ModLoader.AddShapelessRecipe(new ItemStack(Item.diamond, 1), new Object[] {new ItemStack(Item.dyePowder, 1, 11), new ItemStack(Block.obsidian, 1)});
This will make a recipe that when you put in an Obsidian Block and 1 Yellow Dye, you will get 1 Diamond.

Here is a picture of all the blocks/items in Minecraft. It also has the damage values of the items/blocks.
[Tutorial Set] [ModLoader] Slymask3's Modding Tutorials - Page 2 DataValuesBeta
Slymask3
Slymask3
Administrator
Administrator

Minecraft : Slymask3
YouTube : TehGimpsters
Posts : 441
Join date : 2011-07-26
Age : 27
Location : Canada

https://www.youtube.com/tehgimpsters

Back to top Go down

[Tutorial Set] [ModLoader] Slymask3's Modding Tutorials - Page 2 Empty Re: [Tutorial Set] [ModLoader] Slymask3's Modding Tutorials

Post by Slymask3 Sat Jul 30, 2011 12:52 pm

So did it work, PlayerTim6?
Slymask3
Slymask3
Administrator
Administrator

Minecraft : Slymask3
YouTube : TehGimpsters
Posts : 441
Join date : 2011-07-26
Age : 27
Location : Canada

https://www.youtube.com/tehgimpsters

Back to top Go down

[Tutorial Set] [ModLoader] Slymask3's Modding Tutorials - Page 2 Empty Re: [Tutorial Set] [ModLoader] Slymask3's Modding Tutorials

Post by PlayerTim6 Sat Jul 30, 2011 9:33 pm

Slymask3 wrote:So did it work, PlayerTim6?
Yes. It did. And now my mod adds 6 blocks, 6 gems, and 6 armor sets Smile I'm going to add tools too!
PlayerTim6
PlayerTim6

Posts : 8
Join date : 2011-07-29

Back to top Go down

[Tutorial Set] [ModLoader] Slymask3's Modding Tutorials - Page 2 Empty Re: [Tutorial Set] [ModLoader] Slymask3's Modding Tutorials

Post by Slymask3 Sat Jul 30, 2011 10:27 pm

PlayerTim6 wrote:Yes. It did. And now my mod adds 6 blocks, 6 gems, and 6 armor sets Smile I'm going to add tools too!
That's great! Very Happy
I'm going to add a Toolset Tutorial. Very Happy
I would have added it earlier, but I was having troubles with my PaperCraft mod.
I was adding a Properties file, I finally got it to work, but now the mulberry tree isn't working. Sad
Slymask3
Slymask3
Administrator
Administrator

Minecraft : Slymask3
YouTube : TehGimpsters
Posts : 441
Join date : 2011-07-26
Age : 27
Location : Canada

https://www.youtube.com/tehgimpsters

Back to top Go down

[Tutorial Set] [ModLoader] Slymask3's Modding Tutorials - Page 2 Empty Re: [Tutorial Set] [ModLoader] Slymask3's Modding Tutorials

Post by zdmshadow Tue Aug 02, 2011 4:38 am

Ok, I'm been asking this everywhere in the Minecraft forum's modding section, and no one seems to know how to do this. I'm trying to make cake drop cake (block not item) only when it doesn't have any slice missing. I've been trying things like
Code:
    public int quantityDropped(Random random, int j)
    {
        if(j == 0)
        {
            return 1;
        } else
        {
            return 0;
        }
    }
which doesn't stop it from dropping cake all the time, but I think I'm doing something wrong because even if it should do something like this
Code:
    public int quantityDropped(Random random, EntityPlayer entityplayer)
    {
        if(entityplayer.health == 20)
        {
            return 1;
        }
        if(entityplayer.health < 20)
        {
            return 0;
        } else
        {
            return 0;
        }
    }
it still drops cake all the time even though it should only drop cake when the player has 10 hearts. Do you know how to do this?

Great tutorials btw; very descriptive.
zdmshadow
zdmshadow

Minecraft : zdmshadow
YouTube : zdmshadow
Posts : 2
Join date : 2011-08-02

Back to top Go down

[Tutorial Set] [ModLoader] Slymask3's Modding Tutorials - Page 2 Empty Re: [Tutorial Set] [ModLoader] Slymask3's Modding Tutorials

Post by Zeperus Tue Aug 02, 2011 9:10 am

I think entityplayer is you
Zeperus
Zeperus

Minecraft : Zeperus
YouTube : Zeperus05
Posts : 96
Join date : 2011-07-26
Age : 28

Back to top Go down

[Tutorial Set] [ModLoader] Slymask3's Modding Tutorials - Page 2 Empty Re: [Tutorial Set] [ModLoader] Slymask3's Modding Tutorials

Post by Slymask3 Tue Aug 02, 2011 9:49 am

@zdmshadow
I'm not sure, they look like they should work.
I will try to look into it.

@Zeperus
entityplayer is the player, yes.
Slymask3
Slymask3
Administrator
Administrator

Minecraft : Slymask3
YouTube : TehGimpsters
Posts : 441
Join date : 2011-07-26
Age : 27
Location : Canada

https://www.youtube.com/tehgimpsters

Back to top Go down

[Tutorial Set] [ModLoader] Slymask3's Modding Tutorials - Page 2 Empty Re: [Tutorial Set] [ModLoader] Slymask3's Modding Tutorials

Post by zdmshadow Tue Aug 02, 2011 3:19 pm

Slymask3 wrote:@zdmshadow
I'm not sure, they look like they should work.
I will try to look into it.

@Zeperus
entityplayer is the player, yes.
Thanks! Whenever I posted this on the minecraft forums it was ignored since no one knew the answer.
zdmshadow
zdmshadow

Minecraft : zdmshadow
YouTube : zdmshadow
Posts : 2
Join date : 2011-08-02

Back to top Go down

[Tutorial Set] [ModLoader] Slymask3's Modding Tutorials - Page 2 Empty Re: [Tutorial Set] [ModLoader] Slymask3's Modding Tutorials

Post by Hollywood_Undead Thu Aug 04, 2011 6:55 pm

hey man, i posted on mc forums and got ignored, my question was:
is it supposed to give me a mod_Epic when i reobfuscate?
i got the BlockEpic, but not the mod_Whatever..
the Block ID is 255
and i did get no errors for the mod but got a random error for some kind of boat thing, i havnt made anything that deals with boats..
please reply
Hollywood_Undead
Hollywood_Undead

Posts : 1
Join date : 2011-08-04

Back to top Go down

[Tutorial Set] [ModLoader] Slymask3's Modding Tutorials - Page 2 Empty Re: [Tutorial Set] [ModLoader] Slymask3's Modding Tutorials

Post by guitarmen Sat Aug 06, 2011 5:33 am

found the problem Wink


Last edited by guitarmen on Sun Aug 07, 2011 4:30 am; edited 2 times in total
guitarmen
guitarmen

Posts : 2
Join date : 2011-08-06

Back to top Go down

[Tutorial Set] [ModLoader] Slymask3's Modding Tutorials - Page 2 Empty Re: [Tutorial Set] [ModLoader] Slymask3's Modding Tutorials

Post by guitarmen Sun Aug 07, 2011 4:29 am

Hollywood_Undead wrote:hey man, i posted on mc forums and got ignored, my question was:
is it supposed to give me a mod_Epic when i reobfuscate?
i got the BlockEpic, but not the mod_Whatever..
the Block ID is 255
and i did get no errors for the mod but got a random error for some kind of boat thing, i havnt made anything that deals with boats..
please reply
it won't give you an mod_Epic.class, toul have to make that your own
guitarmen
guitarmen

Posts : 2
Join date : 2011-08-06

Back to top Go down

[Tutorial Set] [ModLoader] Slymask3's Modding Tutorials - Page 2 Empty Re: [Tutorial Set] [ModLoader] Slymask3's Modding Tutorials

Post by Zeperus Sun Aug 07, 2011 7:52 am

guitarmen wrote:
Hollywood_Undead wrote:hey man, i posted on mc forums and got ignored, my question was:
is it supposed to give me a mod_Epic when i reobfuscate?
i got the BlockEpic, but not the mod_Whatever..
the Block ID is 255
and i did get no errors for the mod but got a random error for some kind of boat thing, i havnt made anything that deals with boats..
please reply
it won't give you an mod_Epic.class, toul have to make that your own

If you reobduscate you get all you modified .java and all your new .java files, converted to .class files

Did you name the mod_Epic .java ? so, that it was mod_Epic.java when you edited ?

If not, then you won't get it as a .class file.

Sometimes, I have to reobfuscate a second time, so that It works ^^
Zeperus
Zeperus

Minecraft : Zeperus
YouTube : Zeperus05
Posts : 96
Join date : 2011-07-26
Age : 28

Back to top Go down

[Tutorial Set] [ModLoader] Slymask3's Modding Tutorials - Page 2 Empty Re: [Tutorial Set] [ModLoader] Slymask3's Modding Tutorials

Post by cloudstrife29461 Fri Aug 19, 2011 11:00 pm

when i have time i will look at this it looks cool cheers
cloudstrife29461
cloudstrife29461

Minecraft : cloud29461
YouTube : ccloudstrife29461
Posts : 213
Join date : 2011-08-19
Age : 26
Location : USA

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

Back to top Go down

[Tutorial Set] [ModLoader] Slymask3's Modding Tutorials - Page 2 Empty Re: [Tutorial Set] [ModLoader] Slymask3's Modding Tutorials

Post by tanzkua Sun Aug 21, 2011 5:10 pm

Hello I have a problem when trying the mod ;(
I don't get any Errors when I recompile it, but when I run startclient.bat to try the mod out it gives this error:


Spoiler:

I can understand that it doesn't find LightDirt.png, but the question is why?
I have putted the LightBlocks folder to the src folder.
Because of this error I believe theyre supposed to put on another place, but where?

Please help me Smile
tanzkua
tanzkua

Posts : 5
Join date : 2011-08-21

Back to top Go down

[Tutorial Set] [ModLoader] Slymask3's Modding Tutorials - Page 2 Empty Re: [Tutorial Set] [ModLoader] Slymask3's Modding Tutorials

Post by Slymask3 Sun Aug 21, 2011 10:36 pm

tanzkua wrote:Hello I have a problem when trying the mod ;(
I don't get any Errors when I recompile it, but when I run startclient.bat to try the mod out it gives this error:


Spoiler:

I can understand that it doesn't find LightDirt.png, but the question is why?
I have putted the LightBlocks folder to the src folder.
Because of this error I believe theyre supposed to put on another place, but where?

Please help me Smile
You have to put the LightBlocks folder in the "minecraft.jar" in mcp -> jars -> bin.
Slymask3
Slymask3
Administrator
Administrator

Minecraft : Slymask3
YouTube : TehGimpsters
Posts : 441
Join date : 2011-07-26
Age : 27
Location : Canada

https://www.youtube.com/tehgimpsters

Back to top Go down

[Tutorial Set] [ModLoader] Slymask3's Modding Tutorials - Page 2 Empty Re: [Tutorial Set] [ModLoader] Slymask3's Modding Tutorials

Post by tanzkua Mon Aug 22, 2011 11:06 am

Yesh It works now Smile Thank you
Also Thanks for these awesome tutorials they are very clear and easy to understand even though my native language isn't english.
tanzkua
tanzkua

Posts : 5
Join date : 2011-08-21

Back to top Go down

[Tutorial Set] [ModLoader] Slymask3's Modding Tutorials - Page 2 Empty Re: [Tutorial Set] [ModLoader] Slymask3's Modding Tutorials

Post by Slymask3 Mon Aug 22, 2011 12:22 pm

tanzkua wrote:Yesh It works now Smile Thank you
Also Thanks for these awesome tutorials they are very clear and easy to understand even though my native language isn't english.
Thank you. I appreciate that you used them. Very Happy
If you are going to publish your mod, could you also put a link to go to these tutorials.
Also, I will add your mod to the "mods created by people using these tutorials". Very Happy
Slymask3
Slymask3
Administrator
Administrator

Minecraft : Slymask3
YouTube : TehGimpsters
Posts : 441
Join date : 2011-07-26
Age : 27
Location : Canada

https://www.youtube.com/tehgimpsters

Back to top Go down

[Tutorial Set] [ModLoader] Slymask3's Modding Tutorials - Page 2 Empty Re: [Tutorial Set] [ModLoader] Slymask3's Modding Tutorials

Post by tanzkua Mon Aug 22, 2011 2:11 pm

Yes I'm definetely going to put link to these tutorials if I'm going to publish this mod Smile
And I have a noobish question too Razz
Now I can test the mod with mcp startclient.bat, but what if I want try it out
with actual minecraft.
How do I install the mod?
I changed the .java files to class files, and putted them on my minecraft.jar in appdata/roaming/.minecraft/bin, but it crashed my minecraft when I tried to start it.
Please answer this dumb question.
Thank you Smile

tanzkua
tanzkua

Posts : 5
Join date : 2011-08-21

Back to top Go down

[Tutorial Set] [ModLoader] Slymask3's Modding Tutorials - Page 2 Empty Re: [Tutorial Set] [ModLoader] Slymask3's Modding Tutorials

Post by Slymask3 Mon Aug 22, 2011 2:59 pm

You have to run the "reobfuscate.bat".
Then it will detect new files, and edited files.
And convert them to .class files.

Then go to mcp -> reobf -> minecraft to find your files. Very Happy
Slymask3
Slymask3
Administrator
Administrator

Minecraft : Slymask3
YouTube : TehGimpsters
Posts : 441
Join date : 2011-07-26
Age : 27
Location : Canada

https://www.youtube.com/tehgimpsters

Back to top Go down

[Tutorial Set] [ModLoader] Slymask3's Modding Tutorials - Page 2 Empty Re: [Tutorial Set] [ModLoader] Slymask3's Modding Tutorials

Post by Sponsored content


Sponsored content


Back to top Go down

Page 2 of 5 Previous  1, 2, 3, 4, 5  Next

Back to top

- Similar topics

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