PersonTheCat

Ore Properties Advanced Example

Apr 15th, 2018
663
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 1.78 KB | None | 0 0
  1. //Notes:
  2.  
  3. //languageKey does not require "tile." or ".name"
  4. //If this doesn't work for you, you should always try it with those parts, instead.
  5.  
  6. //No meta value is specified anywhere. That's because it always defaults to 0.
  7.  
  8. //"minecraft" isn't explicitly written for either drop. It is the default namespace.
  9.  
  10. //dropRange only has one value. This effectively sets to the min and max drop to 1. The same works for xpRange.
  11. //You can add as many values as you want to these arrays. It will just find the highest and lowest values and use those instead.
  12.  
  13. //Setting "addToDefaultCustomPropertyGroup" to true is the same as setting "addToCustomPropertyGroup" to "custom"
  14. //It is a shorthand method.
  15.  
  16. //"chance" is a double type percentage chance that the additional drop will be selected when the block is broken.
  17. //Whatever you type will actually be divided by 100.
  18.  
  19. //"useBlendedTexture" refers to a second texture style which can now be created by the mod itself. Set it to true if you want your ores to be shaded like BOP or Glass Hearts' ores.
  20.  
  21. {
  22.     "addToDefaultCustomPropertyGroup" : false,
  23.     "addToCustomPropertyGroup" : "minecraft",
  24.     "originalTexture" : "assets/minecraft/textures/blocks/coal_ore.png",
  25.     "backgroundMatcher" : "assets/minecraft/textures/blocks/stone.png",
  26.     "useBlendedTexture" : true,
  27.     "languageKey" : "oreCoal",
  28.     "hardness" : 3.0F,
  29.     "harvestLevel" : 0,
  30.     "lightLevel" : 0F,
  31.     "drop" : "coal",
  32.     "dropSilkTouch" : "coal_ore",
  33.     "dropRange" : [1],
  34.     "xpRange" : [0, 2],
  35.     "additionalDropKeys" : ["poisonousPotato", "extraDiamond"],
  36.  
  37.     "poisonousPotato" :
  38.     {
  39.         "drop" : "poisonous_potato",
  40.         "dropRange" : [1],
  41.         "xpRange" : [100000],
  42.         "chance" : 5.0
  43.     },
  44.  
  45.     "extraDiamond" :
  46.     {
  47.         "drop" : "diamond",
  48.         "dropRange" : [1],
  49.         "xpRange" : [3, 7],
  50.         "chance" : 25.0
  51.     }
  52. }
Advertisement
Add Comment
Please, Sign In to add comment