Minecraft'ta scriptle farm nasıl yapılır?

Furkans343

Decapat
Katılım
3 Ekim 2023
Mesajlar
191
Çözümler
1
Daha fazla  
Cinsiyet
Erkek
Merhaba, öncelikle 1.21.7 purpur kullanıyorum ve istediğim script şu şekilde. Envanterimdeki kendi XP'm kazmamın canı azaldıkça ona otomatik olarak XP basacak ve ben de sabaha kadar AFK bırakabileceğim mantığında bir şey düşündüm ve ChatGPT'ye yazdırdım:

Kod:
every 10 seconds:
 loop all players:
 set {_item} to loop-player's tool.
 if {_item} is diamond pickaxe or netherite pickaxe:
 # Skellett ile enchantment kontrolü:
 if {_item} has enchantment MENDING:
 set {_currentDurability} to durability of {_item}
 set {_maxDurability} to max durability of {_item}
 if {_currentDurability} > 10:
 if loop-player's level > 0:
 damage {_item} by -20
 add -1 levels to loop-player
 send action bar "&a[AutoTamir] &7Kazman 1 seviye ile tamir edildi!" to loop-player

Fakat bu da çalışmayıp hata veriyor. Sanırım hatayı da line 5'te görüyor. Yapabilecek yardımcı olabilecek varsa çok mutlu olurum.
 
Son düzenleyen: Moderatör:
every 10 seconds:
loop all players:
set {_item} to loop-player's tool
if {_item} is diamond pickaxe or {_item} is netherite pickaxe:
if enchantment "MENDING" is on {_item}:
set {_currentDurability} to durability of {_item}
set {_maxDurability} to max durability of {_item}
if {_currentDurability} < {_maxDurability}:
if loop-player's level > 0:
set durability of {_item} to {_currentDurability} + 20
add -1 to loop-player's level
send action bar "&a[AutoTamir] &7Kazman 1 seviye ile tamir edildi!" to loop-player
 
every 10 seconds:
loop all players:
set {_item} to loop-player's tool
if {_item} is diamond pickaxe or {_item} is netherite pickaxe:
if enchantment "MENDING" is on {_item}:
set {_currentDurability} to durability of {_item}
set {_maxDurability} to max durability of {_item}
if {_currentDurability} < {_maxDurability}:
if loop-player's level > 0:
set durability of {_item} to {_currentDurability} + 20
add -1 to loop-player's level
send action bar "&a[AutoTamir] &7Kazman 1 seviye ile tamir edildi!" to loop-player
1752680333542.png
 
every 10 seconds:
loop all players:
set {_item} to loop-player's tool
if {_item} is diamond pickaxe or {_item} is netherite pickaxe:
if {_item} has enchantment "MENDING":
set {_currentDurability} to durability of {_item}
set {_maxDurability} to max durability of {_item}
if {_currentDurability} < {_maxDurability}:
if loop-player's level > 0:
set durability of {_item} to {_currentDurability} + 20
add -1 to loop-player's level
send action bar "&a[AutoTamir] &7Kazman 1 seviye ile tamir edildi!" to lop-player
 

Technopat Haberler

Yeni konular

Geri
Yukarı