Naw, brah, you don't even need names with just 201. You're good, you're good! haha
XD
"uuh....what tool is this...?"
"It's that black and pruple one"
"ok....i need a diamond so i can get obsidain"
"well, just start mining and see if you get it!"
Okay, so I'm trying to work on item textures now. Not sure if they can work right now, though. Just tried the whole .func_#### and it didn't work, changed the function from protected to public and that didn't work (I don't like messing with base classes anyways, though), and I tried importing some of the stuff that looked important for textures from Item.java into my mod class and that didn't work. Might be impossible right now.
But I did spawn on a nice island. Seed: 7346433353321035757
Great tutorials btw. Thay are really helpful. One suggestion for the forge series. You should do a tutorial on how to spawn a certain mob entity from an item when righ clicked.
Great tutorials btw. Thay are really helpful. One suggestion for the forge series. You should do a tutorial on how to spawn a certain mob entity from an item when righ clicked.
Great tutorials btw. Thay are really helpful. One suggestion for the forge series. You should do a tutorial on how to spawn a certain mob entity from an item when righ clicked.
Add this to your Item class. My code is much more expansive because I use metadata and multiple entities, but I think I watered it down to some working code.
public boolean onItemUse(ItemStack itemStack, EntityPlayer player, World world,
int x, int y, int z, int side, float xOffset, float yOffset, float zOffset) {
EntityLiving ent = null;
if (player.canPlayerEdit(x, y, z, side, itemStack)) {
ent = new EntitySunflower(world);
}
if(world.getBlockId(x, y+1, z) == 0) { // place where plant will be is air
// block plant is on is endowed grass or water lily
int blockUnder = world.getBlockId(x, y, z);
if( blockUnder == Block.grass.blockID ) { //Block to place entity on
if( player.capabilities.isCreativeMode || player.inventory.consumeInventoryItem( this.itemID ) {
ent.setLocationAndAngles(x+0.5, y+1, z+0.5, 0.0F, 0.0F);
ent.initCreature();
if(!world.isRemote) {
world.spawnEntityInWorld(ent);
}
}
}
}
return true;
}
Guys, i found out how to update your mod to 1.6.1, make a new folder and drag the stuff from the forge folder there and inside that new folder you made there is the stuff thats in the forge folder, now in the new folder drag MCP 8.+ there and install, it will get all the files you need inside the MCP folder, i will make a video on it soon for my forum post
Guys, i found out how to update your mod to 1.6.1, make a new folder and drag the stuff from the forge folder there and inside that new folder you made there is the stuff thats in the forge folder, now in the new folder drag MCP 8.+ there and install, it will get all the files you need inside the MCP folder, i will make a video on it soon for my forum post
ok guys dont update it just yet, a lot of code is now an error
It's nothing wrong with our code... I've looked around and it seems like it's a problem with forge! All we have to do is rewind to 1.5.2 and wait for forge 1.6.1 to become recommended! It's still a grr but it's not our problem yet!
Sweet action! Kinda, lol. At least we know now that we weren't doing anything wrong.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumHelp modders out by contributing to the Forge Ore Dictionary List! http://mce626.wix.com/odnlist
-
View User Profile
-
View Posts
-
Send Message
Curse Premiumsame thing happened to me, i just released beta 1.6 (which added a crap ton of tools) - more blocks mod and a day later 1.6 comes out....
Help modders out by contributing to the Forge Ore Dictionary List! http://mce626.wix.com/odnlist
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumHelp modders out by contributing to the Forge Ore Dictionary List! http://mce626.wix.com/odnlist
EDIT: You don't need textures, brah! The purple/black checkered stuff and the white missingtexturefile is all you need!
EDIT EDIT: Release notes for 1.6.2
I'm also known as TANNAR in some places.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumXD, i have 201 new tools in the mod, you don't need to see which one you craft! lol
Help modders out by contributing to the Forge Ore Dictionary List! http://mce626.wix.com/odnlist
Naw, brah, you don't even need names with just 201. You're good, you're good! haha
I'm also known as TANNAR in some places.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumXD
"uuh....what tool is this...?"
"It's that black and pruple one"
"ok....i need a diamond so i can get obsidain"
"well, just start mining and see if you get it!"
Help modders out by contributing to the Forge Ore Dictionary List! http://mce626.wix.com/odnlist
But I did spawn on a nice island. Seed: 7346433353321035757
I'm also known as TANNAR in some places.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumPut this in the item class:
Add this to your Item class. My code is much more expansive because I use metadata and multiple entities, but I think I watered it down to some working code.
public boolean onItemUse(ItemStack itemStack, EntityPlayer player, World world, int x, int y, int z, int side, float xOffset, float yOffset, float zOffset) { EntityLiving ent = null; if (player.canPlayerEdit(x, y, z, side, itemStack)) { ent = new EntitySunflower(world); } if(world.getBlockId(x, y+1, z) == 0) { // place where plant will be is air // block plant is on is endowed grass or water lily int blockUnder = world.getBlockId(x, y, z); if( blockUnder == Block.grass.blockID ) { //Block to place entity on if( player.capabilities.isCreativeMode || player.inventory.consumeInventoryItem( this.itemID ) { ent.setLocationAndAngles(x+0.5, y+1, z+0.5, 0.0F, 0.0F); ent.initCreature(); if(!world.isRemote) { world.spawnEntityInWorld(ent); } } } } return true; }This is for forge for minecraft 1.5.2
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumHelp modders out by contributing to the Forge Ore Dictionary List! http://mce626.wix.com/odnlist
Here. this might help you alot
ok guys dont update it just yet, a lot of code is now an error
Sweet action! Kinda, lol. At least we know now that we weren't doing anything wrong.
I'm also known as TANNAR in some places.
Yeah, just go to the site, go to the Download tab, and click the Download button. That should download the application, which you can then launch.
I'm also known as TANNAR in some places.
-
View User Profile
-
View Posts
-
Send Message
Curse Premiumreally..? cause mine accepts the @int and stuff...
Help modders out by contributing to the Forge Ore Dictionary List! http://mce626.wix.com/odnlist