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.

[1.8.1] Crop

+3
lcass
austin56101
Strengthowns
7 posters

Page 1 of 2 1, 2  Next

Go down

[1.8.1] Crop Empty [1.8.1] Crop

Post by Strengthowns Wed Oct 05, 2011 10:56 am

Crop

Spoiler:
Strengthowns
Strengthowns
Admin

Posts : 79
Join date : 2011-06-14
Location : Right here!

http://www.mcmodding.4umer.com

Back to top Go down

[1.8.1] Crop Empty Re: [1.8.1] Crop

Post by austin56101 Mon Oct 24, 2011 9:15 am

Do you think you can make a video on this? I've tried several times, and I failed lol
austin56101
austin56101
Moderator
Moderator

Posts : 85
Join date : 2011-10-22
Age : 27
Location : Cali!

Back to top Go down

[1.8.1] Crop Empty Re: [1.8.1] Crop

Post by austin56101 Tue Oct 25, 2011 4:16 am

hey mannn can you comment on this?
also make bonemeal work?
austin56101
austin56101
Moderator
Moderator

Posts : 85
Join date : 2011-10-22
Age : 27
Location : Cali!

Back to top Go down

[1.8.1] Crop Empty Re: [1.8.1] Crop

Post by Strengthowns Tue Oct 25, 2011 8:43 am

Show me the error in the help section.
Strengthowns
Strengthowns
Admin

Posts : 79
Join date : 2011-06-14
Location : Right here!

http://www.mcmodding.4umer.com

Back to top Go down

[1.8.1] Crop Empty Re: [1.8.1] Crop

Post by lcass Tue Oct 25, 2011 10:35 am

I get the thing working but It dosn't grow and it dosn' drop anything

lcass
Member

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

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

Back to top Go down

[1.8.1] Crop Empty Re: [1.8.1] Crop

Post by austin56101 Tue Oct 25, 2011 4:54 pm

Same^
austin56101
austin56101
Moderator
Moderator

Posts : 85
Join date : 2011-10-22
Age : 27
Location : Cali!

Back to top Go down

[1.8.1] Crop Empty Re: [1.8.1] Crop

Post by lcass Tue Oct 25, 2011 6:19 pm

well we dont get an error all that happens is it dosn't grow and bone meal dosn't work on it and then when you destroy it it dosn't return the item that was said in the namhere.java return method. DANG lots of dosn't

lcass
Member

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

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

Back to top Go down

[1.8.1] Crop Empty Re: [1.8.1] Crop

Post by Strengthowns Wed Oct 26, 2011 1:27 am

It should. I test all of the code for my tutorials and it works fine. I don't know what the problem is then. Show me your mod_ files.
Strengthowns
Strengthowns
Admin

Posts : 79
Join date : 2011-06-14
Location : Right here!

http://www.mcmodding.4umer.com

Back to top Go down

[1.8.1] Crop Empty Re: [1.8.1] Crop

Post by austin56101 Wed Oct 26, 2011 4:33 am

well i deleted it (clean up) since it didnt work
also i just copied pasted and renamed
and it worked but they didnt grow
also didnt work with bone meal
austin56101
austin56101
Moderator
Moderator

Posts : 85
Join date : 2011-10-22
Age : 27
Location : Cali!

Back to top Go down

[1.8.1] Crop Empty Re: [1.8.1] Crop

Post by groxmapper Wed Oct 26, 2011 4:41 am

austin56101 wrote:well i deleted it (clean up) since it didnt work
also i just copied pasted and renamed
and it worked but they didnt grow
also didnt work with bone meal

Well it's garenteed not to work with bonemeal because the code for how bonemeal reacts to plants is in ItemDye.java not in the blocks it effects.
groxmapper
groxmapper
Member

Posts : 27
Join date : 2011-10-24

Back to top Go down

[1.8.1] Crop Empty Re: [1.8.1] Crop

Post by austin56101 Wed Oct 26, 2011 4:44 am

well can it be restated to work here as well?
austin56101
austin56101
Moderator
Moderator

Posts : 85
Join date : 2011-10-22
Age : 27
Location : Cali!

Back to top Go down

[1.8.1] Crop Empty Re: [1.8.1] Crop

Post by lcass Wed Oct 26, 2011 12:01 pm

[code]package net.minecraft.src;

import java.util.*;

