Skip to content

Variable: times methods

Misat11 edited this page May 9, 2020 · 3 revisions

times-methods

This variable will modify clones generated with variable times.

  1. cancel-positioning - The second item and the next items will lose all positioning variables
  2. no-id - The seond item and the next items will lose id variable

Yaml:

- stack: STONE
  id: myStone # this will be removed for next items
  skip: 6 # this will stay here
  times: 6
  times-methods: no-id

You can also use all these methods for one item:

- stack: DIRT
  id: myDirt # this will be removed for next items
  skip: 6 # this will be removed for next items
  times: 7
  times-methods:
  - no-id
  - cancel-positioning

Groovy:

item('STONE') {
  id 'myStone' // this will be removed for next items
  skip(6) // this will stay here
  times(6)
  timesMethods 'no-id'
}

You can also use all these methods for one item:

item('DIRT') {
  id 'myDirt' // this will be removed for next items
  skip(6) // this will be removed for next items
  times(7)
  timesMethods(['no-id', 'cancel-positioning'])
}
Clone this wiki locally