| 型 | 引数 | 説明 |
|---|---|---|
| int | ID | アイテムID |
| int | TYPE | エンチャントを受け付けるツールのタイプ EnchantType |
| boolean | BOOL | true:設定 false:解除 |
//追加したアイテム(ID:2000)に釣竿のエンチャントがつけられるようにする。 ModPE.setItem(2000, "stick", 0, "test", 1); Item.addCraftRecipe(2000, 1, 0, [3,1,0]); Item.setEnchantType(2000, EnchantType.fishingRod, true);


コメントをかく