Skip to content

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
minecraft.ore_dict
minecraft.oredict
minecraft.oreDict
minecraft.OreDict
minecraft.ore_dictionary
minecraft.oredictionary
minecraft.oreDictionary
minecraft.OreDictionary
Minecraft.ore_dict
Minecraft.oredict
Minecraft.oreDict
Minecraft.OreDict
Minecraft.ore_dictionary
Minecraft.oredictionary
Minecraft.oreDictionary
Minecraft.OreDictionary
vanilla.ore_dict
vanilla.oredict
vanilla.oreDict
vanilla.OreDict
vanilla.ore_dictionary
vanilla.oredictionary
vanilla.oreDictionary
vanilla.OreDictionary
Vanilla.ore_dict
Vanilla.oredict
Vanilla.oreDict
Vanilla.OreDict
Vanilla.ore_dictionary
Vanilla.oredictionary
Vanilla.oreDictionary
Vanilla.OreDictionary
mods.mc.ore_dict
mods.mc.oredict
mods.mc.oreDict
mods.mc.OreDict
mods.mc.ore_dictionary
mods.mc.oredictionary
mods.mc.oreDictionary
mods.mc.OreDictionary
mods.minecraft.ore_dict
mods.minecraft.oredict
mods.minecraft.oreDict
mods.minecraft.OreDict
mods.minecraft.ore_dictionary
mods.minecraft.oredictionary
mods.minecraft.oreDictionary
mods.minecraft.OreDictionary

Adding Entries

  • Adds the given itemstack to the given oredict:

    groovy
    ore_dict.add(String, Block)
  • Adds the given itemstack to the given oredict:

    groovy
    ore_dict.add(String, Item)
  • Adds the given itemstack to the given oredict:

    groovy
    ore_dict.add(String, ItemStack)
Example
groovy
ore_dict.add('ingotGold', item('minecraft:nether_star'))
ore_dict.add('netherStar', item('minecraft:gold_ingot'))

Removing Entries

  • Removes all itemstacks from the given oredict:

    groovy
    ore_dict.clear(String)
  • Removes the given itemstack from the given oredict:

    groovy
    ore_dict.remove(String, ItemStack)
  • Removes all itemstacks from the given oredict:

    groovy
    ore_dict.removeAll(String)
  • Removes all itemstacks from all oredicts:

    groovy
    ore_dict.removeAll()
Example
groovy
ore_dict.clear('plankWood')
ore_dict.remove('netherStar', item('minecraft:nether_star'))
ore_dict.removeAll('ingotIron')
ore_dict.removeAll()

Getting the value of entries

  • Returns true if the given oredict exists, although this does not check if the oredict contains entries:

    groovy
    ore_dict.exists(String)
  • Returns a list of all itemstacks in the given oredict:

    groovy
    ore_dict.getItems(String)

Contributors

© 2024 CleanroomMC. All Rights Reserved.