Come on man, keep em coming! Waiting on mobs, crafting table, trees and furnace could you explain a bit more than you do about your code as well?? Mebbe you could turn this into a youtube series also, could you help me figure out how to make baby cows drop an item? I cant seem to find taht. also, having a hard time changing the rarity of the drop. I am assuming its the one you said not to change lol
i got the minecraft folder in my package explorer but i get an error:
'Open project' has encountered a problem
The project description file (.project) for 'Minecraft'
is missing. This file contains important imformation
about this project. the file will not function properly until
the file is restored.
please help!
When one of the programs necessary for Minecraft Forge was downloaded, it was put into a file that looks something like this:
"C:/Users/Your Name/Desktop/Forge"
The space in the file path can't be read by Eclipse, and throws that error msg at you. I had this error before, and switched to my other pc that doesn't have a space in it's username.
When one of the programs necessary for Minecraft Forge was downloaded, it was put into a file that looks something like this:
"C:/Users/Your Name/Desktop/Forge"
The space in the file path can't be read by Eclipse, and throws that error msg at you. I had this error before, and switched to my other pc that doesn't have a space in it's username.
So I'm modding 1.7.10, and I was looking for info on how to make a sapling that generates like an oak, but uses a different block for the wood and another block for the leaves. Anyone know how to do that kind of stuff?
public class NewWorldGenerator implements IWorldGenerator
{
@Override
public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider)
{
switch(world.provider.dimensionId)
{
case -1:
generateInNether(world, random, chunkX * 16, chunkZ * 16);
break;
case 0:
generateInOverworld(world, random, chunkX * 16, chunkZ * 16);
break;
case 1:
generateInEnd(world, random, chunkX * 16, chunkZ * 16);
break;
}
}
private void generateInNether(World world, Random random, int chunkX, int chunkZ)
{
}
private void generateInOverworld(World world, Random random, int chunkX, int chunkZ)
{
if(i = 0; i < 10; i++)
{
int x = chunkX + random.nextInt(16);
int y = random.nextInt(64);
int z = random.nextInt(16);
(new NewWorldGenerator(Main.whatYouCalledYourOreIn public static Block oreRuby,10)).generate(world, random, chunkX, chunkY, chunkZ);
}
}
private void generateInEnd(World world, Random random, int chunkX, int chunkZ)
{
}
}
When attempting to make an instant structure, I place the block(I haven't made a texture for it yet) and nothing happens. There aren't any errors or anything the console. Here is my file:
<br>package coo.moddingtutorial.block;<br>import java.util.Random;<br>import coo.moddingtutorial.ModdingMain;<br>import net.minecraft.block.Block;<br>import net.minecraft.block.material.Material;<br>import net.minecraft.entity.EntityLivingBase;<br>import net.minecraft.init.Blocks;<br>import net.minecraft.item.ItemStack;<br>import net.minecraft.world.World;<br>public class SwimmingPool extends Block<br>{<br>Blocks b;<br>public SwimmingPool(Material material)<br>{<br>super(material);<br>}<br>public void onBlockPlacedBy(World world, Random random, int x, int y, int z, EntityLivingBase entity, ItemStack itemstack)<br>{<br>//Super<br>super.onBlockPlacedBy(world, x, y, z, entity, itemstack);<br>//Sets the block to air on the x, y, and z coords from where you placed the block<br>world.setBlockToAir(x, y, z);<br>//Sets the block on the x, y, and z coords starting from where you placed the block<br>world.setBlock(x+1, y, z, b.stonebrick);<br>world.setBlock(x-1, y, z, b.stonebrick);<br>world.setBlock(x, y, z+1, b.stonebrick);<br>world.setBlock(x, y, z-1, b.stonebrick);<br>world.setBlock(x+1, y, z+1, b.stonebrick);<br>world.setBlock(x+1, y, z-1, b.stonebrick);<br>world.setBlock(x-1, y, z-1, b.stonebrick);<br>world.setBlock(x-1, y, z+1, b.stonebrick);<br>world.setBlock(x, y+1, z, b.water);<br>world.setBlock(x+1, y+1, z, b.water);<br>world.setBlock(x-1, y+1, z, b.water);<br>world.setBlock(x, y+1, z+1, b.water);<br>world.setBlock(x, y+1, z-1, b.water);<br>world.setBlock(x+1, y+1, z+1, b.water);<br>world.setBlock(x+1, y+1, z-1, b.water);<br>world.setBlock(x-1, y+1, z-1, b.water);<br>world.setBlock(x-1, y+1, z+1, b.water);<br>world.setBlock(x, y+2, z, b.water);<br>world.setBlock(x+1, y+2, z, b.water);<br>world.setBlock(x-1, y+2, z, b.water);<br>world.setBlock(x, y+2, z+1, b.water);<br>world.setBlock(x, y+2, z-1, b.water);<br>world.setBlock(x+1, y+2, z+1, b.water);<br>world.setBlock(x+1, y+2, z-1, b.water);<br>world.setBlock(x-1, y+2, z-1, b.water);<br>world.setBlock(x-1, y+2, z+1, b.water);<br>world.setBlock(x+2, y, z, b.stonebrick);<br>world.setBlock(x-2, y, z, b.stonebrick);<br>world.setBlock(x, y, z+2, b.stonebrick);<br>world.setBlock(x, y, z-2, b.stonebrick);<br>world.setBlock(x+2, y, z+1, b.stonebrick);<br>world.setBlock(x+2, y, z+2, b.stonebrick);<br>world.setBlock(x+1, y, z+2, b.stonebrick);<br>world.setBlock(x+2, y, z-1, b.stonebrick);<br>world.setBlock(x+2, y, z-2, b.stonebrick);<br>world.setBlock(x+1, y, z-2, b.stonebrick);<br>world.setBlock(x-2, y, z+1, b.stonebrick);<br>world.setBlock(x-2, y, z+2, b.stonebrick);<br>world.setBlock(x-1, y, z+2, b.stonebrick);<br>world.setBlock(x-2, y, z-1, b.stonebrick);<br>world.setBlock(x-2, y, z-2, b.stonebrick);<br>world.setBlock(x-1, y, z-2, b.stonebrick);<br>world.setBlock(x+2, y+1, z, b.stonebrick);<br>world.setBlock(x-2, y+1, z, b.stonebrick);<br>world.setBlock(x, y+1, z+2, b.stonebrick);<br>world.setBlock(x, y+1, z-2, b.stonebrick);<br>world.setBlock(x+2, y+1, z+1, b.stonebrick);<br>world.setBlock(x+2, y+1, z+2, b.stonebrick);<br>world.setBlock(x+1, y+1, z+2, b.stonebrick);<br>world.setBlock(x+2, y+1, z-1, b.stonebrick);<br>world.setBlock(x+2, y+1, z-2, b.stonebrick);<br>world.setBlock(x+1, y+1, z-2, b.stonebrick);<br>world.setBlock(x-2, y+1, z+1, b.stonebrick);<br>world.setBlock(x-2, y+1, z+2, b.stonebrick);<br>world.setBlock(x-1, y+1, z+2, b.stonebrick);<br>world.setBlock(x-2, y+1, z-1, b.stonebrick);<br>world.setBlock(x-2, y+1, z-2, b.stonebrick);<br>world.setBlock(x-1, y+1, z-2, b.stonebrick);<br>world.setBlock(x+2, y+2, z, b.stonebrick);<br>world.setBlock(x-2, y+2, z, b.stonebrick);<br>world.setBlock(x, y+2, z+2, b.stonebrick);<br>world.setBlock(x, y+2, z-2, b.stonebrick);<br>world.setBlock(x+2, y+2, z+1, b.stonebrick);<br>world.setBlock(x+2, y+2, z+2, b.stonebrick);<br>world.setBlock(x+1, y+2, z+2, b.stonebrick);<br>world.setBlock(x+2, y+2, z-1, b.stonebrick);<br>world.setBlock(x+2, y+2, z-2, b.stonebrick);<br>world.setBlock(x+1, y+2, z-2, b.stonebrick);<br>world.setBlock(x-2, y+2, z+1, b.stonebrick);<br>world.setBlock(x-2, y+2, z+2, b.stonebrick);<br>world.setBlock(x-1, y+2, z+2, b.stonebrick);<br>world.setBlock(x-2, y+2, z-1, b.stonebrick);<br>world.setBlock(x-2, y+2, z-2, b.stonebrick);<br>world.setBlock(x-1, y+2, z-2, b.stonebrick);<br><br>//Sets the block(with set metadata) on the x, y, and z coords from where you placed the block<br>//world.setBlock(x, y, z, b.planks, 2, 2); //This is for birch planks, if you want other planks, search 'Minecraft Block Metadata' in google or find it on the MinecraftWiki<br>}<br>}<br>
Hey ShadowChurro,
I was actually interested in this, so I decided to try to learn from your code. I know that this is old, but I hope that this can actually help you. I tested it and everything, so if it doesn't work, let me know and I will fix it. I'm sorry if I'm too late. Basically all I did was remove the "Random random" that was after the onBlockPlacedBy. Hopefully it works for you,
public SwimminPool(Material material) {
super(material);
}
public void onBlockPlacedBy(World world, int x, int y,
int z, EntityLivingBase entity, ItemStack itemstack) {
super.onBlockPlacedBy(world, x, y, z, entity, itemstack);
world.setBlockToAir(x, y, z);
world.setBlock(x, y, z, b.stonebrick);
world.setBlock(x + 1, y, z, b.stonebrick);
world.setBlock(x - 1, y, z, b.stonebrick);
world.setBlock(x, y, z + 1, b.stonebrick);
world.setBlock(x, y, z - 1, b.stonebrick);
world.setBlock(x + 1, y, z + 1, b.stonebrick);
world.setBlock(x + 1, y, z - 1, b.stonebrick);
world.setBlock(x - 1, y, z - 1, b.stonebrick);
world.setBlock(x - 1, y, z + 1, b.stonebrick);
world.setBlock(x, y + 1, z, b.water);
world.setBlock(x + 1, y + 1, z, b.water);
world.setBlock(x - 1, y + 1, z, b.water);
world.setBlock(x, y + 1, z + 1, b.water);
world.setBlock(x, y + 1, z - 1, b.water);
world.setBlock(x + 1, y + 1, z + 1, b.water);
world.setBlock(x + 1, y + 1, z - 1, b.water);
world.setBlock(x - 1, y + 1, z - 1, b.water);
world.setBlock(x - 1, y + 1, z + 1, b.water);
world.setBlock(x, y + 2, z, b.water);
world.setBlock(x + 1, y + 2, z, b.water);
world.setBlock(x - 1, y + 2, z, b.water);
world.setBlock(x, y + 2, z + 1, b.water);
world.setBlock(x, y + 2, z - 1, b.water);
world.setBlock(x + 1, y + 2, z + 1, b.water);
world.setBlock(x + 1, y + 2, z - 1, b.water);
world.setBlock(x - 1, y + 2, z - 1, b.water);
world.setBlock(x - 1, y + 2, z + 1, b.water);
world.setBlock(x + 2, y, z, b.stonebrick);
world.setBlock(x - 2, y, z, b.stonebrick);
world.setBlock(x, y, z + 2, b.stonebrick);
world.setBlock(x, y, z - 2, b.stonebrick);
world.setBlock(x + 2, y, z + 1, b.stonebrick);
world.setBlock(x + 2, y, z + 2, b.stonebrick);
world.setBlock(x + 1, y, z + 2, b.stonebrick);
world.setBlock(x + 2, y, z - 1, b.stonebrick);
world.setBlock(x + 2, y, z - 2, b.stonebrick);
world.setBlock(x + 1, y, z - 2, b.stonebrick);
world.setBlock(x - 2, y, z + 1, b.stonebrick);
world.setBlock(x - 2, y, z + 2, b.stonebrick);
world.setBlock(x - 1, y, z + 2, b.stonebrick);
world.setBlock(x - 2, y, z - 1, b.stonebrick);
world.setBlock(x - 2, y, z - 2, b.stonebrick);
world.setBlock(x - 1, y, z - 2, b.stonebrick);
world.setBlock(x + 2, y + 1, z, b.stonebrick);
world.setBlock(x - 2, y + 1, z, b.stonebrick);
world.setBlock(x, y + 1, z + 2, b.stonebrick);
world.setBlock(x, y + 1, z - 2, b.stonebrick);
world.setBlock(x + 2, y + 1, z + 1, b.stonebrick);
world.setBlock(x + 2, y + 1, z + 2, b.stonebrick);
world.setBlock(x + 1, y + 1, z + 2, b.stonebrick);
world.setBlock(x + 2, y + 1, z - 1, b.stonebrick);
world.setBlock(x + 2, y + 1, z - 2, b.stonebrick);
world.setBlock(x + 1, y + 1, z - 2, b.stonebrick);
world.setBlock(x - 2, y + 1, z + 1, b.stonebrick);
world.setBlock(x - 2, y + 1, z + 2, b.stonebrick);
world.setBlock(x - 1, y + 1, z + 2, b.stonebrick);
world.setBlock(x - 2, y + 1, z - 1, b.stonebrick);
world.setBlock(x - 2, y + 1, z - 2, b.stonebrick);
world.setBlock(x - 1, y + 1, z - 2, b.stonebrick);
world.setBlock(x + 2, y + 2, z, b.stonebrick);
world.setBlock(x - 2, y + 2, z, b.stonebrick);
world.setBlock(x, y + 2, z + 2, b.stonebrick);
world.setBlock(x, y + 2, z - 2, b.stonebrick);
world.setBlock(x + 2, y + 2, z + 1, b.stonebrick);
world.setBlock(x + 2, y + 2, z + 2, b.stonebrick);
world.setBlock(x + 1, y + 2, z + 2, b.stonebrick);
world.setBlock(x + 2, y + 2, z - 1, b.stonebrick);
world.setBlock(x + 2, y + 2, z - 2, b.stonebrick);
world.setBlock(x + 1, y + 2, z - 2, b.stonebrick);
world.setBlock(x - 2, y + 2, z + 1, b.stonebrick);
world.setBlock(x - 2, y + 2, z + 2, b.stonebrick);
world.setBlock(x - 1, y + 2, z + 2, b.stonebrick);
world.setBlock(x - 2, y + 2, z - 1, b.stonebrick);
world.setBlock(x - 2, y + 2, z - 2, b.stonebrick);
world.setBlock(x - 1, y + 2, z - 2, b.stonebrick);
}
}
Help me please... How to make colored name of block or item
You have to use a section sign (§) and a letter or number in your lang file. This colored item can be used as an example. You also have to reset it at the end by putting §r.
item.ItemFur.name=§aFur§r
Another thing you have to do is make sure that your encoding is set to UTF-8. Do this by going to File->Properties. Then, click on other under text file encoding and change it to UTF-8. Make sure you do that before you put in the section signs. If you need anything else, let me know.
Here is a list of colors.
§0 Black
§1 Dark Blue
§2 Dark Green
§3 Dark Aqua
§4 Dark Red
§5 Dark Purple
§6 Gold
§7 Gray
§8 Dark Gray
§9 Blue
§a Green
§b Aqua
§c Red
§d Light Purple
§e Yellow
§f White
§k Obfuscated (Glitchy Flickering Text)
Come on man, keep em coming! Waiting on mobs, crafting table, trees and furnace
could you explain a bit more than you do about your code as well?? Mebbe you could turn this into a youtube series
also, could you help me figure out how to make baby cows drop an item? I cant seem to find taht. also, having a hard time changing the rarity of the drop. I am assuming its the one you said not to change lol
What, exactly, are the implications of the Custom WorldGen tutorial?
Please post your introduction into a spoiler.
When one of the programs necessary for Minecraft Forge was downloaded, it was put into a file that looks something like this:
"C:/Users/Your Name/Desktop/Forge"
The space in the file path can't be read by Eclipse, and throws that error msg at you. I had this error before, and switched to my other pc that doesn't have a space in it's username.
This is really cool!
Nice Work
Sorry your getting an answer late, but I found out the problem by googling it when I had the problem. I did not answer this: http://www.minecraftforge.net/forum/index.php?topic=24671.0
Ok, for the custom mob drops, how to change how many items the mob drops.
Also, villagers don't seem to drop anything.
So I'm modding 1.7.10, and I was looking for info on how to make a sapling that generates like an oak, but uses a different block for the wood and another block for the leaves. Anyone know how to do that kind of stuff?
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumJust look up on some tree tutorial and customize it to ur block
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumYour problem is you need to have assets folder etc. in your main/resources not main/java
You put if(i = 0; i < 10;1++)
its meant to be a for loop silly billy
-
View User Profile
-
View Posts
-
Send Message
Curse Premiumits not IF its FOR so for(i=0;i < 10;i++)
Hey ShadowChurro,
I was actually interested in this, so I decided to try to learn from your code. I know that this is old, but I hope that this can actually help you. I tested it and everything, so if it doesn't work, let me know and I will fix it. I'm sorry if I'm too late. Basically all I did was remove the "Random random" that was after the onBlockPlacedBy. Hopefully it works for you,
package coo.moddingtutorial.block;
import java.util.Random;
import coo.moddingtutorial.ModdingMain;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.init.Blocks;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
public class SwimmingPool extends Block {
Blocks b;
public SwimminPool(Material material) {
super(material);
}
public void onBlockPlacedBy(World world, int x, int y,
int z, EntityLivingBase entity, ItemStack itemstack) {
super.onBlockPlacedBy(world, x, y, z, entity, itemstack);
world.setBlockToAir(x, y, z);
world.setBlock(x, y, z, b.stonebrick);
world.setBlock(x + 1, y, z, b.stonebrick);
world.setBlock(x - 1, y, z, b.stonebrick);
world.setBlock(x, y, z + 1, b.stonebrick);
world.setBlock(x, y, z - 1, b.stonebrick);
world.setBlock(x + 1, y, z + 1, b.stonebrick);
world.setBlock(x + 1, y, z - 1, b.stonebrick);
world.setBlock(x - 1, y, z - 1, b.stonebrick);
world.setBlock(x - 1, y, z + 1, b.stonebrick);
world.setBlock(x, y + 1, z, b.water);
world.setBlock(x + 1, y + 1, z, b.water);
world.setBlock(x - 1, y + 1, z, b.water);
world.setBlock(x, y + 1, z + 1, b.water);
world.setBlock(x, y + 1, z - 1, b.water);
world.setBlock(x + 1, y + 1, z + 1, b.water);
world.setBlock(x + 1, y + 1, z - 1, b.water);
world.setBlock(x - 1, y + 1, z - 1, b.water);
world.setBlock(x - 1, y + 1, z + 1, b.water);
world.setBlock(x, y + 2, z, b.water);
world.setBlock(x + 1, y + 2, z, b.water);
world.setBlock(x - 1, y + 2, z, b.water);
world.setBlock(x, y + 2, z + 1, b.water);
world.setBlock(x, y + 2, z - 1, b.water);
world.setBlock(x + 1, y + 2, z + 1, b.water);
world.setBlock(x + 1, y + 2, z - 1, b.water);
world.setBlock(x - 1, y + 2, z - 1, b.water);
world.setBlock(x - 1, y + 2, z + 1, b.water);
world.setBlock(x + 2, y, z, b.stonebrick);
world.setBlock(x - 2, y, z, b.stonebrick);
world.setBlock(x, y, z + 2, b.stonebrick);
world.setBlock(x, y, z - 2, b.stonebrick);
world.setBlock(x + 2, y, z + 1, b.stonebrick);
world.setBlock(x + 2, y, z + 2, b.stonebrick);
world.setBlock(x + 1, y, z + 2, b.stonebrick);
world.setBlock(x + 2, y, z - 1, b.stonebrick);
world.setBlock(x + 2, y, z - 2, b.stonebrick);
world.setBlock(x + 1, y, z - 2, b.stonebrick);
world.setBlock(x - 2, y, z + 1, b.stonebrick);
world.setBlock(x - 2, y, z + 2, b.stonebrick);
world.setBlock(x - 1, y, z + 2, b.stonebrick);
world.setBlock(x - 2, y, z - 1, b.stonebrick);
world.setBlock(x - 2, y, z - 2, b.stonebrick);
world.setBlock(x - 1, y, z - 2, b.stonebrick);
world.setBlock(x + 2, y + 1, z, b.stonebrick);
world.setBlock(x - 2, y + 1, z, b.stonebrick);
world.setBlock(x, y + 1, z + 2, b.stonebrick);
world.setBlock(x, y + 1, z - 2, b.stonebrick);
world.setBlock(x + 2, y + 1, z + 1, b.stonebrick);
world.setBlock(x + 2, y + 1, z + 2, b.stonebrick);
world.setBlock(x + 1, y + 1, z + 2, b.stonebrick);
world.setBlock(x + 2, y + 1, z - 1, b.stonebrick);
world.setBlock(x + 2, y + 1, z - 2, b.stonebrick);
world.setBlock(x + 1, y + 1, z - 2, b.stonebrick);
world.setBlock(x - 2, y + 1, z + 1, b.stonebrick);
world.setBlock(x - 2, y + 1, z + 2, b.stonebrick);
world.setBlock(x - 1, y + 1, z + 2, b.stonebrick);
world.setBlock(x - 2, y + 1, z - 1, b.stonebrick);
world.setBlock(x - 2, y + 1, z - 2, b.stonebrick);
world.setBlock(x - 1, y + 1, z - 2, b.stonebrick);
world.setBlock(x + 2, y + 2, z, b.stonebrick);
world.setBlock(x - 2, y + 2, z, b.stonebrick);
world.setBlock(x, y + 2, z + 2, b.stonebrick);
world.setBlock(x, y + 2, z - 2, b.stonebrick);
world.setBlock(x + 2, y + 2, z + 1, b.stonebrick);
world.setBlock(x + 2, y + 2, z + 2, b.stonebrick);
world.setBlock(x + 1, y + 2, z + 2, b.stonebrick);
world.setBlock(x + 2, y + 2, z - 1, b.stonebrick);
world.setBlock(x + 2, y + 2, z - 2, b.stonebrick);
world.setBlock(x + 1, y + 2, z - 2, b.stonebrick);
world.setBlock(x - 2, y + 2, z + 1, b.stonebrick);
world.setBlock(x - 2, y + 2, z + 2, b.stonebrick);
world.setBlock(x - 1, y + 2, z + 2, b.stonebrick);
world.setBlock(x - 2, y + 2, z - 1, b.stonebrick);
world.setBlock(x - 2, y + 2, z - 2, b.stonebrick);
world.setBlock(x - 1, y + 2, z - 2, b.stonebrick);
}
}
Help me please... How to make colored name of block or item?
Can you post one on guis? I use 1.7.0.Will that work?
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumHow do I make the Drops less frequent? Please help!
You have to use a section sign (§) and a letter or number in your lang file. This colored item can be used as an example. You also have to reset it at the end by putting §r.
item.ItemFur.name=§aFur§r
Another thing you have to do is make sure that your encoding is set to UTF-8. Do this by going to File->Properties. Then, click on other under text file encoding and change it to UTF-8. Make sure you do that before you put in the section signs. If you need anything else, let me know.
Here is a list of colors.
§0 Black
§1 Dark Blue
§2 Dark Green
§3 Dark Aqua
§4 Dark Red
§5 Dark Purple
§6 Gold
§7 Gray
§8 Dark Gray
§9 Blue
§a Green
§b Aqua
§c Red
§d Light Purple
§e Yellow
§f White
§k Obfuscated (Glitchy Flickering Text)
You have to do Blocks.tnt instead of Block.tnt. I think that will work.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumOk bro please move this "public static Item itemRubber = new ItemRubber("rubber");" to ur main class and register it
have these tutorials been abandoned or are they going to eventually receive updates?