Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package mod.mcreator;//based on master condiguration
- import cpw.mods.fml.client.*;
- import cpw.mods.fml.client.registry.*;
- import cpw.mods.fml.common.*;
- import cpw.mods.fml.common.asm.*;
- import cpw.mods.fml.common.asm.transformers.*;
- import cpw.mods.fml.common.discovery.*;
- import cpw.mods.fml.common.discovery.asm.*;
- import cpw.mods.fml.common.event.*;
- import cpw.mods.fml.common.functions.*;
- import cpw.mods.fml.common.network.*;
- import cpw.mods.fml.common.registry.*;
- import cpw.mods.fml.common.toposort.*;
- import cpw.mods.fml.common.versioning.*;
- import cpw.mods.fml.relauncher.*;
- import cpw.mods.fml.server.*;
- import net.minecraft.block.*;
- import net.minecraft.block.material.*;
- import net.minecraft.client.*;
- import net.minecraft.client.audio.*;
- import net.minecraft.client.entity.*;
- import net.minecraft.client.gui.*;
- import net.minecraft.client.gui.achievement.*;
- import net.minecraft.client.gui.inventory.*;
- import net.minecraft.client.model.*;
- import net.minecraft.client.multiplayer.*;
- import net.minecraft.client.particle.*;
- import net.minecraft.client.renderer.*;
- import net.minecraft.client.renderer.culling.*;
- import net.minecraft.client.renderer.entity.*;
- import net.minecraft.client.renderer.tileentity.*;
- import net.minecraft.client.settings.*;
- import net.minecraft.command.*;
- import net.minecraft.crash.*;
- import net.minecraft.creativetab.*;
- import net.minecraft.dispenser.*;
- import net.minecraft.enchantment.*;
- import net.minecraft.entity.*;
- import net.minecraft.entity.ai.*;
- import net.minecraft.entity.boss.*;
- import net.minecraft.entity.effect.*;
- import net.minecraft.entity.item.*;
- import net.minecraft.entity.monster.*;
- import net.minecraft.entity.passive.*;
- import net.minecraft.entity.player.*;
- import net.minecraft.entity.projectile.*;
- import net.minecraft.inventory.*;
- import net.minecraft.item.*;
- import net.minecraft.item.crafting.*;
- import net.minecraft.nbt.*;
- import net.minecraft.network.*;
- import net.minecraft.network.rcon.*;
- import net.minecraft.pathfinding.*;
- import net.minecraft.potion.*;
- import net.minecraft.profiler.*;
- import net.minecraft.server.*;
- import net.minecraft.server.dedicated.*;
- import net.minecraft.server.gui.*;
- import net.minecraft.server.integrated.*;
- import net.minecraft.server.management.*;
- import net.minecraft.src.*;
- import net.minecraft.stats.*;
- import net.minecraft.tileentity.*;
- import net.minecraft.util.*;
- import net.minecraft.village.*;
- import net.minecraft.world.*;
- import net.minecraft.world.biome.*;
- import net.minecraft.world.chunk.*;
- import net.minecraft.world.chunk.storage.*;
- import net.minecraft.world.demo.*;
- import net.minecraft.world.gen.*;
- import net.minecraft.world.gen.feature.*;
- import net.minecraft.world.gen.layer.*;
- import net.minecraft.world.gen.structure.*;
- import net.minecraft.world.storage.*;
- import net.minecraftforge.classloading.*;
- import net.minecraftforge.client.*;
- import net.minecraftforge.client.event.*;
- import net.minecraftforge.client.event.sound.*;
- import net.minecraftforge.common.*;
- import net.minecraftforge.event.*;
- import net.minecraftforge.event.entity.*;
- import net.minecraftforge.event.entity.item.*;
- import net.minecraftforge.event.entity.living.*;
- import net.minecraftforge.event.entity.minecart.*;
- import net.minecraftforge.event.entity.player.*;
- import net.minecraftforge.event.terraingen.*;
- import net.minecraftforge.event.world.*;
- import net.minecraftforge.oredict.*;
- import net.minecraftforge.transformers.*;
- import net.minecraft.init.*;
- import java.util.Random;
- import java.util.Random;
- public class mcreator_test{
- public Object instance;
- public mcreator_test(){}
- public void load(FMLInitializationEvent event){
- ChestGenHooks chestcontents = ChestGenHooks.getInfo("Category"); // create registered ChestGenHooks
- chestcontents.addItem(new WeightedRandomChestContent(Item.dyePowder, 3, 4, 6, 10)); // 4-6 cocoa beans
- chestcontents.addItem(new WeightedRandomChestContent(new ItemStack(Block.cloth, 1, 15), 2, 3, 20)); // 2-3 black wool
- ItemStack itemStack = new ItemStack(Item.shovelIron);
- itemStack.addEnchantment(Enchantment.efficiency, 1);
- chestcontents.addItem(new WeightedRandomChestContent(itemStack, 1, 2, 5)); // 1-2 Efficiency I enchanted iron shovels
- chestcontents.setMin(7); // inclusive
- chestcontents.setMax(9); // exclusive
- }
- public void generateSurface(World world, Random random, int i2, int k2){
- int i = i2 + random.nextInt(15);
- int k = k2 + random.nextInt(15);
- int j = world.getHeightValue(i,k)-1;
- if((random.nextInt(1000000)+1)<=100){
- boolean place = true;
- for (int y = 0; y<7; y++)
- for (int z = 0; z<4; z++)
- for (int x = 0; x<5; x++)
- if(world.getBlock(i+x,j+y+1,k+z)!=Blocks.air)
- place = false;
- if(place){
- world.setBlock(i+0, j+0, k+0, Block.getBlockById(0), 0, 2);
- world.setBlock(i+1, j+0, k+0, Block.getBlockById(0), 0, 2);
- world.setBlock(i+2, j+0, k+0, Block.getBlockById(0), 0, 2);
- world.setBlock(i+3, j+0, k+0, Block.getBlockById(0), 0, 2);
- world.setBlock(i+4, j+0, k+0, Block.getBlockById(0), 0, 2);
- world.setBlock(i+0, j+0, k+1, Block.getBlockById(0), 0, 2);
- world.setBlock(i+1, j+0, k+1, Block.getBlockById(17), 0, 2);
- world.setBlock(i+2, j+0, k+1, Block.getBlockById(0), 0, 2);
- world.setBlock(i+3, j+0, k+1, Block.getBlockById(0), 0, 2);
- world.setBlock(i+4, j+0, k+1, Block.getBlockById(0), 0, 2);
- world.setBlock(i+0, j+0, k+2, Block.getBlockById(0), 0, 2);
- world.setBlock(i+1, j+0, k+2, Block.getBlockById(0), 0, 2);
- world.setBlock(i+2, j+0, k+2, Block.getBlockById(0), 0, 2);
- world.setBlock(i+3, j+0, k+2, Block.getBlockById(0), 0, 2);
- world.setBlock(i+4, j+0, k+2, Block.getBlockById(0), 0, 2);
- world.setBlock(i+0, j+0, k+3, Block.getBlockById(0), 0, 2);
- world.setBlock(i+1, j+0, k+3, Block.getBlockById(0), 0, 2);
- world.setBlock(i+2, j+0, k+3, Block.getBlockById(0), 0, 2);
- world.setBlock(i+3, j+0, k+3, Block.getBlockById(0), 0, 2);
- world.setBlock(i+4, j+0, k+3, Block.getBlockById(0), 0, 2);
- world.setBlock(i+0, j+1, k+0, Block.getBlockById(0), 0, 2);
- world.setBlock(i+1, j+1, k+0, Block.getBlockById(0), 0, 2);
- world.setBlock(i+2, j+1, k+0, Block.getBlockById(0), 0, 2);
- world.setBlock(i+3, j+1, k+0, Block.getBlockById(0), 0, 2);
- world.setBlock(i+4, j+1, k+0, Block.getBlockById(0), 0, 2);
- world.setBlock(i+0, j+1, k+1, Block.getBlockById(0), 0, 2);
- world.setBlock(i+1, j+1, k+1, Block.getBlockById(17), 0, 2);
- world.setBlock(i+2, j+1, k+1, Block.getBlockById(0), 0, 2);
- world.setBlock(i+3, j+1, k+1, Block.getBlockById(0), 0, 2);
- world.setBlock(i+4, j+1, k+1, Block.getBlockById(0), 0, 2);
- world.setBlock(i+0, j+1, k+2, Block.getBlockById(0), 0, 2);
- world.setBlock(i+1, j+1, k+2, Block.getBlockById(0), 0, 2);
- world.setBlock(i+2, j+1, k+2, Block.getBlockById(0), 0, 2);
- world.setBlock(i+3, j+1, k+2, Block.getBlockById(0), 0, 2);
- world.setBlock(i+4, j+1, k+2, Block.getBlockById(0), 0, 2);
- world.setBlock(i+0, j+1, k+3, Block.getBlockById(0), 0, 2);
- world.setBlock(i+1, j+1, k+3, Block.getBlockById(0), 0, 2);
- world.setBlock(i+2, j+1, k+3, Block.getBlockById(0), 0, 2);
- world.setBlock(i+3, j+1, k+3, Block.getBlockById(0), 0, 2);
- world.setBlock(i+4, j+1, k+3, Block.getBlockById(0), 0, 2);
- world.setBlock(i+0, j+2, k+0, Block.getBlockById(0), 0, 2);
- world.setBlock(i+1, j+2, k+0, Block.getBlockById(0), 0, 2);
- world.setBlock(i+2, j+2, k+0, Block.getBlockById(0), 0, 2);
- world.setBlock(i+3, j+2, k+0, Block.getBlockById(0), 0, 2);
- world.setBlock(i+4, j+2, k+0, Block.getBlockById(0), 0, 2);
- world.setBlock(i+0, j+2, k+1, Block.getBlockById(0), 0, 2);
- world.setBlock(i+1, j+2, k+1, Block.getBlockById(17), 0, 2);
- world.setBlock(i+2, j+2, k+1, Block.getBlockById(0), 0, 2);
- world.setBlock(i+3, j+2, k+1, Block.getBlockById(0), 0, 2);
- world.setBlock(i+4, j+2, k+1, Block.getBlockById(0), 0, 2);
- world.setBlock(i+0, j+2, k+2, Block.getBlockById(0), 0, 2);
- world.setBlock(i+1, j+2, k+2, Block.getBlockById(0), 0, 2);
- world.setBlock(i+2, j+2, k+2, Block.getBlockById(0), 0, 2);
- world.setBlock(i+3, j+2, k+2, Block.getBlockById(0), 0, 2);
- world.setBlock(i+4, j+2, k+2, Block.getBlockById(0), 0, 2);
- world.setBlock(i+0, j+2, k+3, Block.getBlockById(0), 0, 2);
- world.setBlock(i+1, j+2, k+3, Block.getBlockById(0), 0, 2);
- world.setBlock(i+2, j+2, k+3, Block.getBlockById(0), 0, 2);
- world.setBlock(i+3, j+2, k+3, Block.getBlockById(0), 0, 2);
- world.setBlock(i+4, j+2, k+3, Block.getBlockById(0), 0, 2);
- world.setBlock(i+0, j+3, k+0, Block.getBlockById(0), 0, 2);
- world.setBlock(i+1, j+3, k+0, Block.getBlockById(0), 0, 2);
- world.setBlock(i+2, j+3, k+0, Block.getBlockById(0), 0, 2);
- world.setBlock(i+3, j+3, k+0, Block.getBlockById(0), 0, 2);
- world.setBlock(i+4, j+3, k+0, Block.getBlockById(0), 0, 2);
- world.setBlock(i+0, j+3, k+1, Block.getBlockById(17), 4, 2);
- world.setBlock(i+1, j+3, k+1, Block.getBlockById(17), 0, 2);
- world.setBlock(i+2, j+3, k+1, Block.getBlockById(0), 0, 2);
- world.setBlock(i+3, j+3, k+1, Block.getBlockById(0), 0, 2);
- world.setBlock(i+4, j+3, k+1, Block.getBlockById(0), 0, 2);
- world.setBlock(i+0, j+3, k+2, Block.getBlockById(0), 0, 2);
- world.setBlock(i+1, j+3, k+2, Block.getBlockById(0), 0, 2);
- world.setBlock(i+2, j+3, k+2, Block.getBlockById(0), 0, 2);
- world.setBlock(i+3, j+3, k+2, Block.getBlockById(0), 0, 2);
- world.setBlock(i+4, j+3, k+2, Block.getBlockById(0), 0, 2);
- world.setBlock(i+0, j+3, k+3, Block.getBlockById(0), 0, 2);
- world.setBlock(i+1, j+3, k+3, Block.getBlockById(0), 0, 2);
- world.setBlock(i+2, j+3, k+3, Block.getBlockById(0), 0, 2);
- world.setBlock(i+3, j+3, k+3, Block.getBlockById(0), 0, 2);
- world.setBlock(i+4, j+3, k+3, Block.getBlockById(0), 0, 2);
- world.setBlock(i+0, j+4, k+0, Block.getBlockById(0), 0, 2);
- world.setBlock(i+1, j+4, k+0, Block.getBlockById(17), 8, 2);
- world.setBlock(i+2, j+4, k+0, Block.getBlockById(0), 0, 2);
- world.setBlock(i+3, j+4, k+0, Block.getBlockById(0), 0, 2);
- world.setBlock(i+4, j+4, k+0, Block.getBlockById(0), 0, 2);
- world.setBlock(i+0, j+4, k+1, Block.getBlockById(0), 0, 2);
- world.setBlock(i+1, j+4, k+1, Block.getBlockById(17), 0, 2);
- world.setBlock(i+2, j+4, k+1, Block.getBlockById(0), 0, 2);
- world.setBlock(i+3, j+4, k+1, Block.getBlockById(0), 0, 2);
- world.setBlock(i+4, j+4, k+1, Block.getBlockById(0), 0, 2);
- world.setBlock(i+0, j+4, k+2, Block.getBlockById(0), 0, 2);
- world.setBlock(i+1, j+4, k+2, Block.getBlockById(0), 0, 2);
- world.setBlock(i+2, j+4, k+2, Block.getBlockById(0), 0, 2);
- world.setBlock(i+3, j+4, k+2, Block.getBlockById(0), 0, 2);
- world.setBlock(i+4, j+4, k+2, Block.getBlockById(0), 0, 2);
- world.setBlock(i+0, j+4, k+3, Block.getBlockById(0), 0, 2);
- world.setBlock(i+1, j+4, k+3, Block.getBlockById(0), 0, 2);
- world.setBlock(i+2, j+4, k+3, Block.getBlockById(0), 0, 2);
- world.setBlock(i+3, j+4, k+3, Block.getBlockById(0), 0, 2);
- world.setBlock(i+4, j+4, k+3, Block.getBlockById(0), 0, 2);
- world.setBlock(i+0, j+5, k+0, Block.getBlockById(0), 0, 2);
- world.setBlock(i+1, j+5, k+0, Block.getBlockById(0), 0, 2);
- world.setBlock(i+2, j+5, k+0, Block.getBlockById(0), 0, 2);
- world.setBlock(i+3, j+5, k+0, Block.getBlockById(17), 8, 2);
- world.setBlock(i+4, j+5, k+0, Block.getBlockById(0), 0, 2);
- world.setBlock(i+0, j+5, k+1, Block.getBlockById(0), 0, 2);
- world.setBlock(i+1, j+5, k+1, Block.getBlockById(17), 0, 2);
- world.setBlock(i+2, j+5, k+1, Block.getBlockById(17), 4, 2);
- world.setBlock(i+3, j+5, k+1, Block.getBlockById(17), 4, 2);
- world.setBlock(i+4, j+5, k+1, Block.getBlockById(17), 4, 2);
- world.setBlock(i+0, j+5, k+2, Block.getBlockById(0), 0, 2);
- world.setBlock(i+1, j+5, k+2, Block.getBlockById(17), 8, 2);
- world.setBlock(i+2, j+5, k+2, Block.getBlockById(0), 0, 2);
- world.setBlock(i+3, j+5, k+2, Block.getBlockById(0), 0, 2);
- world.setBlock(i+4, j+5, k+2, Block.getBlockById(0), 0, 2);
- world.setBlock(i+0, j+5, k+3, Block.getBlockById(0), 0, 2);
- world.setBlock(i+1, j+5, k+3, Block.getBlockById(17), 8, 2);
- world.setBlock(i+2, j+5, k+3, Block.getBlockById(0), 0, 2);
- world.setBlock(i+3, j+5, k+3, Block.getBlockById(0), 0, 2);
- world.setBlock(i+4, j+5, k+3, Block.getBlockById(0), 0, 2);
- world.setBlock(i+0, j+6, k+0, Block.getBlockById(0), 0, 2);
- world.setBlock(i+1, j+6, k+0, Block.getBlockById(0), 0, 2);
- world.setBlock(i+2, j+6, k+0, Block.getBlockById(0), 0, 2);
- world.setBlock(i+3, j+6, k+0, Block.getBlockById(0), 0, 2);
- world.setBlock(i+4, j+6, k+0, Block.getBlockById(0), 0, 2);
- world.setBlock(i+0, j+6, k+1, Block.getBlockById(0), 0, 2);
- world.setBlock(i+1, j+6, k+1, Block.getBlockById(17), 0, 2);
- world.setBlock(i+2, j+6, k+1, Block.getBlockById(0), 0, 2);
- world.setBlock(i+3, j+6, k+1, Block.getBlockById(0), 0, 2);
- world.setBlock(i+4, j+6, k+1, Block.getBlockById(0), 0, 2);
- world.setBlock(i+0, j+6, k+2, Block.getBlockById(0), 0, 2);
- world.setBlock(i+1, j+6, k+2, Block.getBlockById(0), 0, 2);
- world.setBlock(i+2, j+6, k+2, Block.getBlockById(0), 0, 2);
- world.setBlock(i+3, j+6, k+2, Block.getBlockById(0), 0, 2);
- world.setBlock(i+4, j+6, k+2, Block.getBlockById(0), 0, 2);
- world.setBlock(i+0, j+6, k+3, Block.getBlockById(0), 0, 2);
- world.setBlock(i+1, j+6, k+3, Block.getBlockById(0), 0, 2);
- world.setBlock(i+2, j+6, k+3, Block.getBlockById(0), 0, 2);
- world.setBlock(i+3, j+6, k+3, Block.getBlockById(0), 0, 2);
- world.setBlock(i+4, j+6, k+3, Block.getBlockById(0), 0, 2);
- world.setBlock(i, j, k, Block.getBlockById(0), 0, 2);
- TileEntity te = world.getBlockTileEntity(i, j, k);
- if (te instanceof IInventory)
- {
- ChestGenHooks info = ChestGenHooks.getInfo("Category");
- WeightedRandomChestContent.generateChestContents(random, info.getItems(random), te, info.getCount(random));
- }
- }}
- }
- public void generateNether(World world, Random random, int chunkX, int chunkZ){}
- public int addFuel(ItemStack fuel){
- return 0;
- }
- public void serverLoad(FMLServerStartingEvent event){}
- public void preInit(FMLPreInitializationEvent event){}
- public void registerRenderers(){}
- }
Add Comment
Please, Sign In to add comment