You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/java/com/dumptruckman/chestrestock/DefaultLootConfig.java
+3-4Lines changed: 3 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -35,14 +35,13 @@ class DefaultLootConfig implements LootConfig {
35
35
+ nl + "chance - the chance at which the section will be picked (as a fraction: 0.25 == 25%). default: 1"
36
36
+ nl + "rolls - the number of times the section will be considered. default: 1"
37
37
+ nl + "split (true/false) - if true, chance will be used as section weight and only 1 section will be picked. default: false"
38
-
+ nl + "id - the item id (number). default: none"
39
-
+ nl + "data - the item data value (number). default: none"
38
+
+ nl + "id - the item id (See https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Material.html for possibilities). default: none"
39
+
+ nl + "damage - the amount the item has been damaged. -1 for unbreakable item. default: 0"
40
40
+ nl + "amount - the amount of the item. default: 1"
41
41
+ nl + "==================="
42
42
+ nl + "enchant - This indicates there is an enchantment for the item selected for this section. The following values must be defined under enchant:"
43
-
+ nl + "name - the name of the enchantment. default: none. (possible values: http://jd.bukkit.org/apidocs/org/bukkit/enchantments/Enchantment.html)"
43
+
+ nl + "name - the name of the enchantment. default: none. (possible values: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/enchantments/Enchantment.html)"
44
44
+ nl + "level - the level of the enchantment. Negative values indicate random level from 1 to -level. default: 1"
45
-
+ nl + "safe - whether or not to only allow safe enchantments. default: true. This means only appropriate enchantment/level for the item."
46
45
+ nl + "PLEASE NOTE: The enchant section can have all the normal properties but cannot indicate items. This means, you can do random sets of enchants!"
47
46
+ nl + "Refer to loot_example.yml for a complete example!");
0 commit comments