Skip to content

Variable: clone

Misat11 edited this page May 9, 2020 · 6 revisions

clone

This property can clone another item variables to your item!

There are three types:

  1. previous - This clones previous item.
  2. $id - This clones item with id. Item with id must be created before this!
  3. cosmetic - This clones cosmetic itemstack. This ItemStack is parameter for StaticGuiCreator.

Yaml:

- stack: ...
- clone: previous
  items:
  - ...

You can also clone cosmetic with this short format:

...
- STONE
- cosmetic # <---
- STONE
...

Groovy:

...
item('STONE')
itemClone('previous') {
  /* items */
}
cosmetic()
item('STONE')
...
Clone this wiki locally