I'm trying to make a block crafted with glowstone dust but can't find it under the Item. category when creating the crafting recipe - I checked the wiki, But it says 'yellowdust' which isn't showing up either.
EDIT
I'm having another problem - I'm trying to make the same block be crafted again to be brighter than the previous, But after setting the light level to 10F it wouldn't work, It could be placed and no errors happened, It just didn't emit any light. I checked Block.java and double checked that 0-15F is accepted - and it is, But I don't know what I did wrong.
/** Ambient Stone Bright block, emits level 10 light. **/
public static final Block Ambstoneb = new BlockAmbstoneb(161,
0).setBlockName("AmbientStoneb").setHardness(3F).setResistance(4F).setLightValue(10F);
EDIT #2
Fixed above problem, I had the levels of light reversed - lower = brighter. Also it would be great if you would include things such as shapeless recipes in the tutorial.
Another problem now, Not sure if it belongs here - I made a texture for my block but whenever I place it it is perfectly visible and bright no matter what light level should be there. Its not supposed to emit any light whatsoever, It just randomly stays lit at max light level.
I thought it was the texture but after checking everything seems to be right, The brighter stone I made is brighter than the non-light emitting stone.
Heres the code for the 'dungeon stone':
/** Dungeon Stone - NOT supposed to emit any light. **/
public static final Block Dstone = new BlockDstone(162,
0).setBlockName("DungeonStone").setHardness(4F).setResistance(5F).setLightValue(15F);
EDIT: I know its not the texture because I have a slab made with the same texture (just copied and renamed to fix a bug) that works perfectly.
Umm I have a problem. I copy and pasted everything from the custom NPC and renamed everything to what I want it to be but when I go in game this is what I see:
I'm trying to make a block crafted with glowstone dust but can't find it under the Item. category when creating the crafting recipe - I checked the wiki, But it says 'yellowdust' which isn't showing up either.
EDIT
I'm having another problem - I'm trying to make the same block be crafted again to be brighter than the previous, But after setting the light level to 10F it wouldn't work, It could be placed and no errors happened, It just didn't emit any light. I checked Block.java and double checked that 0-15F is accepted - and it is, But I don't know what I did wrong.
/** Ambient Stone Bright block, emits level 10 light. **/
public static final Block Ambstoneb = new BlockAmbstoneb(161,
0).setBlockName("AmbientStoneb").setHardness(3F).setResistance(4F).setLightValue(10F);
EDIT #2
Fixed above problem, I had the levels of light reversed - lower = brighter. Also it would be great if you would include things such as shapeless recipes in the tutorial.
Another problem now, Not sure if it belongs here - I made a texture for my block but whenever I place it it is perfectly visible and bright no matter what light level should be there. Its not supposed to emit any light whatsoever, It just randomly stays lit at max light level.
I thought it was the texture but after checking everything seems to be right, The brighter stone I made is brighter than the non-light emitting stone.
Heres the code for the 'dungeon stone':
/** Dungeon Stone - NOT supposed to emit any light. **/
public static final Block Dstone = new BlockDstone(162,
0).setBlockName("DungeonStone").setHardness(4F).setResistance(5F).setLightValue(15F);
EDIT: I know its not the texture because I have a slab made with the same texture (just copied and renamed to fix a bug) that works perfectly.
To make it emit no light just get rid of .setLightValue If you get rid of that it doesn't know if it should emit light or not so it doesn't.
Rollback Post to RevisionRollBack
Your life is not what you see, but what you seek. If you want me to respond to you, reply to me with the "Quote" button under my post.
Umm I have a problem. I copy and pasted everything from the custom NPC and renamed everything to what I want it to be but when I go in game this is what I see:
Can someone help?
Post your code so we can look at it. Also, that idea sounds bad but I'll try it.
It was working fine...up until 1.2.3! With the ModLoader.addOverride command. It suddenly chose one of my blocks, and applied the texture to the new wood block in the jungle. When I took out the line of code that established that texture, it just chose the next one down. When I took out all from that file, it went to the next file and chose the top one from there. When I cut out ALL of my blocks addOverride commands, it went back to the texture it should have. When I put them back, the wood block chose the first texture again. I don't know what's wrong. Like I said, It worked before. What should I do? Let me know if you need my code.
It was working fine...up until 1.2.3! With the ModLoader.addOverride command. It suddenly chose one of my blocks, and applied the texture to the new wood block in the jungle. When I took out the line of code that established that texture, it just chose the next one down. When I took out all from that file, it went to the next file and chose the top one from there. When I cut out ALL of my blocks addOverride commands, it went back to the texture it should have. When I put them back, the wood block chose the first texture again. I don't know what's wrong. Like I said, It worked before. What should I do? Let me know if you need my code.
It's using that texture because you have the ID as that block. Try changing your block id and you should be fine!
Rollback Post to RevisionRollBack
Your life is not what you see, but what you seek. If you want me to respond to you, reply to me with the "Quote" button under my post.
How does the idea sound bad? Having no .setlightvalue means it has no light. It's simple like that.
Also why do I need to copy my code? I said I copied and pasted it exactly like what he has. All i did was change the "NameHere" spots. Thats it.
It's using that texture because you have the ID as that block. Try changing your block id and you should be fine!
It worked, thanks.
If we can't see your code we cant see whats wrong with it, Even while you barely modified it you could still have screwed up. Also, write the code yourself so you can remember it and don't keep coming back.
Also, I have the same lighting problem with blocks that are SUPPOSED to provide light, how would I fix that?
If we can't see your code we cant see whats wrong with it. Also, write the code yourself so you can remember it and don't keep coming back.
I copy and paste it then look it over. Also I don't see the point of putting the code down if its exactly the same as the one on the main post. Only thing difference is the "NameHere" Part
Rollback Post to RevisionRollBack
Your life is not what you see, but what you seek. If you want me to respond to you, reply to me with the "Quote" button under my post.
I copy and paste it then look it over. Also I don't see the point of putting the code down if its exactly the same as the one on the main post. Only thing difference is the "NameHere" Part
Even while you barely modified it you could still have screwed up.
Seriously, unless you don't want your problem solved I suggest you just post the code, If it was so easy to copy-paste into Eclipse it can't be that hard to do the same from Eclipse to here. Also, my problem (as listed above) is still unsolved.
Oh yeah, and make sure your JDK, Eclipse & Minecraft versions are all up-to-date.
I enjoy these tutorials a lot. If you want me to make the custom tools/swords without editing base classes I can. Also, will my biome generate if I copy the files that make the original biomes and edit them? (I did this before you made the tutorial.)
It was working fine...up until 1.2.3! With the ModLoader.addOverride command. It suddenly chose one of my blocks, and applied the texture to the new wood block in the jungle. When I took out the line of code that established that texture, it just chose the next one down. When I took out all from that file, it went to the next file and chose the top one from there. When I cut out ALL of my blocks addOverride commands, it went back to the texture it should have. When I put them back, the wood block chose the first texture again. I don't know what's wrong. Like I said, It worked before. What should I do? Let me know if you need my code.
You need to update ModLoader. This was a problem with the original 1.2.3 ModLoader, you just need to update and it is fine.
I enjoy these tutorials a lot. If you want me to make the custom tools/swords without editing base classes I can. Also, will my biome generate if I copy the files that make the original biomes and edit them? (I did this before you made the tutorial.)
All you need to make a biome generate is the ModLoader.addBiome method in your load() method.
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
All you need to make a biome generate is the ModLoader.addBiome method in your load() method.
ModLoader.addBiome(Namehere);
But how would I make my own "biomeDecorator" strings? I made a custom cactus block and I want it to spawn my biome. Is it possible to do it without editing base classes?
Just tried your structure generation tutorial, but it gave me this error:
warning: [options] bootstrap class path not set in conjunction with -source 1.6
src\minecraft\net\minecraft\src\mod_Boat.java:15: error: illegal character: \35
for(int k = 0; k &--#60; 10; k++)
^
src\minecraft\net\minecraft\src\mod_Boat.java:15: error: not a statement
for(int k = 0; k &--#60; 10; k++)
^
src\minecraft\net\minecraft\src\mod_Boat.java:15: error: ')' expected
for(int k = 0; k &--#60; 10; k++)
^
src\minecraft\net\minecraft\src\mod_Boat.java:15: error: not a statement
for(int k = 0; k &--#60; 10; k++)
^
src\minecraft\net\minecraft\src\mod_Boat.java:15: error: ';' expected
for(int k = 0; k &--#60; 10; k++)
^
And this is my code;
package net.minecraft.src;
import java.util.Random;
public class mod_Boat extends BaseMod
{
public void load()
{
}
public void generateSurface(World world, Random random, int i, int j)
{
for(int k = 0; k &--#60; 10; k++)
{
int RandPosX = i + random.nextInt(5);
int RandPosY = random.nextInt(65);
int RandPosZ = j + random.nextInt(5);
(new WorldGenBoat()).generate(world, random, RandPosX,
RandPosY, RandPosZ);
}
}
public String getVersion()
{
return "1.1";
}
}
not sure what the problem is, also: is is possible to make it only spawn in certain biomes?
Hi, i was making a biome and i put my own block in, but ti wouldn't work, jut errors, so i changed to bedrock and then it worked, plz tell me what i have to do for my block to work?
BiomeGenMudpit
package net.minecraft.src;
import java.util.List;
import java.util.Random;
public class mod_BiomeMudpit extends BaseMod
{
public static final BiomeGenBase Mudpit = (new BiomeGenMudpit(100)).setColor(0x000fff).setBiomeName("Mudpit");
public void load()
{
ModLoader.addBiome(Mudpit);
}
public String getVersion()
{
return "1.2.3";
}
}
You have two mod_ files, The two of these are supposed to be combined - mod_BiomeMudpit shouldn't even exist.
This is quite possibly the worst request for help ever - You have to tell us more then that, Were not wizards,
We don't know what your problem is unless you tell us. "It just wont work" is extremely vague, it could be anything.
Include things like the code or the error log if you get one, Even if you didn't touch the code, you could still have screwed up. Also, type the code yourself so you can remember it and don't have to keep coming back
here, Copy/paste is just plain lazy.
Yes! I made a building thanks to your tutorials! Thanks So much! But Is it possible to have mobs spawn inside the buildings? if so please some one tell me
Hey! These are great tutorials but right now it's missing the one thing I want to try!
Entities! And I don't mean NPCs I just mean creating an object in the game world with a texture that I can freely move and rotate from my code.
I've added all the files that are needed: "mod_X", "EntityX", "ModelX", "RenderX", "ItemX"
Under the Entity file I have 'texture = "/mods/texture.png"
In the Item file I have:
And it works perfectly when I click a block, the coordinates are printed. Those coordinates are passed to the Entity file to create it.
But it never appears, I don't know if it's loading but without a texture or just not loading at all!
Please add something about just Raw Entities, not NPCs or anything like that, just simple Objects with textures in the world!
Thanks
Hmm, I'll try, but I have only ever done living NPCs. Have you tried just making your entity class extend Entity rather than EntityLiving or EntityMob or something.
Like LukeZaz has said, that is the worst request for help ever. I can't just magically see your code and what is happening. You need to post your code and information about exactly what is happening.
Just tried your structure generation tutorial, but it gave me this error:
warning: [options] bootstrap class path not set in conjunction with -source 1.6
src\minecraft\net\minecraft\src\mod_Boat.java:15: error: illegal character: \35
for(int k = 0; k &--#60; 10; k++)
^
src\minecraft\net\minecraft\src\mod_Boat.java:15: error: not a statement
for(int k = 0; k &--#60; 10; k++)
^
src\minecraft\net\minecraft\src\mod_Boat.java:15: error: ')' expected
for(int k = 0; k &--#60; 10; k++)
^
src\minecraft\net\minecraft\src\mod_Boat.java:15: error: not a statement
for(int k = 0; k &--#60; 10; k++)
^
src\minecraft\net\minecraft\src\mod_Boat.java:15: error: ';' expected
for(int k = 0; k &--#60; 10; k++)
^
And this is my code;
package net.minecraft.src;
import java.util.Random;
public class mod_Boat extends BaseMod
{
public void load()
{
}
public void generateSurface(World world, Random random, int i, int j)
{
for(int k = 0; k &--#60; 10; k++)
{
int RandPosX = i + random.nextInt(5);
int RandPosY = random.nextInt(65);
int RandPosZ = j + random.nextInt(5);
(new WorldGenBoat()).generate(world, random, RandPosX,
RandPosY, RandPosZ);
}
}
public String getVersion()
{
return "1.1";
}
}
not sure what the problem is, also: is is possible to make it only spawn in certain biomes?
Sorry, that's the forum's fault, it keeps changing it. It should be like this:
But how would I make my own "biomeDecorator" strings? I made a custom cactus block and I want it to spawn my biome. Is it possible to do it without editing base classes?
Do you want it to spawn only in your biome?
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
Sorry, that's the forum's fault, it keeps changing it. It should be like this:
for(int k = 0; k < 10; k++)
Ok, thanks, the thing is, since I am trying to make a boat I want it to only spawn in very watery biomes, also, it there a way to get it to only spawn on a certain level (so that my boat doesn't spawn under water) and I was also thinking that I wanted to put stairs in the design but I am thinking that I would have to include something to tell it the direction to face. Thanks
I'm trying to make a block crafted with glowstone dust but can't find it under the Item. category when creating the crafting recipe - I checked the wiki, But it says 'yellowdust' which isn't showing up either.
EDIT
I'm having another problem - I'm trying to make the same block be crafted again to be brighter than the previous, But after setting the light level to 10F it wouldn't work, It could be placed and no errors happened, It just didn't emit any light. I checked Block.java and double checked that 0-15F is accepted - and it is, But I don't know what I did wrong.
/** Ambient Stone Bright block, emits level 10 light. **/ public static final Block Ambstoneb = new BlockAmbstoneb(161, 0).setBlockName("AmbientStoneb").setHardness(3F).setResistance(4F).setLightValue(10F);EDIT #2
Fixed above problem, I had the levels of light reversed - lower = brighter. Also it would be great if you would include things such as shapeless recipes in the tutorial.
Another problem now, Not sure if it belongs here - I made a texture for my block but whenever I place it it is perfectly visible and bright no matter what light level should be there. Its not supposed to emit any light whatsoever, It just randomly stays lit at max light level.
I thought it was the texture but after checking everything seems to be right, The brighter stone I made is brighter than the non-light emitting stone.
Heres the code for the 'dungeon stone':
/** Dungeon Stone - NOT supposed to emit any light. **/ public static final Block Dstone = new BlockDstone(162, 0).setBlockName("DungeonStone").setHardness(4F).setResistance(5F).setLightValue(15F);EDIT: I know its not the texture because I have a slab made with the same texture (just copied and renamed to fix a bug) that works perfectly.
To make it emit no light just get rid of .setLightValue If you get rid of that it doesn't know if it should emit light or not so it doesn't.
If you want me to respond to you, reply to me with the "Quote" button under my post.
Post your code so we can look at it. Also, that idea sounds bad but I'll try it.
Eclipse IDE for Java developers, Should be at the top of the list.
Thanks for the reply, i made my mod in classic, so maybe that's why i don't get my block
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumIt was working fine...up until 1.2.3! With the ModLoader.addOverride command. It suddenly chose one of my blocks, and applied the texture to the new wood block in the jungle. When I took out the line of code that established that texture, it just chose the next one down. When I took out all from that file, it went to the next file and chose the top one from there. When I cut out ALL of my blocks addOverride commands, it went back to the texture it should have. When I put them back, the wood block chose the first texture again. I don't know what's wrong. Like I said, It worked before. What should I do? Let me know if you need my code.
How does the idea sound bad? Having no .setlightvalue means it has no light. It's simple like that.
Also why do I need to copy my code? I said I copied and pasted it exactly like what he has. All i did was change the "NameHere" spots. Thats it.
It's using that texture because you have the ID as that block. Try changing your block id and you should be fine!
If you want me to respond to you, reply to me with the "Quote" button under my post.
It worked, thanks.
If we can't see your code we cant see whats wrong with it, Even while you barely modified it you could still have screwed up. Also, write the code yourself so you can remember it and don't keep coming back.
Also, I have the same lighting problem with blocks that are SUPPOSED to provide light, how would I fix that?
I copy and paste it then look it over. Also I don't see the point of putting the code down if its exactly the same as the one on the main post. Only thing difference is the "NameHere" Part
If you want me to respond to you, reply to me with the "Quote" button under my post.
Seriously, unless you don't want your problem solved I suggest you just post the code, If it was so easy to copy-paste into Eclipse it can't be that hard to do the same from Eclipse to here. Also, my problem (as listed above) is still unsolved.
Oh yeah, and make sure your JDK, Eclipse & Minecraft versions are all up-to-date.
Thanks
You need to update ModLoader. This was a problem with the original 1.2.3 ModLoader, you just need to update and it is fine.
All you need to make a biome generate is the ModLoader.addBiome method in your load() method.
I normally use something like this:
protected void dropFewItems(boolean flag, int i) { int j = rand.nextInt(3 + i); for (int k = 0; k < j; k++) { dropItem(Item.goldNugget.shiftedIndex, 1); } j = rand.nextInt(3 + i); for (int l = 0; l < j; l++) { dropItem(Item.fishRaw.shiftedIndex, 1); } }Just add more for loops to make more different items drop.
together they are powerful beyond imagination."
But how would I make my own "biomeDecorator" strings? I made a custom cactus block and I want it to spawn my biome. Is it possible to do it without editing base classes?
-
View User Profile
-
View Posts
-
Send Message
Curse Premiumpackage net.minecraft.src; import java.util.Random; public class mod_Boat extends BaseMod { public void load() { } public void generateSurface(World world, Random random, int i, int j) { for(int k = 0; k &--#60; 10; k++) { int RandPosX = i + random.nextInt(5); int RandPosY = random.nextInt(65); int RandPosZ = j + random.nextInt(5); (new WorldGenBoat()).generate(world, random, RandPosX, RandPosY, RandPosZ); } } public String getVersion() { return "1.1"; } }You have two mod_ files, The two of these are supposed to be combined - mod_BiomeMudpit shouldn't even exist.
This is quite possibly the worst request for help ever - You have to tell us more then that, Were not wizards,
We don't know what your problem is unless you tell us. "It just wont work" is extremely vague, it could be anything.
Include things like the code or the error log if you get one, Even if you didn't touch the code, you could still have screwed up. Also, type the code yourself so you can remember it and don't have to keep coming back
here, Copy/paste is just plain lazy.
Hmm, I'll try, but I have only ever done living NPCs. Have you tried just making your entity class extend Entity rather than EntityLiving or EntityMob or something.
Look at the setRotationAngles method in ModelBiped.
Like LukeZaz has said, that is the worst request for help ever. I can't just magically see your code and what is happening. You need to post your code and information about exactly what is happening.
Sorry, that's the forum's fault, it keeps changing it. It should be like this:
Even if it's the same as mine, you need to post your code and the exact problems you are having.
Do you want it to spawn only in your biome?
together they are powerful beyond imagination."
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumOk, thanks, the thing is, since I am trying to make a boat I want it to only spawn in very watery biomes, also, it there a way to get it to only spawn on a certain level (so that my boat doesn't spawn under water) and I was also thinking that I wanted to put stairs in the design but I am thinking that I would have to include something to tell it the direction to face. Thanks