· 6 years ago · Sep 27, 2019, 01:42 AM
1# MineCrates 2.4 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# (region, mine, or world name):
26# permission: (if you want players to have a certain permission to obtain crates in this area, add the permission node here)
27# drop_counter: (how many blocks need to be broken before a crate has a chance to spawn)
28# drop_chance: (what is the chance out of 100.0 that a crate will spawn when the counter reaches 0)
29# alternate_areas:
30# - (if you would like to allow this area options to be used for other areas)
31# - (that way all rewards and options are shared, you can list the alternate area names here)
32# - world_nether
33# - world_the_end
34# counted_materials:
35# - (if you only want to have certain materials count towards the counter)
36# - (you can list them here, otherwise don't add this option)
37# - DIAMOND_ORE
38# - EMERALD_ORE
39# reward_on_break: <true/false> should rewards be given on break of the block instead of spawning a crate
40# rewards: (this section holds all reward related options specific to this area)
41# (name of this reward list):
42# priority: (if you have multiple lists, the lowest priority list will be applied if player has multiple list permissions)
43# permission: (optional if you require players have certain permission to obtain rewards in this list)
44# max_rewards_per_crate: (max amount of rewards a player can get in a crate from this list)
45# only_owner_can_open: (should only the person this crate spawned for be allowed to open it)
46# crate_spawn_actions: (these actions are performed when a crate holding this reward list is spawned)
47# - [msg] You found a crate
48# - [broadcast] @p found a crate
49# - [command] eco give @p 100
50# - [playersound] ANVIL_LAND 10 1
51# - [worldsound] ANVIL_BREAK 10 1
52# - [effect] helix
53# crate_open_actions: (these actions are performed when a crate holding this reward list is opened)
54# - [msg] You opened a MineCrate!
55# - [broadcast] @p opened a crate
56# - [playersound] CHEST_OPEN 10 1
57# - [effect] atom
58# crate_despawn_actions: (these actions are performed when a crate holding this reward list is despawned if it was not opened)
59# - [msg] You missed your crate
60# - [worldsound] ANVIL_BREAK 10 1
61# - [effect] heart
62# items: (this section holds all of the actual commands / items given as rewards)
63# (unique name for this item reward):
64# chance: (chance this reward will be selected) the chance system is explained below...
65# item: (if this reward is an itemstack, you must specify 'item:' here, otherwise you will specify 'commands:')
66# material: (if this is an item, these are the item options you can use)
67# data: (data value if needed)
68# amount: (amount of this item to give)
69# name: (display name to set on this item)
70# lore:
71# - (add your lore here if you want)
72# - (supports multiple lines)
73# enchantments:
74# - <ENCHANTMENT NAME>,<LEVEL>
75# (unique name for this command reward):
76# chance: 50.0
77# commands:
78# - (list all your commands here, they must start with a valid action identifier)
79# - [command] eco give @p 100
80# - [msg] you got 100 bucks!
81# ==================================================
82#
83# CRATE SPAWN CHANCE INFORMATION
84#
85# This chance can be any double value from 0.01 to 100.0
86# it is percentage based, so if you set the chance to 10.0
87# there will be a 10% chance a crate will spawn when the break
88# counter reaches 0. If you set it to 99.0, there will be a 99% chance
89# that a crate will spawn when the counter rewaches 0.
90#
91# ==================================================
92#
93# REWARD CHANCE INFORMATION
94#
95# All rewards in a specific reward list have a chance associated with the item/commands that are executed for that reward.
96# All reward chances in a list must add up to or be less than 100.0
97# Example:
98#
99# rewards:
100# VIP_REWARDS:
101# priority: 1
102# permission: vip.rewards
103# max_rewards_per_crate: 1
104# only_owner_can_open: true
105# items:
106# item_1:
107# chance: 10.0
108# item:
109# material: DIAMOND
110# amount: 128
111# item_2:
112# chance: 15.0
113# item:
114# material: IRON_INGOT
115# amount: 64
116# item_3:
117# chance: 25.0
118# item:
119# material: DIRT
120# amount: 64
121# command_1:
122# chance: 25.0
123# commands:
124# - [command] eco give @p 25
125# - [msg] You got 25 bucks
126#
127# With this example, all of our chances add up to 75.0,
128# This means that there is a 25% chance that we get nothing each time a reward is
129# being selected. If we want to make sure players always get a reward, we could
130# simply add one more reward item or command with the remainder percentage for all of our
131# chances to equal 100.0, which would be 25.0.
132# This system allows you to set what items are rare, and which items are going to be
133# more commonly selected when the plugin chooses rewards.
134# Always keep in mind that all reward chances must be less than, or add up to 100.0
135# If your combined chance exceeds 100.0, the rewards that are being checked after 100.0 has
136# been reached will not be loaded. Also remember, to make it where a player has a chance to get
137# no reward, always leave the total chance less than 100.0 as all chance remaining will
138# be the chance amount that no reward is chosen.
139#
140# ==================================================
141#
142# CRATE SPAWN/DESPAWN/OPEN/COMMANDS ACTION IDENTIFIERS
143#
144# Any action added to these lists must contain a specific identifier
145# as there are more actions than just commands to be executed.
146# These actions are as follows:
147#
148# [msg] <message>
149# This will send a raw message to the target player
150#
151# [broadcast] <message>
152# This will broadcast a message to the entire server
153#
154# [command] <command here>
155# This will execute a command in the console
156#
157# [worldsound] <sound> <volume> <pitch>
158# This will play a sound to the entire world at the crate location
159#
160# [playersound] <sound> <volume> <pitch>
161# This will play a sound to the target player
162#
163# [effect] <effectName>
164# This will play a preset effect at the crate location
165#
166# effect names:
167# animatedball
168# arc
169# atom
170# bleed
171# circle
172# cloud
173# cone
174# cube
175# cylinder
176# disco
177# dna
178# donut
179# dragon
180# earth
181# explode
182# flame
183# fountain
184# grid
185# heart
186# helix
187# hill
188# icon
189# love
190# music
191# shield
192# smoke
193# sphere
194# star
195# tornado
196# vortex
197# warp
198# wave
199#
200# ==================================================
201#
202# Optional: display a temporary hologram above the MineCrate when it is spawned.
203#
204# To enable this feature, add the following entry to the top of your config file:
205#
206# You can either use HolographicDisplays API to display the hologram, or the internal
207# hologram mechanics. Set handler: none to disable holograms
208#
209# Note: the internal hologram handler is only available for 1.8.8
210# More hologram handlers will be coming soon.
211#
212# crate_hologram:
213# handler: none/internal/holographicdisplays
214# message:
215# - '%player%s MineCrate'
216# - '(Right click to open)
217# height: 2'
218#
219# Inside of the message, you can use the following placeholders:
220# %player% - shows players name who MineCrate is for
221# %area% - name of the area the crate spawned in
222# %rewardlist% - name of the list the rewards were chosen from
223# %rewards% - amount of rewards inside of the MineCrate
224#
225# ==================================================
226
227crate_hologram:
228 handler: none
229 message:
230 - '&5&kP &d&l%player%''s mine crate &5&kP '
231 - ''
232 - '&fRight click to open'
233 height: 2.2
234check_updates: true
235area_handler: Mines
236ignore_silk_touch: true
237crate_despawn_time: 30
238crate_material: ENDER_CHEST
239crate_inventory_name: '%reward_list_name% &dPrison Crate'
240crate_cooldown:
241 enabled: false
242 time: 60
243messages:
244 help:
245 - '&dMineCrates &fhelp'
246 - '&d/minecrates reload &7- &freload the plugin'
247 ignore_toggle_on: '&dYou are now ignoring MineCrates!'
248 ignore_toggle_off: '&fYou are no longer ignoring MineCrates!'
249 only_owner_can_open_crate: '&cOnly &f@p &ccan open this &dMineCrate!'
250 no_permission: '&cYou don''t have permission to do that!'
251areas:
252 Mines:
253 permission: minecrates.getcrates.world
254 drop_counter: 100
255 drop_chance: 100.0
256 counted_materials:
257 - COAL_ORE
258 - IRON_ORE
259 - GOLD_ORE
260 - DIAMOND_ORE
261 - IRONBLOCK
262 - IRON_BLOCK
263 - REDSTONE_ORE
264 - COAL_BLOCK
265 - REDSTONE_BLOCK
266 - LAPIS_BLOCK
267 - GOLD_BLOCK
268 - DIAMOND_BLOCK
269 - EMERALD_BLOCK
270 - EMERALDBLOCK
271 - DIAMONDBLOCK
272 rewards:
273 vip:
274 priority: 2
275 permission: minecrates.rewards.world.vip
276 max_rewards_per_crate: 1
277 only_owner_can_open: true
278 crate_spawn_actions:
279 - '[message] &dYou found a crate!'
280 - '[effect] helix'
281 crate_despawn_actions:
282 - '[message] &dYour crate has despawned!'
283 - '[effect] helix'
284 items:
285 Money:
286 chance: 7.0
287 commands:
288 - '[command] eco give @p 500000'
289 - '[msg] &dYou found $500000!'
290 Tokens:
291 chance: 7.0
292 commands:
293 - '[command] tokens give @p 100'
294 - '[msg] &dYou found 100 tokens'
295 Key:
296 chance: 7.0
297 commands:
298 - '[command] crate give to @p lunar 1'
299 - '[msg] &DYou found a Lunar key!'
300 Sponge:
301 chance: 7.0
302 commands:
303 - '[command] give @p 19 8'
304 - '[msg] &DYou found 8 Sponges!'
305 Money1:
306 chance: 7.0
307 commands:
308 - '[command] eco give @p 1000000'
309 - '[msg] &DYou found $1000000!'
310 Rankup:
311 chance: 7.0
312 commands:
313 - '[command] crate give to @p rankup 1'
314 - '[msg] &DYou found 1 Rankup key'
315 Tokens1:
316 chance: 7.0
317 commands:
318 - '[command] tokens give @p 50'
319 - '[msg] &DYou found 50 tokens'
320 Tokens2:
321 chance: 7.0
322 commands:
323 - '[command] tokens give @p 25'
324 - '[msg] &DYou found 25 tokens'
325 Golden:
326 chance: 7.0
327 commands:
328 - '[command] give @p 322:1 8'
329 - '[msg] &DYou found 8 Golden Apples'
330 Warden:
331 chance: 7.0
332 commands:
333 - '[command] giveegg @p Warden 1'
334 - '[msg] &DYou found a warden boss'
335 Inmate:
336 chance: 7.0
337 commands:
338 - '[command] eco give @p 50000'
339 - '[msg] &DYou found $50000'
340 Money2:
341 chance: 7.0
342 commands:
343 - '[command] eco give @p 250000'
344 - '[msg] &DYou found a $250000'
345 Beacon1:
346 chance: 7.0
347 commands:
348 - '[command] give @p 138 3'
349 - '[msg] &DYou found 3 beacons'
350 default:
351 priority: 1
352 max_rewards_per_crate: 1
353 only_owner_can_open: true
354 crate_spawn_actions:
355 - '[message] &dYou found a crate!'
356 - '[effect] helix'
357 items:
358 Money:
359 chance: 7.0
360 commands:
361 - '[command] eco give @p 500000'
362 - '[msg] &dYou found $500000!'
363 Tokens:
364 chance: 7.0
365 commands:
366 - '[command] tokens give @p 100'
367 - '[msg] &dYou found 100 tokens'
368 Key:
369 chance: 7.0
370 commands:
371 - '[command] crate give to @p lunar 1'
372 - '[msg] &DYou found a Lunar key!'
373 Sponge:
374 chance: 7.0
375 commands:
376 - '[command] give @p 19 8'
377 - '[msg] &DYou found 8 Sponges!'
378 Money1:
379 chance: 7.0
380 commands:
381 - '[command] eco give @p 1000000'
382 - '[msg] &DYou found $1000000!'
383 Rankup:
384 chance: 7.0
385 commands:
386 - '[command] crate give to @p rankup 1'
387 - '[msg] &DYou found 1 Rankup key'
388 Tokens1:
389 chance: 7.0
390 commands:
391 - '[command] tokens give @p 50'
392 - '[msg] &DYou found 50 tokens'
393 Tokens2:
394 chance: 7.0
395 commands:
396 - '[command] tokens give @p 25'
397 - '[msg] &DYou found 25 tokens'
398 Golden:
399 chance: 7.0
400 commands:
401 - '[command] give @p 322:1 8'
402 - '[msg] &DYou found 8 Golden Apples'
403 Warden:
404 chance: 7.0
405 commands:
406 - '[command] giveegg @p Warden 1'
407 - '[msg] &DYou found a warden boss'
408 Inmate:
409 chance: 7.0
410 commands:
411 - '[command] eco give @p 50000'
412 - '[msg] &DYou found $50000'
413 Money2:
414 chance: 7.0
415 commands:
416 - '[command] eco give @p 250000'
417 - '[msg] &DYou found a $250000'
418 Beacon1:
419 chance: 7.0
420 commands:
421 - '[command] give @p 138 3'
422 - '[msg] &DYou found 3 beacons'