手冊:Level.setDifficulty

出自Minecraft基岩版开发Wiki

語法[編輯]

Level.setDifficulty(par1int);

參數[編輯]

參數一
int型別 難易度
0和平
1簡單
2普通
3困難

效果[編輯]

設定目前遊戲難易度。

Template:ModPE