Skip to content

Instantly share code, notes, and snippets.

@dries007
Created August 3, 2015 15:11
Show Gist options
  • Save dries007/e59713e040723bfb7489 to your computer and use it in GitHub Desktop.
Save dries007/e59713e040723bfb7489 to your computer and use it in GitHub Desktop.
{
"materials":[
{
"name": "Redstone",
"key": "MCRedstone",
"style": "red",
"resource": "minecraft:redstone_block",
"materialID": 1279,
"durability": 450,
"miningSpeed": 450,
"attack": 1,
"reinforced": 0,
"primaryColor": 16711680,
"value": 1,
"handleModifier": 1,
"stonebound": 1,
"buildParts": true,
"harvestLevel": 3,
"modifiers": 2,
"arrowMass": 0.15,
"ArrowBreakChance": 0,
"bowSpeedMax": 3.5,
"bowDrawSpeed": 5.2,
"nativeModifiers": [
[
"minecraft:redstone_block *5",
"minecraft:redstone *5"
],
[
"minecraft:redstone_block *5",
"minecraft:redstone *5"
],
[
"minecraft:redstone_block *5",
"minecraft:redstone *5"
]
],
"nativeEnchantments": [
"16 3"
]
}
],
"fluids":[
],
"aspects":[
],
"oreBerries":[
],
"smelteryFuels":[
],
"brews":[
]
}

For jaredlll08/JSON-Ables#5

TC Modifiers

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"
	 ]
 ]

Enchants

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"
 ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment