i still feel like an idoit, if i want multiple blocks to have the exact same properties but different textures, would i need multi classes such as Mod_greenstonelight, Mod_bluestonelight and Mod_purplestonelight. or would i just need to make extensions of a Mod_colorlights? If i need extensions, how to i do so?
It all goes in the one mod_ class.
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
I'm still getting a graphical glitch with the Pigmen, Adult pigmen lack arms and baby ones don't get their head put to their little body. I'll quote my past post.
"I'm getting a weird glitch with the pigmen. Photo:http://imgur.com/qobLT The one without chest is supposed to be a baby.
hey can you help please im trying to get my block to generate like reeds but it dosent seem to generate at all heres my code
mod_crop
package net.minecraft.src;
import java.util.Random;
public class mod_Crop extends BaseMod
{
public static Block newblock = new BlockCrop1(160, 0).setBlockName("newblock").setHardness(0.5F).setResistance(4F).setLightValue(1F);
public Random GenRand;
public int GenRandNum = 0;
public void load()
{
newblock.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/rawr.png");
ModLoader.registerBlock(newblock);
ModLoader.addName(newblock, "Mulit");
ModLoader.addRecipe(new ItemStack(newblock, 1), new Object [] {"###", '#', Block.dirt});
}
public void GenerateSurface(World world, Random rand, int i, int j)
{
for(int k = 0; k < 20; k++)
{
int posX = i + rand.nextInt(16);
int posY = rand.nextInt(world.getHeight());
int posZ = j + rand.nextInt(16);
(new WorldGenExample(mod_Crop.newblock.blockID)).generate(world, rand, posX, posY, posZ);
}}
public String getVersion()
{
return "1.2.5";
}
}
BlockCrop1
package net.minecraft.src;
import java.util.Random;
public class BlockCrop1 extends Block
{
public BlockCrop1(int i, int j)
{
super(i, j, Material.sand);
}
public int idDropped(int i, Random random, int j)
{
return mod_Crop.newblock.blockID;
}
public int quantityDropped(Random random)
{
return 1;
}}
WorldGenExample
package net.minecraft.src;
import java.util.Random;
public class WorldGenExample extends WorldGenerator
{
private int newblock;
public WorldGenExample(int i)
{
newblock = i;
}
public boolean generate(World world, Random random, int i, int j, int k)
{
for (int l = 0; l < 20; l++)
{
int i1 = (i + random.nextInt(4)) - random.nextInt(4);
int j1 = j;
int k1 = (k + random.nextInt(4)) - random.nextInt(4);
if (!world.isAirBlock(i1, j1, k1) || world.getBlockMaterial(i1 - 1, j1 - 1, k1) != Material.water && world.getBlockMaterial(i1 + 1, j1 - 1, k1) != Material.water && world.getBlockMaterial(i1, j1 - 1, k1 - 1) != Material.water && world.getBlockMaterial(i1, j1 - 1, k1 + 1) != Material.water)
{
continue;
}
int l1 = 2 + random.nextInt(random.nextInt(3) + 1);
for (int i2 = 0; i2 < l1; i2++)
{
if (Block.blocksList[newblock].canBlockStay(world, i1, j1 + i2, k1))
{
world.setBlock(i1, j1 + i2, k1, newblock);
}
}
}
return true;
}
}
The PasteBin for the render code isn't working. For the model code, the arms need to be added into the isChild if statement. I forgot to do that before:
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
The PasteBin for the render code isn't working. For the model code, the arms need to be added into the isChild if statement. I forgot to do that before:
when i use them separately they work perfectly, but if I try using them together they dont work.
they are made for minecraft 1.2.5 with modloader installed
ive added a config file to each mod for ID conflics and made them not conflict but the config file does not work or change the ID
when i use them separately they work perfectly, but if I try using them together they dont work.
they are made for minecraft 1.2.5 with modloader installed
ive added a config file to each mod for ID conflics and made them not conflict but the config file does not work or change the ID
Post your code. Ask in Mod Development about the config file though. I am not answering any questions about them.
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
The arms in the adult are now ok but the baby's head still won't connect to his tiny body, instead it will float above the body.
I'm not sure sorry. Try asking in Mod Development.
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
Guys i made a custom item and a custom npc but i dont know what to put after the return to make it drop this item i have tried "Item.ItemName.shiftedIndex;" and others plz help
protected int getDropItemId()
{
return What must i put here
}
Hey question, if i was to make multiple Blocks in the one mod project, Would I have to make seperate mod_block classes or would i be able to make one mod_block like list?
If so can you show us a template or such, kinda new to modding minecraft so yeah....
thanks in advance
EDIT
learned how to read whole tutorial intro plus use search to see if question had been answered before-FacePalm- once again dude diamonds ... thankyou
Guys i made a custom item and a custom npc but i dont know what to put after the return to make it drop this item i have tried "Item.ItemName.shiftedIndex;" and others plz help
protected int getDropItemId()
{
return What must i put here
}
You just reference to the instance. For example, if the item you want to be dropped is in the mod_ class, then you just write:
public int getDropItemId()
{
return mod_Namehere.itemName.shiftedIndex;
}
The shiftedIndex always stays the same but the first two parts of that can change (The mod_ Namehere.itemName bit can change).
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
If you can, i would like if you could help me tell what this error report wants. It is the last few errors that i got and i just can't figure it out. I have tried making it Capitals, lowercase, adding a new space,removing a new space and it still has the same error.
== ERRORS FOUND ==
src/minecraft/net/minecraft/src/mod_seaweed.java:1: class, interface, or enum expected
rtf1ansiansicpg1252cocoartf1138cocoasubrtf320
^
how do i make an explosive? I want to make a mod which gives you items from total miner forge, and one of them is C4, how do I set explosions on? And how do I change the size?
If you can, i would like if you could help me tell what this error report wants. It is the last few errors that i got and i just can't figure it out. I have tried making it Capitals, lowercase, adding a new space,removing a new space and it still has the same error.
== ERRORS FOUND ==
src/minecraft/net/minecraft/src/mod_seaweed.java:1: class, interface, or enum expected
rtf1ansiansicpg1252cocoartf1138cocoasubrtf320
^
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
Public string;
getVersion();
{
return "1.2.5";
}
};
That is my code, Anything that might look wrong to you, it is what the errors told me to fix or add in or remove. If it possible, to make this easier, if you could edit this and paste a fixed and working version for the code and i could compare it to see what i did wrong then that could help me with my future code. That is, if you have the time.
EDIT: I don't know why there is no space, maybe copy and paste just removes all the spaces.
SECOND EDIT: Nevermind, copy and paste does see the spaces, its when i post this that removes the spaces
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
It all goes in the one mod_ class.
together they are powerful beyond imagination."
"I'm getting a weird glitch with the pigmen. Photo:http://imgur.com/qobLT The one without chest is supposed to be a baby.
RenderBipedCopy: http://pastebin.com/3kj5MEL
ModelBipedCopy: http://pastebin.com/kF5EAZk5"
Mod Development
together they are powerful beyond imagination."
or does it not matter
thanks
when i use them separately they work perfectly, but if I try using them together they dont work.
they are made for minecraft 1.2.5 with modloader installed
ive added a config file to each mod for ID conflics and made them not conflict but the config file does not work or change the ID
You'll have to be a network admin to get into the properties. Bottom line is, you can't mod on their computer system.
Post your code. Ask in Mod Development about the config file though. I am not answering any questions about them.
together they are powerful beyond imagination."
I'm not sure sorry. Try asking in Mod Development.
together they are powerful beyond imagination."
protected int getDropItemId()
{
return What must i put here
}
By: NickR
Hey question, if i was to make multiple Blocks in the one mod project, Would I have to make seperate mod_block classes or would i be able to make one mod_block like list?If so can you show us a template or such, kinda new to modding minecraft so yeah....
thanks in advance
EDIT
learned how to read whole tutorial intro plus use search to see if question had been answered before-FacePalm- once again dude diamonds ... thankyou
You just reference to the instance. For example, if the item you want to be dropped is in the mod_ class, then you just write:
The shiftedIndex always stays the same but the first two parts of that can change (The mod_ Namehere.itemName bit can change).
Immature and inappropriate.
together they are powerful beyond imagination."
== ERRORS FOUND ==
src/minecraft/net/minecraft/src/mod_seaweed.java:1: class, interface, or enum expected
rtf1ansiansicpg1252cocoartf1138cocoasubrtf320
^
src/minecraft/net/minecraft/src/mod_seaweed.java:3: class, interface, or enum expected
colortbl; red255green255blue255; red30green30blue30; red246green246blue246;
^
src/minecraft/net/minecraft/src/mod_seaweed.java:3: class, interface, or enum expected
colortbl; red255green255blue255; red30green30blue30; red246green246blue246;
^
src/minecraft/net/minecraft/src/mod_seaweed.java:3: class, interface, or enum expected
colortbl; red255green255blue255; red30green30blue30; red246green246blue246;
^
src/minecraft/net/minecraft/src/mod_seaweed.java:3: class, interface, or enum expected
colortbl; red255green255blue255; red30green30blue30; red246green246blue246;
^
src/minecraft/net/minecraft/src/mod_seaweed.java:4: class, interface, or enum expected
margl1440margr1440vieww18640viewh7480viewkind0
^
src/minecraft/net/minecraft/src/mod_seaweed.java:21: invalid method declaration; return type required
Public string;getVersion();
^
Mod Development
Have a look in the source code of the game.
Can you run the game from it? Press the green circle with a white "play" symbol on it up on the top toolbar.
Mod Development
Post your code or ask in Mod Development.
together they are powerful beyond imagination."
colortbl;
red255green255blue255;
red30green30blue30;
red246green246blue246;
margl1440margr1440vieww18640viewh7480viewkind0
deftab720
pardpardeftab720
f0fs22 cf2 cb3 package net.minecraft.src;
public class mod_Food extends BaseMod
{
public static final Item seaweed = new ItemFood(5001, 4, 1F, false).setItemName("seaweed");
public void load()
{
Namehere.iconIndex = ModLoader.addOverride("/gui/items.png", "/mod/seaweed.png");
ModLoader.addName(seaweed, "SeaWeed");
ModLoader.addRecipe(new ItemStack(seaweed, 4), new Object [] {"# ", " ", Character.valueOf('#'), Block.leaves});
}
Public string;
getVersion();
{
return "1.2.5";
}
};
That is my code, Anything that might look wrong to you, it is what the errors told me to fix or add in or remove. If it possible, to make this easier, if you could edit this and paste a fixed and working version for the code and i could compare it to see what i did wrong then that could help me with my future code. That is, if you have the time.
EDIT: I don't know why there is no space, maybe copy and paste just removes all the spaces.
SECOND EDIT: Nevermind, copy and paste does see the spaces, its when i post this that removes the spaces
Simply remove it then change the getVersion String to this:
Remove the empty " " set in the recipe:
Once you've done all that, remove the ; at the end of the class and it should all work fine.
together they are powerful beyond imagination."