Ore Dictionary (Minecraft)
Description
Manipulate the Ore Dictionary and what itemstacks are part of what oredicts.
Identifier
Refer to this via any of the following:
groovy
ore_dict/* Used as page default */
oredict
oreDict
OreDict
ore_dictionary
oredictionary
oreDictionary
OreDictionary
Adding Recipes
Adds the given oredict to the given oredict:
groovyore_dict.add(String, Block)
Adds the given oredict to the given oredict:
groovyore_dict.add(String, Item)
Adds the given oredict to the given oredict:
groovyore_dict.add(String, ItemStack)
Example
groovy
ore_dict.add('ingotGold', item('minecraft:nether_star'))
ore_dict.add('netherStar', item('minecraft:gold_ingot'))
Removing Recipes
Removes the given itemstack from the given oredict:
groovyore_dict.remove(String, ItemStack)
Removes all itemstacks from the given oredict:
groovyore_dict.clear(String)
Removes all registered recipes:
groovyore_dict.removeAll(String)
Removes all registered recipes:
groovyore_dict.removeAll()
Example
groovy
ore_dict.remove('netherStar', item('minecraft:nether_star'))
ore_dict.clear('plankWood')
ore_dict.removeAll('ingotIron')
ore_dict.removeAll()
Getting the value of recipes
Returns true if the given oredict exists, although this does not check if the oredict contains entries:
groovyore_dict.exists(String)
Returns a list of all itemstacks in the given oredict:
groovyore_dict.getItems(String)