enchantの値を構文で完結させたい?
pr環境1.20.6です
現在 ツールにsharpnessのエンチャントを変数分つける場合
evaluateを使って数値を指定してるのですが
構文で数値を指定したいです
現在
evaluate "add sharpness %{_n}% to enchantments of player's tool"
理想
add sharpness {_n} to enchantments of player's tool
(このままだとエラーが出てしまう)
8 Replies
エラーの内容がないとできないよう
たぶんnumber何とかエラーな気がするけど
soredesu
スクショを取ってきます
add sharpness {_n} parsed as integer to enchantments of player's tool
で行けんじゃね?

エラー両方同じです
skUnity Forums
Solved - having problem giving random enchantment level
set {_sharpness} to random integer between 0 and 5
set {_enc1} to "sharpness" parsed as enchantment
give player wooden sword with enchantment "%{_enc1}% %{_sharpness}%" parsed as enchantment type
this won't work help me please
error
Line 13: (random weapon.sk)
[11:56:01] [Server thread/INFO]...
ありがとうございます