public class mod_superwheat extends BaseMod
{
public static int growsuperwheat1 = ModLoader.addOverride("/terrain.png", "/crystal/1wheat.png");
public static int growsuperwheat2 = ModLoader.addOverride("/terrain.png", "/crystal/2wheat.png");
public static int growsuperwheat3 = ModLoader.addOverride("/terrain.png", "/crystal/3wheat.png");
public static int growsuperwheat4 = ModLoader.addOverride("/terrain.png", "/crystal/4wheat.png");
public static int growsuperwheat5 = ModLoader.addOverride("/terrain.png", "/crystal/5wheat.png");
public static int growsuperwheat6 = ModLoader.addOverride("/terrain.png", "/crystal/6wheat.png");
public static int growsuperwheat7 = ModLoader.addOverride("/terrain.png", "/crystal/7wheat.png");
public static int growsuperwheat8 = ModLoader.addOverride("/terrain.png", "/crystal/8wheat.png");

public static final Block superwheatblock = new superwheatblock(200, 0).setBlockName("superwheat");
public static final Item superwheat = new superwheat(4000, mod_superwheat.superwheatblock.blockID).setItemName("superwheatblock");

public mod_superwheat()
{
ModLoader.AddName(superwheat, "superwheat");
superwheatblock.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/crystal/wheatblock.png");

ModLoader.AddName(superwheat, "superwheat");
superwheat.iconIndex = ModLoader.addOverride("/gui/items.png", "/crystal/wheatitem.png");
}

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

lcass
Member

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

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

Back to top Go down

[1.8.1] Crop Empty Re: [1.8.1] Crop

Post by groxmapper Wed Oct 26, 2011 1:54 pm

austin56101 wrote:well can it be restated to work here as well?

In terms of bonemeal, unless you edit ItemDye.java you'll need to make a new item or use blockActivated like so:
Code:
public boolean blockActivated(World world, int i, int j, int k, EntityPlayer entityplayer)
{
      if(entityplayer.inventory.getCurrentItem() != null && entityplayer.inventory.getCurrentItem().itemID == Item.bonemeal.shiftedIndex) // guessing on bonemeal, check Item.java if this doesn't work
       {   
//put sapling grow code here       
}else
      {
         super.blockActivated(world, i, j, k, entityplayer);
      }
}


Last edited by groxmapper on Wed Oct 26, 2011 9:41 pm; edited 1 time in total
groxmapper
groxmapper
Member

Posts : 27
Join date : 2011-10-24

Back to top Go down

[1.8.1] Crop Empty Re: [1.8.1] Crop

Post by austin56101 Wed Oct 26, 2011 4:40 pm

Icass use code tags please, thanks:)
austin56101
austin56101
Moderator
Moderator

Posts : 85
Join date : 2011-10-22
Age : 27
Location : Cali!

Back to top Go down

[1.8.1] Crop Empty Re: [1.8.1] Crop

Post by lcass Wed Oct 26, 2011 5:58 pm

Very Happy I know it messed up GRATS on becoming mod ALSO austin I will be adding some tutorials aswell Very Happy I finally know how to do the furnace like item thing making anything you want Very Happy so many Very Happy I will put it up tonight (hopefully) I just spent the past to hours eating kit kats and meringues editing mojangs code to get it to function as a diffrent item!!!!!

lcass
Member

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

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

Back to top Go down

[1.8.1] Crop Empty Re: [1.8.1] Crop

Post by austin56101 Wed Oct 26, 2011 7:14 pm

Good aha I've been the only one adding tuts aha
And lolz
austin56101
austin56101
Moderator
Moderator

Posts : 85
Join date : 2011-10-22
Age : 27
Location : Cali!

Back to top Go down

[1.8.1] Crop Empty Re: [1.8.1] Crop

Post by lcass Wed Oct 26, 2011 10:45 pm

I will have an update on the newdimension coming soon

lcass
Member

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

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

Back to top Go down

[1.8.1] Crop Empty Re: [1.8.1] Crop

Post by austin56101 Wed Oct 26, 2011 11:16 pm

Sweet. Looking forward to it!
austin56101
austin56101
Moderator
Moderator

Posts : 85
Join date : 2011-10-22
Age : 27
Location : Cali!

Back to top Go down

[1.8.1] Crop Empty Re: [1.8.1] Crop

Post by lcass Wed Oct 26, 2011 11:25 pm

oh and how to make a bow and arrow I tried one on zidmc that was copyied from someone else by this kid like 7 years old Very Happy and guess what IT didn't work so I will do one here hopefull people will like it. yay i might be doing the coco mod Very Happy I do love my Very Happy s there epic

lcass
Member

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

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

Back to top Go down

[1.8.1] Crop Empty Re: [1.8.1] Crop

Post by austin56101 Wed Oct 26, 2011 11:38 pm

lol yeah
well all working tuts are welcome!
austin56101
austin56101
Moderator
Moderator

Posts : 85
Join date : 2011-10-22
Age : 27
Location : Cali!

Back to top Go down

[1.8.1] Crop Empty Re: [1.8.1] Crop

Post by jesshankin22 Sat Oct 29, 2011 5:54 am

Wait... if I used this exact code, pretty much, what would I use for seeds, if you know what I mean

jesshankin22
Member

Posts : 47
Join date : 2011-10-24

Back to top Go down

[1.8.1] Crop Empty Re: [1.8.1] Crop

Post by austin56101 Sat Oct 29, 2011 6:15 am

idk i couldnt get it o work :/
like mine wouldnt grow
austin56101
austin56101
Moderator
Moderator

Posts : 85
Join date : 2011-10-22
Age : 27
Location : Cali!

Back to top Go down

[1.8.1] Crop Empty Re: [1.8.1] Crop

Post by jesshankin22 Sat Oct 29, 2011 6:18 am

yeah but what did you use as seeds?

jesshankin22
Member

Posts : 47
Join date : 2011-10-24

Back to top Go down

[1.8.1] Crop Empty Re: [1.8.1] Crop

Post by austin56101 Sat Oct 29, 2011 6:19 am

not sure :/
austin56101
austin56101
Moderator
Moderator

Posts : 85
Join date : 2011-10-22
Age : 27
Location : Cali!

Back to top Go down

[1.8.1] Crop Empty Re: [1.8.1] Crop

Post by jesshankin22 Sat Oct 29, 2011 6:23 am

haha I see... damn =/ oh well.

jesshankin22
Member

Posts : 47
Join date : 2011-10-24

Back to top Go down

[1.8.1] Crop Empty Re: [1.8.1] Crop

Post by Sponsored content


Sponsored content


Back to top Go down

Page 1 of 2 1, 2  Next

Back to top


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