Skocz do zawartości

MICHALBEZSKINOW

Użytkownik
  • Ilość zawartości

    1
  • Rejestracja

  • Ostatnia wizyta

Osiągnięcia MICHALBEZSKINOW

Świeżak

Świeżak (1/13)

0

Reputacja

  1. Podstawowe informacje Wersja serwera: paper-26.1.2-66 Wersja Skript:Skript-2.15.2 Dodatki Skript i ich wersje: SkBee-3.24.0 skript-reflect-2.6.3 skript-worldguard-1.0.1 Kod skryptu options: maxCharges: 3 command /dajpieczec: permission: op trigger: set {_item} to beetroot soup named "&4&lPieczęć Krwawego Tropu" set lore of {_item} to "" and "&8Gdy pierwsze wilki opuściły Czarny Las," and "&8ziemia nasiąkła krwią zwierzyny." and "" and "&8Od tamtej pory Pieczęć wybiera" and "&8tych, którzy odważą się polować." and "" and "&4☠ &cRozpocznij łowy oznaczając swoją ofiarę &4☠" and "" and "&8» &7Ładunki: &a{@maxCharges}" and "&8» &7Status: &aGotowa" set nbt tag "charges" of player's tool to 3 give {_item} to player on right click with beetroot soup: if name of player's tool is not "&4&lPieczęć Krwawego Tropu": stop if clicked player is not set: if {hunt.cooldown.%uuid of player%} is set: if difference between {hunt.cooldown.%uuid of player%} and now is greater than 0 seconds: stop send action bar "&cKliknij gracza, aby rozpocząć łowy." to player stop set {_target} to clicked player delete {_legendary} loop all items in {_target}'s inventory: if "%lore of loop-item%" contains "LEGENDARNY PRZEDMIOT": set {_legendary} to true stop loop if {_legendary} is not set: send title "☠" with subtitle "&7Niestety, ten gracz nie posiada &4Legendarnego Przedmiotu." to player stop # Cooldown pieczęci set {_id} to uuid of player if {hunt.cooldown.%{_id}%} is set: if difference between {hunt.cooldown.%{_id}%} and now is greater than 0 seconds: set {_left} to "%difference between {hunt.cooldown.%uuid of player%} and now%" replace all "hours" with "h" in {_left} replace all "hour" with "h" in {_left} replace all "minutes" with "m" in {_left} replace all "minute" with "m" in {_left} replace all " and " with " " in {_left} set {_left::*} to {_left} split at " " set {_left} to "%{_left::1}% %{_left::2}%" send title "☠" with subtitle "&7Niestety &8• &7Ponownie możesz użyć &4&lPieczęci Krwawego Tropu &7za &f%{_left}%" to player play sound "block.beacon.deactivate" to player stop # Cooldown celu set {_tid} to uuid of {_target} if {hunt.marked.%{_tid}%} is set: if difference between {hunt.marked.%{_tid}%} and now is greater than 0 seconds: send "&4&lPIECZĘĆ KRWAWEGO TROPU &8» &cTen gracz jest chroniony po ostatnim polowaniu!" to player stop if {hunt.active.%uuid of player%} is set: send "&cJuż uczestniczysz w polowaniu!" to player stop if {hunt.active.%uuid of {_target}%} is set: send "&cTen gracz już uczestniczy w polowaniu!" to player stop send "&4&lPIECZĘĆ KRWAWEGO TROPU &8» &cRozpoczęto Polowanie na %name of {_target}%!" to player startHunt(player, clicked player) send title "&4☠ Ktoś podjął Twój trop..." to {_target} play sound "entity.wolf.growl" to {_target} set {hunt.target.%uuid of player%} to "%uuid of {_target}%" set {hunt.active.%uuid of player%} to true # Ustawienie cooldownu pieczęci set {hunt.cooldown.%uuid of player%} to now add 6 hours to {hunt.cooldown.%uuid of player%} # Ustawienie ochrony celu set {hunt.marked.%uuid of {_target}%} to now add 6 hours to {hunt.marked.%uuid of {_target}%} send title "&4&lROZPOCZĘTO POLOWANIE" with subtitle "&c%name of {_target}% stał się Zwierzyną" to player # NBT CHARGES (TU JEST KLUCZ) set {_charges} to nbt tag "charges" of player's tool if {_charges} is not set: set {_charges} to {@maxCharges} remove 1 from {_charges} # UPDATE NBT set data tag "charges" of player's tool to {_charges} # UPDATE LORE (tylko UI) set lore of player's tool to "" and "&8Gdy pierwsze wilki opuściły Czarny Las," and "&8ziemia nasiąkła krwią zwierzyny." and "" and "&8Od tamtej pory Pieczęć wybiera" and "&8tych, którzy odważą się polować." and "" and "&4☠ &cRozpocznij łowy oznaczając swoją ofiarę &4☠" and "" and "&8» &7Ładunki: &a%{_charges}%" and "&8» &7Cooldown: &a6h" # BRAK ŁADUNKÓW = ZNISZCZENIE + COOLDOWN if {_charges} <= 0: set player's tool to air play sound "entity.item.break" to player send title "&7&lPIECZĘĆ ZUŻYTA" with subtitle "&7Twoja &4&lPieczęć Krwawego Tropu &7rozpadła się." to player stop on held item change: wait 2 ticks if player's tool is not beetroot soup: stop if name of player's tool is not "&4&lPieczęć Krwawego Tropu": stop set {_lore::*} to lore of player's tool set {_charges} to {@maxCharges} set {_line} to "" loop {_lore::*}: if loop-value contains "Ładunki:": set {_line} to loop-value if {_line} is set: replace all "&8» &7Ładunki: &a" with "" in {_line} replace all "&8» &7Ładunki: &c" with "" in {_line} set {_charges} to {_line} parsed as integer if {hunt.cooldown.%uuid of player%} is set: if difference between {hunt.cooldown.%uuid of player%} and now is greater than 0 seconds: set {_left} to "%difference between {hunt.cooldown.%uuid of player%} and now%" replace all "hours" with "h" in {_left} replace all "hour" with "h" in {_left} replace all "minutes" with "m" in {_left} replace all "minute" with "m" in {_left} replace all " and " with " " in {_left} set {_left::*} to {_left} split at " " set {_left} to "%{_left::1}% %{_left::2}%" set lore of player's tool to "" and "&8Gdy pierwsze wilki opuściły Czarny Las," and "&8ziemia nasiąkła krwią zwierzyny." and "" and "&8Od tamtej pory Pieczęć wybiera" and "&8tych, którzy odważą się polować." and "" and "&4☠ &cRozpocznij łowy oznaczając swoją ofiarę &4☠" and "" and "&8» &7Ładunki: &c%{_charges}%" and "&8» &7Status: &c%{_left}%" send title "☠" with subtitle "&7Pozostały czas: &f%{_left}% &8• &7Ponownego użycia ładunków &4&lPieczęci Krwawego Tropu" to player play sound "entity.wolf.howl" to player else: delete {hunt.cooldown.%uuid of player%} set lore of player's tool to "" and "&8Gdy pierwsze wilki opuściły Czarny Las," and "&8ziemia nasiąkła krwią zwierzyny." and "" and "&8Od tamtej pory Pieczęć wybiera" and "&8tych, którzy odważą się polować." and "" and "&4☠ &cRozpocznij łowy oznaczając swoją ofiarę &4☠" and "" and "&8» &7Ładunki: &a%{_charges}%" and "&8» &7Status: &aGotowa" on consume: if event-item is beetroot soup: if name of event-item is "&4&lPieczęć Krwawego Tropu": cancel event send action bar "&cTego nie da się zjeść..." to player command /resethunt [<player>]: permission: op trigger: if arg-1 is set: delete {hunt.cooldown.%uuid of arg-1%} delete {hunt.marked.%uuid of arg-1%} send "&aZresetowano cooldowny gracza %arg-1%." else: delete {hunt.cooldown.%uuid of player%} delete {hunt.marked.%uuid of player%} send "&aZresetowano Twoje cooldowny." Opis problemu Ogolnie to co wkleilem ma brakujace linie z zapisywaniem ladunkow w owej pieczeci Problem? Ladunki z lore sie buguja jesli dodam po uzyciu pieczeci one sie zmieniaja na <none> jesli chcialem dodac linie z nbt Skript ich nie rozpoznaje jakbym nie mial dodatku SkBee mimo ze w logach on sie laduje Jak ladunki mają dzialac? 3>2>1 0 rozwalenie pieczeci Chce zeby sie po prostu nie bugowaly stad chcialem je przeniesc z lore na inna tresc Jest tu chaos i to totalny przepraszam z gory xD dodaj logi z konsoli skbee [SkBee] Loading NBTApi... [12:48:08 INFO]: [SkBee] [NBTAPI] Found Minecraft: 26.1.2.build.66! Trying to find NMS support [12:48:08 INFO]: [SkBee] [NBTAPI] NMS support 'MC26_1' loaded! [12:48:08 INFO]: [SkBee] Successfully loaded NBTApi! [12:48:08 INFO]: [SkBee] NBT Elements successfully loaded [12:48:08 INFO]: [SkBee] Advancement Elements successfully loaded [12:48:08 INFO]: [SkBee] BossBar Elements successfully loaded [12:48:08 INFO]: [SkBee] Bound Elements successfully loaded [12:48:08 INFO]: [SkBee] Damage Source Elements successfully loaded [12:48:08 INFO]: [SkBee] - Do note these elements are in Skript as 'Experimental' [12:48:08 INFO]: [SkBee] - If issues arise, disable this feature and use Skript's elements instead [12:48:08 INFO]: [SkBee] Dialog Elements successfully loaded [12:48:08 INFO]: [SkBee] Fastboard[Adventure] Elements successfully loaded [12:48:08 INFO]: [SkBee] Fishing Elements successfully loaded [12:48:08 INFO]: [SkBee] Game Event Elements successfully loaded [12:48:08 INFO]: [SkBee] Item Component Elements successfully loaded [12:48:08 INFO]: [SkBee] Property Elements successfully loaded [12:48:08 INFO]: [SkBee] RayTrace Elements successfully loaded [12:48:08 INFO]: [SkBee] Recipe Elements successfully loaded [12:48:08 INFO]: [SkBee] Registry Elements successfully loaded [12:48:08 INFO]: [SkBee] Scoreboard Elements successfully loaded [12:48:08 INFO]: [SkBee] Statistic Elements successfully loaded [12:48:08 INFO]: [SkBee] Structure Elements successfully loaded [12:48:08 INFO]: [SkBee] SwitchCase Elements successfully loaded [12:48:08 INFO]: [SkBee] Text Component Elements successfully loaded [12:48:08 INFO]: [SkBee] Tick Manager Elements successfully loaded [12:48:08 INFO]: [SkBee] Villager Elements successfully loaded [12:48:08 INFO]: [SkBee] Virtual Furnace Elements disabled via config [12:48:08 INFO]: [SkBee] World Creator Elements successfully loaded [12:48:08 INFO]: [SkBee] Loaded SkBee (590) elements: [12:48:08 INFO]: [SkBee] - 78 types [12:48:08 INFO]: [SkBee] - 2 structures [12:48:08 INFO]: [SkBee] - 67 events [12:48:08 INFO]: [SkBee] - 60 sections [12:48:08 INFO]: [SkBee] - 76 effects [12:48:08 INFO]: [SkBee] - 265 expressions [12:48:08 INFO]: [SkBee] - 31 conditions [12:48:08 INFO]: [SkBee] - 11 properties [12:48:08 INFO]: [SkBee] Checking for update... [12:48:08 INFO]: [SkBee] Plugin is up to date! [12:48:08 INFO]: [SkBee] Successfully enabled v3.24.0 in 1,03 seconds Dodaje bledy w skrypcie Line 10: (pieczec1.sk) [12:49:03 INFO]: Can't understand this condition/effect: set nbt tag "charges" of player's tool to 3 [12:49:03 INFO]: Line: set nbt tag "charges" of player's tool to 3 [12:49:03 INFO]: [12:49:03 INFO]: Line 95: (pieczec1.sk) [12:49:03 INFO]: Can't understand this expression: 'nbt tag "charges" of player's tool' [12:49:03 INFO]: Line: set {_charges} to nbt tag "charges" of player's tool [12:49:03 INFO]: [12:49:03 INFO]: Encountered 2 errors while reloading pieczec1.sk! (251ms)
×
×
  • Dodaj nową pozycję...