amitay12123

Untitled

Sep 6th, 2019
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.93 KB | None | 0 0
  1. MineCrates 2.10.0 configuration file
  2. #Created by: extended_clip
  3.  
  4.  
  5. #area_handler: World / WorldGuard / MRL / PrisonMines
  6. #area_handler is the name of the hook you want to define crate areas for
  7. #Crate areas are tied to the name of the world / mine / region you choose
  8. #depending on the hook you use.
  9.  
  10. #crate_despawn_time: <time in seconds that crates will despawn after spawning>
  11.  
  12. #crate_material: <Material or ID of the crate block that is spawned>
  13.  
  14. #crate_inventory_name: <name of the inventory shown when the crate is opened>
  15.  
  16. #==================================================
  17.  
  18. #Crate area configuration:
  19.  
  20. #Almost all entries in areas are optional
  21. #although you must have a drop_counter and drop_chance entry.
  22. #You must also have a rewards section with at least 1 valid reward list for the area to be loaded.
  23.  
  24. areas:
  25. Mines:
  26. permission:
  27. drop_counter: 300
  28. drop_chance: 100
  29. alternate_areas:
  30. - world_nether
  31. - world_the_end
  32. counted_materials:
  33. reward_on_break: false
  34. rewards:
  35. normal:
  36. priority: 1
  37. permission:
  38. max_rewards_per_crate: 1
  39. only_owner_can_open: true
  40. crate_spawn_actions:
  41. - [msg] You found a crate
  42. - [command] eco give @p 10000000
  43. - [playersound] ANVIL_LAND 10 1
  44. - [effect] helix
  45. crate_open_actions:
  46. - [msg] You opened a MineCrate!
  47. - [playersound] CHEST_OPEN 10 1
  48. - [effect] atom
  49. crate_despawn_actions:
  50. - [msg] You missed your crate
  51. - [worldsound] ANVIL_BREAK 10 1
  52. - [effect] heart
  53. items:
  54. normal:
  55. chance: 10
  56. item:
  57. material: DIAMOND_PICKAXE
  58. data: 0
  59. amount: 1
  60. name: '&a&lLucky&f&lPickaxe'
  61. lore:
  62. enchantments:
  63. - DIG_SPEED,35
  64. - DURABILITY,25
  65. - LOOT_BONUS_BLOCKS,35
  66. chance: 10
  67. commands:
  68. (unique name for this command reward):
  69. chance: 10
  70. commands:
  71. - [command] crate key @p fallingstarcrate 1
  72. - [msg] you got a FallingStar crate key!
  73. commands:
  74. (unique name for this command reward):
  75. chance: 10
  76. commands:
  77. - [command] crate key @p solarcrate 1
  78. - [msg] you got a Solar crate key!
  79. commands:
  80. (unique name for this command reward):
  81. chance: 10
  82. commands:
  83. - [command] crate key @p votecrate 1
  84. - [msg] you got a Vote crate key!
  85. commands:
  86. (unique name for this command reward):
  87. chance: 10
  88. commands:
  89. - [command] eco give @p 10000000
  90. - [msg] you got 10Mil$!
  91. chance: 10
  92. commands:
  93. - [command] eco give @p 15000000
  94. - [msg] you got 15Mil$!
  95. chance: 10
  96. commands:
  97. - [command] eco give @p 20000000
  98. - [msg] you got 20Mil$!
  99. chance: 10
  100. commands:
  101. - [command] eco give @p 25000000
  102. - [msg] you got 25Mil$!
  103. chance: 10
  104. commands:
  105. - [command] voucher give sunkit 1 @p
  106. - [msg] you got a Sun kit voucher!
  107. chance: 10
  108.  
  109. ==================================================
  110.  
  111. CRATE SPAWN CHANCE INFORMATION
  112.  
  113. This chance can be any double value from 0.01 to 100.0
  114. it is percentage based, so if you set the chance to 10.0
  115. there will be a 10% chance a crate will spawn when the break
  116. counter reaches 0. If you set it to 99.0, there will be a 99% chance
  117. that a crate will spawn when the counter rewaches 0.
  118.  
  119. ==================================================
  120.  
  121. REWARD CHANCE INFORMATION
  122.  
  123. All rewards in a specific reward list have a chance associated with the item/commands that are executed for that reward.
  124. All reward chances in a list must add up to or be less than 100.0
  125. Example:
  126.  
  127. rewards:
  128. VIP_REWARDS:
  129. priority: 1
  130. permission: vip.rewards
  131. max_rewards_per_crate: 1
  132. only_owner_can_open: true
  133. items:
  134. item_1:
  135. chance: 10.0
  136. item:
  137. material: DIAMOND
  138. amount: 128
  139. item_2:
  140. chance: 15.0
  141. item:
  142. material: IRON_INGOT
  143. amount: 64
  144. item_3:
  145. chance: 25.0
  146. item:
  147. material: DIRT
  148. amount: 64
  149. command_1:
  150. chance: 25.0
  151. commands:
  152. - [command] eco give @p 25
  153. - [msg] You got 25 bucks
  154.  
  155. With this example, all of our chances add up to 75.0,
  156. This means that there is a 25% chance that we get nothing each time a reward is
  157. being selected. If we want to make sure players always get a reward, we could
  158. simply add one more reward item or command with the remainder percentage for all of our
  159. chances to equal 100.0, which would be 25.0.
  160. This system allows you to set what items are rare, and which items are going to be
  161. more commonly selected when the plugin chooses rewards.
  162. Always keep in mind that all reward chances must be less than, or add up to 100.0
  163. If your combined chance exceeds 100.0, the rewards that are being checked after 100.0 has
  164. been reached will not be loaded. Also remember, to make it where a player has a chance to get
  165. no reward, always leave the total chance less than 100.0 as all chance remaining will
  166. be the chance amount that no reward is chosen.
  167.  
  168. ==================================================
  169.  
  170. CRATE SPAWN/DESPAWN/OPEN/COMMANDS ACTION IDENTIFIERS
  171.  
  172. Any action added to these lists must contain a specific identifier
  173. as there are more actions than just commands to be executed.
  174. These actions are as follows:
  175.  
  176. [msg] <message>
  177. This will send a raw message to the target player
  178.  
  179. [broadcast] <message>
  180. This will broadcast a message to the entire server
  181.  
  182. [command] <command here>
  183. This will execute a command in the console
  184.  
  185. [worldsound] <sound> <volume> <pitch>
  186. This will play a sound to the entire world at the crate location
  187.  
  188. [playersound] <sound> <volume> <pitch>
  189. This will play a sound to the target player
  190.  
  191. [effect] <effectName>
  192. This will play a preset effect at the crate location
  193.  
  194. effect names:
  195. animatedball
  196. arc
  197. atom
  198. bleed
  199. circle
  200. cloud
  201. cone
  202. cube
  203. cylinder
  204. disco
  205. dna
  206. donut
  207. dragon
  208. earth
  209. explode
  210. flame
  211. fountain
  212. grid
  213. heart
  214. helix
  215. hill
  216. icon
  217. love
  218. music
  219. shield
  220. smoke
  221. sphere
  222. star
  223. tornado
  224. vortex
  225. warp
  226. wave
  227.  
  228. ==================================================
  229.  
  230. Optional: display a temporary hologram above the MineCrate when it is spawned.
  231.  
  232. To enable this feature, add the following entry to the top of your config file:
  233.  
  234. You can either use HolographicDisplays API to display the hologram, or the internal
  235. hologram mechanics. Set handler: none to disable holograms
  236.  
  237. Note: the internal hologram handler is only available for 1.8.8
  238. More hologram handlers will be coming soon.
  239.  
  240. crate_hologram:
  241. handler: none/internal/holographicdisplays
  242. message:
  243. - '%player%s MineCrate'
  244. - '(Right click to open)
  245. height: 2'
  246.  
  247. Inside of the message, you can use the following placeholders:
  248. %player% - shows players name who MineCrate is for
  249. %area% - name of the area the crate spawned in
  250. %rewardlist% - name of the list the rewards were chosen from
  251. %rewards% - amount of rewards inside of the MineCrate
  252.  
  253. ==================================================
  254.  
  255. crate_hologram:
  256. handler: none
  257. message:
  258. - '&f%player%''s &aMineCrate'
  259. - '&e(&7Right click to open&e)'
  260. height: 2.2
  261. check_updates: true
  262. area_handler: World
  263. ignore_silk_touch: true
  264. crate_despawn_time: 30
  265. crate_material: ENDER_CHEST
  266. crate_inventory_name: '%reward_list_name% &aMineCrate'
  267. messages:
  268. help:
  269. - '&aMineCrates &fhelp'
  270. - '&a/minecrates reload &7- &freload the plugin'
  271. - '&a/minecrates info &7- &fView minecrates information for the area you are standing'
  272. - '&a/minecrates ignore &7- &ftoggle on/off ignoring minecrates for yourself'
  273. ignore_toggle_on: '&aYou are now ignoring MineCrates!'
  274. ignore_toggle_off: '&fYou are no longer ignoring MineCrates!'
  275. only_owner_can_open_crate: '&cOnly &f@p &ccan open this &aMineCrate!'
  276. no_permission: '&cYou don''t have permission to do that!'
  277. areas:
  278. Mines:
  279. permission: minecrates.getcrates.world
  280. drop_counter: 100
  281. drop_chance: 50.0
  282. cooldown: 30
  283. counted_materials:
  284. - COAL_ORE
  285. - IRON_ORE
  286. - GOLD_ORE
  287. - DIAMOND_ORE
  288. rewards:
  289. vip:
  290. priority: 1
  291. permission: minecrates.rewards.world.vip
  292. max_rewards_per_crate: 1
  293. only_owner_can_open: true
  294. crate_spawn_actions:
  295. - '[message] &aYou found a VIP MineCrate!'
  296. - '[command] eco give @p 100'
  297. - '[broadcast] &f@p &afound a MineCrate!'
  298. - '[effect] helix'
  299. crate_despawn_actions:
  300. - '[message] &7Your crate has despawned!'
  301. - '[effect] helix'
  302. items:
  303. example_item:
  304. chance: 20.0
  305. item:
  306. material: DIAMOND
  307. data: 0
  308. amount: 64
  309. name: '&bVIP &3Diamonds'
  310. lore:
  311. - This item is only available to players who
  312. - have permission for this vip reward list!
  313. enchantments:
  314. - LUCK,1
  315. example_command_1:
  316. chance: 1.0
  317. commands:
  318. - '[command] eco give @p 1000000'
  319. - '[msg] You got 1000000 dollars!'
  320. example_command_2:
  321. chance: 30.0
  322. commands:
  323. - '[command] eco give @p 500'
  324. - '[msg] You got 500 dollars!'
  325. example_command_3:
  326. chance: 49.0
  327. commands:
  328. - '[command] eco give @p 1000'
  329. - '[msg] You got 1000 dollars!'
  330. default:
  331. priority: 2
  332. max_rewards_per_crate: 1
  333. only_owner_can_open: false
  334. crate_spawn_actions:
  335. - '[message] &aYou found a regular MineCrate!'
  336. - '[command] eco give @p 100'
  337. - '[broadcast] &f@p &afound a MineCrate!'
  338. - '[effect] helix'
  339. items:
  340. example_item_1:
  341. chance: 5.0
  342. item:
  343. material: DIAMOND
  344. amount: 16
  345. example_item_2:
  346. chance: 10.0
  347. item:
  348. material: IRON_INGOT
  349. amount: 32
  350. example_command:
  351. chance: 85.0
  352. commands:
  353. - '[command] eco give @p 250'
  354. - '[msg] You got 250 dollars!'
Advertisement
Add Comment
Please, Sign In to add comment