v1.0.3
  • GitHub

Navigation

  • Home
  • Getting Started
    • Scripting
    • Tutorial - First Script
    • Tutorial - For Loops
  • Commands
    • enchant
    • fluid
    • hand
    • inventory
    • ore
    • recipe
    • te (Thermal Expansion)
  • Actions
    • Vanilla
      • furnace
      • recipes
    • Just Enough Items
      • jei
    • Thermal Expansion
      • Devices
        • te.collector
        • te.coolant
        • te.diffuser
        • te.factorizer
        • te.fisher
        • te.tapper
      • Machines
        • te.compactor
        • te.crucible
        • te.furnace
        • te.insolator
        • te.pulverizer
        • te.sawmill
        • te.smelter
  • Arguments
    • all
    • boolean
    • float
    • fluid
    • ingredient
    • integer
    • item
      • Argument
      • Modifiers
    • null
    • ore
    • string
  • Roadmap
  • Changelog

item

An item can be used to specify any minecraft item or block.

An item is a type of ingredient and can therefore be used as one in any argument.

Note

The hand command can be used to easily get the resourceLocation of an item.

Argument

An item is specified using the “item” keyword.

item(resourceLocation)

Example

#creates an item of type diamond
item(minecraft:diamond)


Modifiers

Count

Specifies the number of the the item, by default this is 1.

.count(amount)
.c(amount)


Meta

Specifies the metadata value assigned to the item.

.meta(value)
.m(value)


NBT

Specifies any NBT information assigned to the item.

.nbt(value)
.n(value)


Enchant

Helper that can assign an enchantment to the item.

.enchant(name:level)
.e(name:level)

Example

#adds the Protection 4 enchantment to a diamond sword
item(minecraft:diamond_sword).enchant(minecraft:protection:4)
Built with MkDocs. Theme created by MinecraftForge. Hosted by Read the Docs.