SteamWar/BauSystem2.0
Archiviert
12
0

Update TNTSimulator once again
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
yoyosource 2021-12-10 22:48:12 +01:00
Ursprung eabfead5da
Commit a90e75e182

Datei anzeigen

@ -413,8 +413,8 @@ public class TNTSimulator {
SWInventory swInventory = new SWInventory(player, 54, "TNT konfigurieren"); SWInventory swInventory = new SWInventory(player, 54, "TNT konfigurieren");
// Change Count of spawned TNT // Change Count of spawned TNT
swInventory.setItem(1, new SWItem(SWItem.getDye(10), "§7+1", Arrays.asList("§eShift §7Click für §e-10"), false, clickType -> { swInventory.setItem(1, new SWItem(SWItem.getDye(10), "§7+1", Arrays.asList("§eShift §7Click für §e-5"), false, clickType -> {
setCount(count + (clickType.isShiftClick() ? 10 : 1)); setCount(count + (clickType.isShiftClick() ? 5 : 1));
editTNT(); editTNT();
})); }));
SWItem countItem = new SWItem(Material.TNT, "§7TNT-Anzahl §8- §e" + count, LORE, false, clickType -> changeCount(player, "Anzahl TNT", count, c -> { SWItem countItem = new SWItem(Material.TNT, "§7TNT-Anzahl §8- §e" + count, LORE, false, clickType -> changeCount(player, "Anzahl TNT", count, c -> {
@ -423,8 +423,8 @@ public class TNTSimulator {
}, this::editTNT)); }, this::editTNT));
countItem.getItemStack().setAmount(count); countItem.getItemStack().setAmount(count);
swInventory.setItem(10, countItem); swInventory.setItem(10, countItem);
swInventory.setItem(19, new SWItem(SWItem.getDye(1), "§7-1", Arrays.asList("§eShift §7Click für §e-10"), false, clickType -> { swInventory.setItem(19, new SWItem(SWItem.getDye(1), "§7-1", Arrays.asList("§eShift §7Click für §e-5"), false, clickType -> {
setCount(count - (clickType.isShiftClick() ? 10 : 1)); setCount(count - (clickType.isShiftClick() ? 5 : 1));
editTNT(); editTNT();
})); }));
@ -445,8 +445,8 @@ public class TNTSimulator {
})); }));
// Change FuseTicks // Change FuseTicks
swInventory.setItem(3, new SWItem(SWItem.getDye(10), "§7+1", clickType -> { swInventory.setItem(3, new SWItem(SWItem.getDye(10), "§7+1", Arrays.asList("§eShift §7Click für §e+5"), false, clickType -> {
setFuseTicks(fuseTicks + 1); setFuseTicks(fuseTicks + (clickType.isShiftClick() ? 5 : 1));
editTNT(); editTNT();
})); }));
SWItem fuseTickItem = new SWItem(Material.CLOCK, "§7Lebensdauer §8- §e" + fuseTicks, LORE, false, clickType -> changeCount(player, "Fuse-Ticks", fuseTicks, tick -> { SWItem fuseTickItem = new SWItem(Material.CLOCK, "§7Lebensdauer §8- §e" + fuseTicks, LORE, false, clickType -> changeCount(player, "Fuse-Ticks", fuseTicks, tick -> {
@ -455,8 +455,8 @@ public class TNTSimulator {
}, this::editTNT)); }, this::editTNT));
fuseTickItem.getItemStack().setAmount(Math.max(fuseTicks, 1)); fuseTickItem.getItemStack().setAmount(Math.max(fuseTicks, 1));
swInventory.setItem(12, fuseTickItem); swInventory.setItem(12, fuseTickItem);
swInventory.setItem(21, new SWItem(SWItem.getDye(1), "§7-1", clickType -> { swInventory.setItem(21, new SWItem(SWItem.getDye(1), "§7-1", Arrays.asList("§eShift §7Click für §e-5"), false, clickType -> {
setFuseTicks(fuseTicks - 1); setFuseTicks(fuseTicks - (clickType.isShiftClick() ? 5 : 1));
editTNT(); editTNT();
})); }));