Code (YAML):
Default-3:
Name
: '&c&lRandomStringDescription'
# Set durability to 0
ID
: 359:<0
Lore
:
- ''
- '&4&l!!! The following content is mainly based on configuration files !!!'
- ''
-
"&e&l'&c&l<>&e&l' Non-Substitute Variables Required '&c&l$&e&l' Escape"
- '&7Format
: $<1:Content> or <Content>'
- '&7ForExample
: $<s:DefaultPrefix> or <DefaultPrefix>'
- ''
- '&e&lRandomType:'
- '&cb - &7WholeLineJudgment&r
[<b:Match:String1:String2:String3:String4>
] This line was deleted because
no matching word is the same as the matching name'
- '&cb - &7WholeLineJudgment&r
[<b:<l:Quality>:Epic:Excellent:Ordinary>
]'
- '&ct - &7TimeFormat&r
[<t:1Y1M1D1h1m1s>
]'
- '&cc - &7Calculator&r
[<c:
(
(2*3
) + 2
) * 1.4>
]
[<c:int
(
(2*3
) + 2
) * 1.4>
]'
- '&cl - &7LockRandom&r
[<l:Quality>
]
[<l:EASY
#AAA:BBB:CCC>]'
- '&cs - &7NormalRandom&r
[<s:<s:Quality>NmColor>♦&r
]
[<s:AAA:BBB:CCC>
]'
- '&cd - &7DecimalRandom&r
[<d:2.3_6>
]'
- '&ci&7/&cr - &7IntegerRandom&r
[<i:1_7>
]'
- '&cu - &7UUIDRandom&r
[<u:random>
]'
- '&cj - &7ScriptProcessing&r
[<j:Default.itemScript
#QAQ,QWQ,???,!!!>]'
- ''
-
"&eLocal Variables call Global Variables ~"
-
"&c ~ &7 represents &4null&7 in yml"
- '&7Override Global Result -> <s:DefaultPrefix>'
- '&7Global and Local mixed Result -> <s:DefaultLore>'
- ''
- 'Variables that do not exist delete the row
: <s:DoesNotExist>'
- '&r↑here s a line that s been eaten'
Random:
DefaultPrefix
:
"Prefix"
DefaultLore
:
# 33% probability random to Lore, 66% probability random to global variable
- 1
:
"Lore"
- 2
: ~