-
-
Notifications
You must be signed in to change notification settings - Fork 3
Variable: times methods
Misat11 edited this page May 9, 2020
·
3 revisions
This variable will modify clones generated with variable times.
- cancel-positioning - The second item and the next items will lose all positioning variables
- 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'])
}
Can't find what are you looking for on this wiki? Maybe our automatically generated javadoc could help you https://docs.screamingsandals.org/simpleinventories/simpleinventories-core/
- Welcome on this wiki
- Formats:
- Variables:
- Callbacks: (Groovy only)
-
Examples:
- Making shop (Groovy only)
- Making vault shop (Groovy only)