Jump to content

Zido

Members
  • Posts

    10
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    Newbie Modder

Zido's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. it worked, thanks! oddly it haven't done that before
  2. I will try that, thank you for the reply!
  3. still have no clue how to fix this one, tried plenty of different things..
  4. I am trying to add a creative mode into the script so you can destroy it without respawning in creative mode but cannot get it to work. public void breakBlock(World world, int x, int y, int z, Block block, EntityPlayer player, int meta ) { //Using random ints in the drops may cause a crash. Set amounts don't. //Loops through all drops. for(int i = 0; i < block.getDrops(world, x, y, z, meta, 0).size(); i++){ //Breaks the loop if i == size. if(i == block.getDrops(world, x, y, z, meta, 0).size()){ break; } //Spawns the drops into the world. world.spawnEntityInWorld(new EntityItem(world, x, y, z, block.getDrops(world, x, y, z, meta, 0).get(i))); } if (!player.capabilities.isCreativeMode && (meta & != 0 && world.getBlock(x, y - 1, z) == this) { world.setBlock(x, y, z, this); } this is what i have ...
  5. Sadly I am pretty new and still learning so don't have much experience yet, and mostly I like to run through the referenced libraries for help to make some scripts ^^
  6. Ah thanks for the help, I was into using onBlockDestroyedByPlayer and were mixing with this stuff but without any success.
  7. I'm looking for a script that when you mine a block it wont be (destoryed or it will get destroyed and recreate itself) and still drop materials. Anyone who got a clue?
  8. I found my error so this one is done! ^^
  9. Well I made a basic crafting table, but when I try to put in the items only 3 blocks are working in a row... if I set this.addRecipe(new ItemStack(ZidoCraft.WarriorSword, 1), new Object[] {"GGG", 'G', ZidoCraft.Block}); it works but if I extend the GGG to more it doesn't work. any suggestions? My Container Script:
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.