Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void startSpawningBronze() {
- if(!isSpawningb) {
- isSpawningb = true;
- sched3 = Bukkit.getScheduler().scheduleSyncRepeatingTask(Main.getPlugin(Main.class), new Runnable() {
- @Override
- public void run() {
- Location gold1 = new Location(Bukkit.getWorld("world"), 563.5, 100, -652.5);
- Location gold2 = new Location(Bukkit.getWorld("world"), 564.5, 100, -651.5);
- Location gold3 = new Location(Bukkit.getWorld("world"), 562.5, 100, -650.5);
- Location gold4 = new Location(Bukkit.getWorld("world"), 561.5, 100, -652.5);
- Location bronze1 = new Location(Bukkit.getWorld("world"), 564.5, 99, -760.5);
- Location bronze2 = new Location(Bukkit.getWorld("world"), 562.5, 99, -766.5);
- Location bronze3 = new Location(Bukkit.getWorld("world"), 560.5, 99, -536.5);
- Location bronze4 = new Location(Bukkit.getWorld("world"), 558.5, 99, -541.5);
- Location iron1 = new Location(Bukkit.getWorld("world"), 591.5, 99, -543.5);
- Location iron2 = new Location(Bukkit.getWorld("world"), 531.5, 99, -757.5);
- Entity entity7 = Bukkit.getWorld("world").dropItemNaturally(bronze1, new ItemBuilder(Material.CLAY_BRICK).name("§cBronze").build());
- Entity entity8 = Bukkit.getWorld("world").dropItemNaturally(bronze2, new ItemBuilder(Material.CLAY_BRICK).name("§cBronze").build());
- Entity entity9 = Bukkit.getWorld("world").dropItemNaturally(bronze3, new ItemBuilder(Material.CLAY_BRICK).name("§cBronze").build());
- Entity entity10 = Bukkit.getWorld("world").dropItemNaturally(bronze4, new ItemBuilder(Material.CLAY_BRICK).name("§cBronze").build());
- entities.add(entity7);
- entities.add(entity8);
- entities.add(entity9);
- entities.add(entity10);
- }
- }, 20, 20);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement