SupplyDrop
plugin requested by EvilDude221.
Simply download this plugin, place it in your plugins folder, start up your server, and place a block! (block specified in config file)
items -- list of strings. The items that should be randomly selected to drop. in the format: itemName,numberOfThatItem
IMPORTANT: Do NOT put spaces on either side of the comma. If only put the item name, it will spawn in only 1 of that item. Items that are 2 words or more should have their names separated with underscores ("_") rather than spaces.
num_items: 5            #number of things chosen from the list
name:                       #custom name of supplydrop block. if you don't want a custom name, just keep this field blank.
items:                      #Format: item name,quantity
- stone,5
- egg,2
- emerald,17
- feather,52
- enchantment_table,3
Permission: supplydrop.*)   -   Permission to use the /supplydropspawn command
Description
Ever wanted to place a block, and just have it spawn a bunch of random items? Well now you can!Simply download this plugin, place it in your plugins folder, start up your server, and place a block! (block specified in config file)
Config File
num_items -- integer. the number of items that should be randomly selected.items -- list of strings. The items that should be randomly selected to drop. in the format: itemName,numberOfThatItem
IMPORTANT: Do NOT put spaces on either side of the comma. If only put the item name, it will spawn in only 1 of that item. Items that are 2 words or more should have their names separated with underscores ("_") rather than spaces.
Example Config:
block: beacon            #block placed to drop itemsnum_items: 5            #number of things chosen from the list
name:                       #custom name of supplydrop block. if you don't want a custom name, just keep this field blank.
items:                      #Format: item name,quantity
- stone,5
- egg,2
- emerald,17
- feather,52
- enchantment_table,3
Commands and Permissions
Command: /supplydropspawn (amount)   -   gives the user the specified amount of the supplydrop block. amount defaults to 1 if no amount is specified.Permission: supplydrop.*)   -   Permission to use the /supplydropspawn command
-
View User Profile
-
Send Message
Posted Mar 25, 2017I was wondering on how you could add enchantments to the items?
-
View User Profile
-
Send Message
Posted Mar 4, 2014@davidjm6
Cool! Hope to use it, soon!
-
View User Profile
-
Send Message
Posted Feb 7, 2014@Fawmeister
not sure what you are asking fawmeister.
you want there to be a random chance of the player receiving any items at all?
-
View User Profile
-
Send Message
Posted Feb 7, 2014@davidjm6 when you do update it again could you also make it randomized because i would like to give this to players for a random chance at getting items i would like to be able to put in the supply drops myself.
Btw: this is a really cool plugin :D
-
View User Profile
-
Send Message
Posted Jan 28, 2014@rawr002
I will add the ability to use blocks with different durability values (such as wool) which I just realized isn't currently fully or safely compatible with this plugin. This update will also give the ability to use the head of a specific player.
@sireture
I will also add the ability to give a player the item via the console in the next update.
Please note that this will take me a while as I am 19 and just getting back to Uni for the spring. Once I'm settled in, and get some free time, I'll get it done.
-
View User Profile
-
Send Message
Posted Jan 27, 2014Wow, dude! Works perfect!
I Plan on using "Supply Drop" item as a vote reward. Though, Is there any command to give "Supplydrop" item to another player from console? I tried a work a around with /give Player 54 1 51:-20 but i have unsafe enchants off and do not wish to turn them on.
Many thanks on this plugin! Possibly one of the nicer developers I've dealt with thus far!
-
View User Profile
-
Send Message
Posted Jan 25, 2014Could you be able to put the block as a custom head?
-
View User Profile
-
Send Message
Posted Jan 24, 2014@sireture
Sorry sireture... been working hard on another plugin and haven't been getting enough sleep. Guess I didn't fully pay attention to your reply... Just finished SupplyDrop V1.2.
In this update:
-
View User Profile
-
Send Message
Posted Jan 23, 2014@davidjm6 ...an enchanted item option so no ordinary player can name/enchant item to receive free items, i.e. Unbreaking III Trapped Chest
also, players used an exploit; on worldguarded or faction claimed land, placing the block will still deal free items but "supplydrop" block regenerates as if nothing happened: "you are not allowed to edit warzone/safezone/etc."
-
View User Profile
-
Send Message
Posted Jan 22, 2014@sireture
I was looking at the best way to code the plugin so that it could go by name, and when I got half way through coding it, I realized, "wait a second... can't players rename blocks using an anvil and a few levels?"
turns out they can which would make using simple items as the target block harder for normal players, but still possible. At this time, I do not see a way around this issue, and recommend you keep using uncraftable blocks.
-
View User Profile
-
Send Message
Posted Jan 19, 2014Good and Easy Plugin
-
View User Profile
-
Send Message
Posted Jan 17, 2014So awesome!
I made my "Supplydrop" target block chests for a few moments and players crafted chests JUST for free items; made the target block an End Portal block since it cannot be crafted. I suggest either a named item or an enchanted item option so no ordinary player can name/enchant item to receive free items, i.e. Unbreaking III Trapped Chest named "Supply Drop" etc.
Thank you, once again!
-
View User Profile
-
Send Message
Posted Jan 13, 2014@sireture
I have made an update and just released SupplyDrop V1.1 so that you can specify the block used, as well as fix a few bugs (See the change log). Once the file gets approved by the bukkit staff, you will be able to download it here.
Thanks for choosing my plugins =)
-
View User Profile
-
Send Message
Posted Jan 13, 2014Great build! I've been looking for something quite similar!
If possible, in the future, can you please add an option of what block you want to "supplydrop" items, like for example: chests, mob heads etc.? Also, since the plugin looks for Beacons, any player with a Beacon can "supplydrop"; perhaps a special named or enchanted Beacon (chest, mob head etc.) would be the only item to unload goodies.
Thanks for the awesome plugin!