Witam, mam problem, poniewaz po postawieniu cuboidy z nazwa "&6Zabezpieczenie działki" wszystko działa dobrze, tworzy sie cuboida poza tym, ze gdy postawie zwykly jukebox gdzie kolwiek i go zniszcze, zniszczy się tez cuboida, chcialem pobawic sie z tym zeby zapisywalo lokalizacje po postawieniu bloku i zeby dalo sie zniszczyc tylko ten okreslony blok po lokalizacji w tym przypadku jukebox z nazwa "&6Zabezpieczenie działki", ale nie wiem co zrobic i jak to dziala. Z gory dzieki
Spoiler
variables: {cuboida.%player%} = false options: teren: 30 on place jukebox: if name of player's tool is "&6Zabezpieczenie działki": if {cuboida.%player%} is false: make console execute command "pex user %player% add worldguard.*" make console execute command "pex user %player% add worldedit.*" execute player command "//pos1" execute player command "//pos2" execute player command "//expand {@teren} n" execute player command "//expand {@teren} e" execute player command "//expand {@teren} s" execute player command "//expand {@teren} w" execute player command "//expand vert" execute player command "rg define %player%" execute player command "rg flag %player% greeting &8» &7Wchodzisz na teren gracza &a%player%" execute player command "rg flag %player% farewell &8» &7Opuszczasz teren gracza &a%player%" execute player command "rg flag %player% creeper-explosion deny" execute player command "rg flag %player% mob-damage deny" execute player command "rg flag %player% mob-spawning deny" execute player command "rg flag %player% pvp deny" execute player command "/rg addowner %player% %player%" execute player command "//pos1" execute player command "//pos2" set {cuboida.%player%} to true make console execute command "pex user %player% remove worldguard.*" make console execute command "pex user %player% remove worldedit.*" make console execute command "pex user %player% add teren.lider" wait 1 tick loop 99 times: send "" send "&8» &7Teren zostal zalozony!" stop else: set block to air wait 1 tick drop 1 jukebox named "&6Zabezpieczenie działki" with lore "&8» Postaw na ziemi, aby użyć" at event-block send "&8» &7Już posiadasz dzialke" on mine of jukebox: player has permissions "teren.lider": make console execute command "rg remove -w %world of player% %player%" send "&8» &3Teren zostal usuniety !" set {cuboida.%player%} to false stop
Pytanie
EdeQ 0
Witam, mam problem, poniewaz po postawieniu cuboidy z nazwa "&6Zabezpieczenie działki" wszystko działa dobrze, tworzy sie cuboida poza tym, ze gdy postawie zwykly jukebox gdzie kolwiek i go zniszcze, zniszczy się tez cuboida, chcialem pobawic sie z tym zeby zapisywalo lokalizacje po postawieniu bloku i zeby dalo sie zniszczyc tylko ten okreslony blok po lokalizacji w tym przypadku jukebox z nazwa "&6Zabezpieczenie działki", ale nie wiem co zrobic i jak to dziala. Z gory dzieki
variables:
{cuboida.%player%} = false
options:
teren: 30
on place jukebox:
if name of player's tool is "&6Zabezpieczenie działki":
if {cuboida.%player%} is false:
make console execute command "pex user %player% add worldguard.*"
make console execute command "pex user %player% add worldedit.*"
execute player command "//pos1"
execute player command "//pos2"
execute player command "//expand {@teren} n"
execute player command "//expand {@teren} e"
execute player command "//expand {@teren} s"
execute player command "//expand {@teren} w"
execute player command "//expand vert"
execute player command "rg define %player%"
execute player command "rg flag %player% greeting &8» &7Wchodzisz na teren gracza &a%player%"
execute player command "rg flag %player% farewell &8» &7Opuszczasz teren gracza &a%player%"
execute player command "rg flag %player% creeper-explosion deny"
execute player command "rg flag %player% mob-damage deny"
execute player command "rg flag %player% mob-spawning deny"
execute player command "rg flag %player% pvp deny"
execute player command "/rg addowner %player% %player%"
execute player command "//pos1"
execute player command "//pos2"
set {cuboida.%player%} to true
make console execute command "pex user %player% remove worldguard.*"
make console execute command "pex user %player% remove worldedit.*"
make console execute command "pex user %player% add teren.lider"
wait 1 tick
loop 99 times:
send ""
send "&8» &7Teren zostal zalozony!"
stop
else:
set block to air
wait 1 tick
drop 1 jukebox named "&6Zabezpieczenie działki" with lore "&8» Postaw na ziemi, aby użyć" at event-block
send "&8» &7Już posiadasz dzialke"
on mine of jukebox:
player has permissions "teren.lider":
make console execute command "rg remove -w %world of player% %player%"
send "&8» &3Teren zostal usuniety !"
set {cuboida.%player%} to false
stop
Odnośnik do komentarza
Udostępnij na innych stronach
4 odpowiedzi na to pytanie
Rekomendowane odpowiedzi