-
-
Notifications
You must be signed in to change notification settings - Fork 3
Variable: define
Misat11 edited this page May 9, 2020
·
4 revisions
This variable can define new placeholders! There are more ways how to use this:
Yaml:
# example definitions
- define: "%myplaceholder% as Hello World"
- define: "%myplaceholder.myparameter.$% as Hello $"
- define: "%myplaceholder.other.$.$% as %otherplaceholder.$.otherparameter.$"
- define %otherplaceholder% as bronze
# usage
- STONE for 1 of %otherplaceholder%
Note that you can't do this:
- define: %placeholder%
stack: STONE # this will be ignored
You must do this:
- define: %placeholder%
- stack: STONE # stack can't have same hyphen as definition
Groovy:
inventory {
// example definitions
define '%myplaceholder% as Hello World'
define '%myplaceholder.myparameter.$% as Hello $'
define '%myplaceholder.other.$.$% as %otherplaceholder.$.otherparameter.$'
define '%otherplaceholder% as bronze'
// usage
item('STONE for 1 of %otherplaceholder%')
}
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)