For the modifiers to work, they need to be specified separate per 1 modifier.
Be aware that the modifiers need to be able to be allied in the game itself for this trick to work! You cannot bypass 2 modifiers that lock each other out with this!
For example, to apply a total of 150 redstone to a tool, you have to do it in increments of 50 (the max per modifier) Like so: Option 1 - 3 times 5 x block (9) + 5 x dust:
"nativeModifiers": [
[
"minecraft:redstone_block *5",
"minecraft:redstone *5"
],
[
"minecraft:redstone_block *5",
"minecraft:redstone *5"
],
[
"minecraft:redstone_block *5",
"minecraft:redstone *5"
]
]
Option 2 - 3 times 50 redstone dust:
"nativeModifiers": [
[
"minecraft:redstone *50"
],
[
"minecraft:redstone *50"
],
[
"minecraft:redstone *50"
]
]
Sorts the String array into an array of EnchantmentWithLevel's
The proper json formatting is a string consisting of an enchantment ID and optionally an enchantment level. Like so: "id" or "id level". By default a level of 1 will be assumed
In json:
"nativeEnchantments": [
"id level"
]
Or:
"nativeEnchantments": [
"id"
]