Skocz do zawartości

the_kakus

Użytkownik
  • Ilość zawartości

    204
  • Rejestracja

  • Ostatnia wizyta

Treść opublikowana przez the_kakus

  1. the_kakus

    regiony

    on place of bedrock: if player's tool's name is "&8» &6Działka": if {dzialka.%player%} is not set: loop {regions::*}: if distance between event-block's location and loop-value is greater than 150: add event-block's location to {regions::*} set {dzialka.%player%} to 1 set {xpos.%player%} to x-loc of event-block set {ypos.%player%} to y-loc of event-block set {zpos.%player%} to z-loc of event-block set {xpos1.%player%} to ({xpos.%player%} + 9.5) set {zpos1.%player%} to ({zpos.%player%} + 9.5) set {xpos2.%player%} to ({xpos.%player%} - 10.5) set {zpos2.%player%} to ({zpos.%player%} - 10.5) run player command "//pos1 %{xpos1.%player%}%,0,%{zpos1.%player%}%" as op run player command "//pos2 %{xpos2.%player%}%,256,%{zpos2.%player%}%" as op run player command "/rg define %player%" as op run player command "/rg flag -w world %player% tnt deny" as op run player command "/rg flag -w world %player% ghast-fireball deny" as op run player command "/rg flag -w world %player% wither-damage deny" as op run player command "/rg flag -w world %player% ravager-grief deny" as op run player command "/rg flag -w world %player% enderman-grief deny" as op run player command "/rg flag -w world %player% other-explosion deny" as op run player command "/rg flag -w world %player% creeper-explosion deny" as op run player command "/rg flag -w world %player% -g nonmembers damage-animals deny" as op run player command "/rg flag -w world %player% -g nonmembers block-break deny" as op run player command "/rg flag -w world %player% -g nonmembers block-place deny" as op run player command "/rg flag -w world %player% -g nonmembers build deny" as op run player command "/rg flag -w world %player% -g all pvp allow" as op run player command "/rg flag -w world %player% -g all use allow" as op run player command "/rg flag -w world %player% -g all chest-access allow" as op execute console command "/rg addowner %player% %player% -w world" create bossbar titled "&aJesteś na terenie &2swojej &adziałki&2!" and id "terenally.%player%" for player with progress 100 with colors green play sound "minecraft:block.note_block.harp" with pitch 1 to player stop send "&8» &cNie możesz założyć tu działki, gdyż w obrębie 150 kratek jest inna działka!" cancel event mam teraz tak i wciaz nie dziala tak jak powinno:/
  2. the_kakus

    regiony

    teraz to dziala tak ze najpierw zaklada dzialke, a po ulamku sekundy sie tylko wyswietla komunikat o tym ze nie mozna zakladac dzialki w obrebie 150 kratek
  3. the_kakus

    regiony

    to dziala tylko na pierwsze loop-value, jak jest ich wiecej to tylko bierze pod uwage to pierwsze
  4. the_kakus

    regiony

    podmienilem i dalej nie dzialalo
  5. the_kakus

    regiony

    a nie da sie zrobic czegos w stylu loop all regions: if distance between event-block's location and loop-value is less than 150 ?
  6. the_kakus

    regiony

    ogolnie to dziala mi wszystko tylko tak jakby skrypt nie bierze w ogole pod uwage tego ze nie powinien sie postawic bedrock w obrebie ponad 150 kratek od innego, bo stawia sie w kazdej odleglosci
  7. the_kakus

    regiony

    on place of bedrock: if player's tool's name is "&8» &6Działka": if {dzialka.%player%} is not set: loop {regions::*}: if distance between event-block's location and loop-value is less than 150: add event-block's location to {regions::*} set {dzialka.%player%} to 1 set {xpos.%player%} to x-loc of event-block set {ypos.%player%} to y-loc of event-block set {zpos.%player%} to z-loc of event-block set {xpos1.%player%} to ({xpos.%player%} + 9.5) set {zpos1.%player%} to ({zpos.%player%} + 9.5) set {xpos2.%player%} to ({xpos.%player%} - 10.5) set {zpos2.%player%} to ({zpos.%player%} - 10.5) run player command "//pos1 %{xpos1.%player%}%,0,%{zpos1.%player%}%" as op run player command "//pos2 %{xpos2.%player%}%,256,%{zpos2.%player%}%" as op run player command "/rg define %player%" as op run player command "/rg flag -w world %player% wither-damage deny" as op run player command "/rg flag -w world %player% tnt deny" as op run player command "/rg flag -w world %player% ravager-grief deny" as op run player command "/rg flag -w world %player% other-explosion deny" as op run player command "/rg flag -w world %player% ghast-fireball deny" as op run player command "/rg flag -w world %player% enderman-grief deny" as op run player command "/rg flag -w world %player% damage-animals deny" as op run player command "/rg flag -w world %player% -g nonmembers block-break deny" as op run player command "/rg flag -w world %player% -g nonmembers block-place deny" as op run player command "/rg flag -w world %player% -g nonmembers build deny" as op run player command "/rg flag -w world %player% creeper-explosion deny" as op run player command "/rg flag -w world %player% -g all pvp allow" as op run player command "/rg flag -w world %player% -g all use allow" as op run player command "/rg flag -w world %player% -g all chest-access allow" as op execute console command "/rg addowner %player% %player% -w world" create bossbar titled "&aJesteś na terenie &2swojej &adziałki&2!" and id "terenally.%player%" for player with progress 100 with colors green play sound "minecraft:block.note_block.harp" with pitch 1 to player stop else if distance between event-block's location and loop-value is greater than 150: send "&8» &cNie możesz założyć tu działki, gdyż w obrębie 150 kratek jest inna działka!" cancel event stop else if {dzialka.%player%} is 1: send "&8» &cJuż masz jedną działkę! &c&o(%{xpos.%player%}%&c&o, %({ypos.%player%} + 0.5)%&c&o, %{zpos.%player%}%&c&o)" cancel event stop else if {dzialka.%player%} is 2: send "&8» &cJuż masz jedną działkę! &c&o(%{xpos.%{owner.%player%}%}%&c&o, %({ypos.%{owner.%player%}%} + 0.5)%&c&o, %{zpos.%{owner.%player%}%}%&c&o)" cancel event stop
  8. the_kakus

    regiony

    mam cos takiego i nie dziala (0 errorów) on place of bedrock: if player's tool's name is "&8» &6Działka": if {dzialka.%player%} is not set: loop {regions::*}: if distance between event-block and loop-value is less than 150: add event-block's location to {regions::*}
  9. the_kakus

    regiony

    siema, nie umiem nic wykombinować, a probuje zrobic cos takiego ze gdy stawiam bedrock to on sie stawia tylko wtedy gdy w obrebie 150 kratek nie ma zadnego innego bedrocka
  10. da się
  11. the_kakus

    kordy

    siema, chcialbym ustawic zmienną na np. x-loc of player, ale tak zeby ten kordynat nie byl po przecinku
  12. on inventory click: name of player's current inventory = "nazwa gui" if clicked type is left mouse button: send "xd" if clicked type is right mouse button: send "xd2"
  13. on mine stone: if {cobble.drop::%player%} is false: cancel drops if {diamenty.drop::%player%} is true: chance of 5%: drop 1 diamond at player add 30 xp to player spróbuj tak, i rozpisz reszte surowców tak jak diamenty nie musisz na kazdy surowiec pisać od nowa "on mine stone:" - wystarczy ze napiszesz linijke nizej
  14. i o to mi chodzilo, dziekuje slicznie
  15. chodzi o to zeby przy kupowaniu dawalo item bez lore a póki co daje mi item z lore takim jak w sklepie itemów bez takiej lore jak w sklepie nie moge sprzedawać bo zmienna ustawiona na "type of event-slot" uznaje tylko itemy z lore takim jak w gui
  16. wysylalem tu wczesniej skrypt na sklep może ten przez ten filmik zrozumiesz o co mi chodzi
  17. problem lezy w tym ze sklep nie chce mi sprzedawac normalnych itemów, tylko te kupione, bo te kupione mają lore takie samo jak itemy w sklepie
  18. @Kormic
  19. musialbym ci pokazac jak dziala sklep, najlepiej na jakims filmiku bo na ss'ach nie umiem tego wytlumaczyc ale po prostu sklep nie pozwala mi sprzedawac zwyklych itemów, a kupione itemy mi pozwala sprzedawac bo te kupione itemy mają lore taki sam jak item w sklepie type of event-slot pokazuje na czacie tylko nazwe itemu (bez lore)
  20. no wlasnie tak jakby nie, bo w tym moim skrypcie na sklep gdy kupuje item to daje mi go z lorem takim jak jest w sklepie i nie chce sprzedawac itemów bez tego samego lore
  21. @Kormicjednak tamto mi bylo nie potrzebne xD potrzebuje chyba zeby zmienna sie ustawiala na blok ale bez lore cos typu set {_item} to type of event-slot without lore tylko nie wiem jak to napisac
  22. szok i niedowierzanie - DZIAŁA!!!1!!1
  23. set {_item} to event-slot send "1 %{_item}%" set {_item} to "%type of event-block%" replace all "block" with "" in {_item} send "2 %{_item}%"
  24. https://imgur.com/a/2iPlR1z i dalej nie dziala:/
×
×
  • Dodaj nową pozycję...