Skocz do zawartości

Shooterowy

Użytkownik
  • Ilość zawartości

    999
  • Rejestracja

  • Ostatnia wizyta

  • Wygrane w rankingu

    23

Treść opublikowana przez Shooterowy

  1. Wymyśliłem coś takiego. @Override public boolean onCommand(CommandSender sender, Command arg1, String arg2, String[] args) { Player p = (Player)sender; ItemStack cobblex = Cobblexcx.Mossy(p); ItemStack itemstack = new ItemStack(Material.COBBLESTONE, 576); if(args.length == 0) { if(!p.getInventory().containsAtLeast(itemstack, 576)) p.sendMessage("§c§lBRAK PRZEDMIOTU §8§k|§7 §7576 COBBLESTONE §8§k|"); else { p.getInventory().removeItem(itemstack); p.sendMessage("§7Otrzymałeś/aś §81x Cobblex §7do ekwipunku!"); p.getInventory().addItem(cobblex); } } else p.sendMessage("§c§lUZYCIE §8§k|§7 §7/cobblex §8§k|§7 §7/cx §8§k|"); return false; } Nie jestem jakiś wybitny w pisaniu pluginów, więc ten kod może być tragiczny.
  2. Shooterowy

    Problem YAML

    Niestety nie da się użyć zmiennej w tym evencie. Możesz zrobić coś takiego: #Przykład on script load: set {time} to 10 set {timer} to 0 every 1 minute: if {timer} < {time}: add 1 to {timer} if {timer} = {time}: broadcast "test" set {timer} to 0
  3. Shooterowy

    czas

    command /test [<text>]: trigger: set {_now} to now set {_czas} to "%arg 1% days" parsed as timespan add {_czas} to {_now}
  4. Shooterowy

    czas

    A jaki argument podajesz w komendzie?
  5. Shooterowy

    jak zrobic?

    on teleport: future world is not event-world cancel event send "Nie mozesz podrozowac miedzy swiatami"
  6. on inventory click: if type of current inventory is anvil inventory: wait 2 ticks if level of efficiency of slot 0 of current inventory is 5: if type of slot 1 of current inventory is diamond block: if item amount of slot 1 of current inventory >= 8: set slot 2 of current inventory to slot 0 of current inventory enchant slot 2 of current inventory with efficiency 6 if type of event-inventory is anvil inventory: if clicked slot is 2: cancel event if clicked slot is enchanted with efficiency 6: add clicked slot to player set slot 0 of event-inventory to air remove 8 diamond blocks from slot 1 of event-inventory
  7. Shooterowy

    Item drop

    on drop: if time since {drop::%playe%} and now is less than 5 seconds: stop cancel event send "Press Q again, to drop the item." set {drop::%player%} to now on tool change: if {drop::%player%} is set: clear {drop::%player%}
  8. Shooterowy

    regiony

    owner of region at location of player is not set
  9. Shooterowy

    Zombie z setem

    command /zombie: trigger: spawn zombie at player set name of spawned entity to "&3Zombie Wojownik" set {_armor} to all leather armor of protection 5 dye {_armor} light green equip spawned entity with {_armor} set spawned entity's tool to diamond sword of sharpness 5 set spawned entity's maximum health to 100 heal spawned entity
  10. Shooterowy

    Skrypt sprawdzajacy

    variables: {stone::%player%} = 0 on mine of stone: if {stone::%player%} is less than 500: add 1 to {stone::%player%} if {stone::%player} is 500: send "Wykopałeś 500 kamienia. W nagrodę otrzymujesz diamentowy kilof" add diamond pickaxe
  11. event-inventory is not player's inventory: cancel event
  12. Proszę, mogą być drobne błędy.
  13. Masz literówki w skrypcie. Linijka 4 i 31 if {portl.end} is 1: powinno być {portal.end}
  14. on mine of diamond ore: send "%player% wykopał rudę diamentu" to all ops
  15. player's prefix/player's displayname
  16. if player's tool is enchanted with silk touch:
  17. if name of player's tool is "&aSkrzynka Szczescia":
  18. spróbuj clear stone slab
  19. enchant player's tool with unbreaking 4
  20. Shooterowy

    Menu

    dodaj warunek if event-inventory is not player's inventory: przed sprawdzaniem klikniętego slota.
  21. dodam tylko, że w evencie on death przy sprawdzaniu czy victim/attacker to gracz zamiast "player" musi być "a player"
  22. dodaj set {sugar::%player%} to now po ifie
  23. command /sklep: trigger: set {_inv} to chest inventory with 3 rows named "&7&lSklep" set slot 11 of {_inv} to light green glass named "&2&lKupno" with lore "&7Możesz tu kupić przedmioty!" set slot 15 of {_inv} to red glass named "&c&lSprzedaż" with lore "&7Możesz tu sprzedać przedmioty!" open {_inv} to player on inventory click: if name of event-inventory is "&7&lSklep": cancel event if event-inventory is not player's inventory: if clicked slot is 11: send "Kupno" else if clicked slot is 15: send "Sprzedaż"
  24. Shooterowy

    Telefon-sms

    Podaj te błędy
  25. on damage: if victim is a player: if damage cause is void: cancel event if victim's world is "world_the_end": teleport victim to location at (victim's x-loc, 257, victim's z-loc) in "world" apply slow falling to victim for 10 seconds else if victim's world is "world": set {_loc} to location at (victim's x-loc, 128, victim's z-loc) in "world_nether" teleport victim to {_loc} loop blocks below block at {_loc}: if loop-block is air: if block below loop-block is air: teleport victim to block below loop-block apply slow falling to victim for 10 seconds exit loop Gracz spada z endu do normalnego świata, z normalnego świata do netheru.
×
×
  • Dodaj nową pozycję...