Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- BLOCK EXPERIUM CODE:
- package net.minecraft.src;
- import java.util.Random;
- public class BlockExperium extends Block
- {
- public BlockExperium(int par1, int par2)
- {
- super(par1, par2, Material.cloth);
- }
- public void onBlockDestroyedByPlayer(World world, int i, int j, int k, int l, Random random)
- {
- EntityXPOrb entityxporb = new EntityXPOrb(world);
- int a = random.nextInt(2);
- if (a == 1)
- {
- world.spawnEntityInWorld(entityxporb);
- }
- if (a == 2)
- {
- world.spawnEntityInWorld(entityxporb);
- world.spawnEntityInWorld(entityxporb);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment