Even cooler Eruption now.

dev
sigonasr2 9 years ago
parent 40f420bf89
commit 7187c1414a
  1. BIN
      TwosideKeeper.jar
  2. 2
      src/plugin.yml
  3. 7
      src/sig/plugin/TwosideKeeper/NewCombat.java
  4. 11
      src/sig/plugin/TwosideKeeper/TwosideKeeper.java

Binary file not shown.

@ -1,6 +1,6 @@
name: TwosideKeeper
main: sig.plugin.TwosideKeeper.TwosideKeeper
version: 3.7.1
version: 3.7.1r1
commands:
money:
description: Tells the player the amount of money they are holding.

@ -355,9 +355,10 @@ public class NewCombat {
FallingBlock fb = (FallingBlock)b.getLocation().getWorld().spawnFallingBlock(b.getLocation().add(0,0.1,0),b.getType(),(byte)0);
fb.setVelocity(new Vector(0,Math.random()*1.35,0));
fb.setMetadata("FAKE", new FixedMetadataValue(TwosideKeeper.plugin,true));
b.breakNaturally();
aPlugin.API.sendSoundlessExplosion(b.getLocation(), 3);
p.playSound(mon.getLocation(), Sound.BLOCK_CHORUS_FLOWER_DEATH, 1.0f, 1.0f);
//b.breakNaturally();
b.setType(Material.AIR);
aPlugin.API.sendSoundlessExplosion(b.getLocation(), 1);
p.playSound(mon.getLocation(), Sound.ENTITY_GENERIC_EXPLODE, 1.0f, 1.0f);
}
}
}

@ -2618,7 +2618,7 @@ public class TwosideKeeper extends JavaPlugin implements Listener {
itemCube_saveConfig(ITEMCUBEID, new ArrayList<ItemStack>(), cubetype);
ITEMCUBEID++;
}
}
}
}
}
}
@ -2628,7 +2628,14 @@ public class TwosideKeeper extends JavaPlugin implements Listener {
if (ev.getEntity() instanceof FallingBlock) {
FallingBlock fb = (FallingBlock)ev.getEntity();
if (fb.hasMetadata("FAKE")) {
ev.setCancelled(true);
final Block b = ev.getBlock();
Bukkit.getScheduler().scheduleSyncDelayedTask(this, new Runnable() {
@Override
public void run() {
b.getLocation().getWorld().playSound(b.getLocation(), Sound.BLOCK_CHORUS_FLOWER_DEATH, 1.0f, 1.0f);
b.breakNaturally();
}
},1);
}
}
}

Loading…
Cancel
Save