Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Zido

Members
  • Joined

  • Last visited

Everything posted by Zido

  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:

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.