버전은 1.21.10 인데
command /효율강화:
trigger:
if player's tool is not netherite pickaxe:
send "&c네더라이트 곡갱이를 들어줘라!"
stop
set {_id} to uuid of player
if {eff::%{_id}%} is not set:
set {eff::%{_id}%} to 0
set {_lvl} to {eff::%{_id}%}
if {_lvl} >= 15:
send "&c최대 강화임!"
stop
set {_next} to {_lvl} + 1
set {_cost} to 100000 * (2 ^ ({_next} - 1))
if balance of player < {_cost}:
send "&c돈 부족! 필요: %{_cost}%원"
stop
remove {_cost} from balance of player
set {eff::%{_id}%} to {_next}
apply efficiency {_next} to player's tool
send "&a강화 성공! 효율 %{_next}% / 비용 %{_cost}%"command /효율강화:
trigger:
if player's tool is not netherite pickaxe:
send "&c네더라이트 곡갱이를 들어줘라!"
stop
set {_id} to uuid of player
if {eff::%{_id}%} is not set:
set {eff::%{_id}%} to 0
set {_lvl} to {eff::%{_id}%}
if {_lvl} >= 15:
send "&c최대 강화임!"
stop
set {_next} to {_lvl} + 1
set {_cost} to 100000 * (2 ^ ({_next} - 1))
if balance of player < {_cost}:
send "&c돈 부족! 필요: %{_cost}%원"
stop
remove {_cost} from balance of player
set {eff::%{_id}%} to {_next}
apply efficiency {_next} to player's tool
send "&a강화 성공! 효율 %{_next}% / 비용 %{_cost}%"
밑줄친부분에서 자꾸 오류가 생기는데 어떻게 해야 될까 skbee 애드온 적용상태임.. 계속 안되서 질문 한번 줘본다.
밑줄 친 부분 enchant player's tool with "efficiency %{_next}%" parsed as enchantment type 이렇게 바꿔보셈
고맙다 ㅠㅠㅠ 덕분에 3시간만에 해결됬음
예아 네더라이트 곡갱이 새로운거에 새로운네더라이트곡갱이에 효율인첸트 강화 하려고 시도해봤는데 이미최대강화라고 안되는데 따로 또 초기화시키는 구문좀 알려줄수 있냐?