Minecraft Leaks
Machines | Create your own Machine with hologram | Versions 1.8, 1.9, 1.10, 1.11 1.12
Submitted by dodo, 16-10-2017, 01:06 PM, Thread ID: 51460
Thread Closed
Here you can see a little Tutorial of this Plugin.
(I'll make a better video)
This is a Machine plugin, that you need Fuel to make your Machine work, Based on a well-known game "BedWard" Who has blocks that drop items. But I have changed so that it can adapt on any server including to Factions / RankUP. It is fully configurable, Items drops, which blocks will be the Machine, Time, Waves etc. Easy to set up!
Dependencies:
This plugin has a Custom Shop to buy a Machine. (You can edit this Shop on 'config.yml').
So you'll need use "VAULT" to this shop work.
This plugin was tested withJava 8. I have not tested on other versions of Java.
This plugin is most commonly used on Factions / RankUP or Prison servers. But you can edit it to put on other servers as well.
- Unlimited Machines, That you can configure each of them differently.
- Custom Fuel, You can configure the Time, and waves for each Fuel.
- Custom Shop to buy your Machine.
- Custom holograms with blocks.
- Create your own Machine in game.
- Custom API (soon).
How to install?
Drop this plugin's jar into your "/plugin" folder.
Restart your server.
And you'll have your "Machines" plugin will be installed.
When Machines plugin starts for the first time will create 3 files. "config.yml, lang_en.yml (you can create your own lang_<you_lang> file.), machines.yml".
config.yml
Code (Text):
###/
# --> IMPORTANT, Please read this lines below. <--
#Here you can find all the Enchantment names #You need to use these names for it to work.:https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/enchantments/Enchantment.html
#Here you can find all the Item names #You need to use these names for it to work.:https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Material.html
###\
#This is the language in which the messages will show.
#By default there are, 'en, pt'.
#PT Lang file will create automatically, just put "Language: pt" and restart the server.
#You can create your own language file, create your file on "Machines" folder and put here the name.
#Note, This need be lower case.
#Note, if you change your language you need restart the server for it to work.
Language: en
#These are the Machine settings
Machine-Settings:
#This will show a message when the Machine stops working.
Message-When-Machine-Done: true
#Holograms
Holograms:
#This will show a little item animation on the hologram.
Show-Item: true
#If you leave it 'true' it will show a hologram with an Item when the Machine starts.
Hologram-When-Start: true
#If you leave this 'true' It will always show a hologram.
Hologram-Always: false
#If you leave it true
Remove-Fuel-When-Use:
#I recommend putting here the Minecraft world that the player can't place the Machine in the middle of the mine.
World-blacklist:
- 'Your_world'
Break:
#If you leave this 'true' only tools with Silk, will drop the Machine.
Need-Silk: true
#If you leave 'Only-Machine-Owner' 'true' Only who placed the Machine can break.
Only-Machine-Owner: false
#Leave it 'true' to add the Machine directly to the player inventory.
Add-Machine-To-Inv: true
#These are the default Fuels.
Fuel:
1:
Item:
Type: COAL
Glow: false
Name: '&aIron fuel'
Lore:
- '&7This fuel works only on iron'
#This time is how long that each wave lasts.
#The time is in SECONDS
Time: 60
#This below is how many waves this fuel lasts.
Waves: 3
2:
Item:
Type: COAL
Glow: true
Name: '&7Multi-Machines'
Lore:
- '&7This fuel works in any Machine.'
Time: 60
Waves: 5
#These are the default Machines.
#You can create/edit in this section the Machines.
#You can create unlimited Machines.
Machines:
Iron:
Item:
#The Machine must be a BLOCK, you need to place this block on the ground for the Machine to work.
Type: IRON_BLOCK
Glow: true
Name: '&7Iron Machine'
Lore:
- '&7This is an Iron Machine, You can'
- '&7place this on your house to farm items.'
#You can set the hologram type using, Item name example: "COBBLESTONE" --> will show a cobblestone.
#Or you put "%type%" it will show the Machine block type.
Hologram-Item-Type: '%machinetype%'
#Here are the fuels that are allowed to be used in this Machine.
#Put 'All' for all Fuel types.
#Or put the Fuel ID.
Allowed-Fuels:
- 'All'
#This 'ItemDrop' section will be shown in every wave.
#All these items will be dropped on floor.
Rewards:
#Leave it 'true' to add the Reward directly to the player inventory.
Add-To-Inv: false
#The EXP must be an Integer.
EXP: 10
Messages:
- '&3Example wave message.'
Commands:
- '/msg %player% Your rewards from this wave has been dropped.'
#Here you can put only items.
Items:
Item-1:
Type: IRON_INGOT
Name: '&7Machine Iron'
Lore:
- '&7You can sell this item just do'
- '&c/<your_sell_command>&7.'
Amount: 15
Enchants: {}
Item-2:
Type: IRON_SWORD
Name: '&7Machine SWORD'
Lore:
- '&7This is a SWORD.'
Amount: 1
Enchants:
- 'DURABILITY,1'
- 'DAMAGE_ALL,1'
Gold:
Item:
#The Machine needs be BLOCK, cause you need place this block to work.
Type: GOLD_BLOCK
Glow: false
Name: '&eGold Machine'
Lore:
- '&7This is Gold Machine, You can'
- '&7place this on your house to farm items.'
Hologram-Item-Type: GOLD_INGOT
Allowed-Fuels:
- 'All'
#This 'ItemDrop' section will be seen every wave.
#All these items will be dropped on floor.
Rewards:
#The EXP is Integer.
EXP: 20
Commands:
- '/msg %player% Your rewards from this wave has been dropped.'
Items:
Item-1:
Type: GOLD_INGOT
Name: '&7Machine Gold'
Lore:
- '&7You can sell this item just do'
- '&c/<your_sell_command>&7.'
Amount: 25
Enchants: {}
Item-2:
Type: ENDER_CHEST
Name: '&7Magical chest'
Lore:
- 'Magical chest'
Amount: 1
Enchants: {}
Diamond:
Item:
#The Machine need be BLOCK, cause you need place this block to work.
Type: DIAMOND_BLOCK
Glow: true
Name: '&3Diamond Machine'
Lore:
- '&7This is Diamond Machine, You can'
- '&7place this on your house to farm items.'
Hologram-Item-Type: DIAMOND
Allowed-Fuels:
- '2'
#This 'ItemDrop' section will be seen every wave.
#All these items will be dropped on floor.
Rewards:
#The EXP is Integer.
EXP: 20
Commands:
- '/msg %player% Your rewards from this wave has been dropped.'
Items:
Item-1:
Type: DIAMOND
Name: '&7Machine Diamond'
Lore:
- '&7You can sell this item just do'
- '&c/<your_sell_command>&7.'
Amount: 30
Enchants: {}
Machine-Market:
#Leaving this 'true' means that the player needs permission to execute: "/machinemarket" command.
Need-Permission-To-Command: false
Menu:
#Menu name
Name: '&7Machine Market'
#This is the rows number, note if you put a wrong number it will cause exception.
Rows: 3
Items:
1:
#This 'Sell' is just to separate the informative things to things to buy. Leave 'true' to can buy this item.
Sell: true
Type: IRON_BLOCK
#This is where the item will be located in the menu.
#Slots start with '0'.
Slot: 11
Glow: true
Name: '&7Iron Machine'
Lore:
- '&7Click here to buy a Iron Machine.'
Price: 150000.0
#Here is which machine the buyer will receive.
Machines:
#- '<MACHINE>:<AMOUNT>'
- 'Iron:1'
#Do you want the buyer to get the fuel too? If yes, put the Fuel number here.
Fuel:
#- '<ID>:<AMOUNT>'
- '1:1'
2:
Sell: true
Type: GOLD_BLOCK
Slot: 13
Glow: false
Name: '&eGold Machine'
Lore:
- '&7Click here to buy a Gold Machine.'
Price: 750000.0
Machines:
- 'Gold:2'
- 'Iron:1'
3:
Sell: true
Type: DIAMOND_BLOCK
Slot: 15
Glow: true
Name: '&3Diamond Machine'
Lore:
- '&7Click here to buy a Diamond Machine'
Price: 1000000.0
Machines:
- 'Diamond:1'
Fuel:
- '2:1'
4:
Sell: false
Type: PAPER
Slot: 26
Name: '&7INFO'
Lore:
- '&7- To buy a Machine just click on them'
Agreement-Menu:
Name: '&7Agreement'
Rows: 1
Items:
1:
Type: WOOL:14
Slot: 0
Name: '&cCancel'
Lore:
- '&7Click to cancel.'
#There are two actions: "Cancel and Buy"
#Cancel - Will cancel the purchase and close the inv.
#Buy - will buy the selected Machine.
Action: Cancel
2:
Type: WOOL:14
Slot: 1
Name: '&cCancel'
Lore:
- '&7Click to cancel.'
Action: Cancel
3:
Type: WOOL:14
Slot: 2
Name: '&cCancel'
Lore:
- '&7Click to cancel.'
Action: Cancel
4:
Type: WOOL:14
Slot: 3
Name: '&cCancel'
Lore:
- '&7Click to cancel.'
Action: Cancel
5:
Type: '%agreementitem%'
Slot: 4
6:
Type: WOOL:5
Slot: 5
Name: '&aBuy'
Lore:
- '&7Click to buy.'
Action: Buy
7:
Type: WOOL:5
Slot: 6
Name: '&aBuy'
Lore:
- '&7Click to buy.'
Action: Buy
8:
Type: WOOL:5
Slot: 7
Name: '&aBuy'
Lore:
- '&7Click to buy.'
Action: Buy
9:
Type: WOOL:5
Slot: 8
Name: '&aBuy'
Lore:
- '&7Click to buy.'
Action: Buy
lang file.
Code (Text):
machines: {}
//Here will have all your Machines.
Command list -->
- '/command' - Command description. (Permission)
- '/machine <type> <player> <amount>' - Sends a specific Machine for a player.(machines.machine.command)
- '/machine all <player> <amount>' - Sends all Machine''s for a player. (machines.machine.command)
- '/machine list' - See all avaiable Machines. (machines.machine.command)
- '/fuel <type> <player> <amount>' - Sends a specific Fuel for a player. (machines.fuel.command)
- '/fuel all <player> <amount>' - Sends all Fuel for a player. (machines.fuel.command)
- '/fuel list' - See all avaiable Fuel. (machines.fuel.command)
- '/machinemarket' - Menu to buy a Machine. (machines.machinemarket.command) <- You can disable this permission.
- '/machinemarket help' - Print this message. (machines.machinemarket.command) <- You can disable this permission.
- '/machinesettings reload' - Reload all .yml files. (machines.settings.command)
Here are all the plugin permissions.
Code (Text):
machines.admin:
description: All permissions in one. (This you'll bypass all other permissions).
machines.break.bypass:
description: Bypass to break Machines. (It will bypass if need have Silk Tuch or if need be Machine owner to break).
machines.place.bypass:
description: Place bypass. with this permission you'll can place Machine in any worlds.
machines.machine.command:
description: Use '/machine' command.
machines.fuel.command:
description: Use '/fuel' command.
machines.machinemarket.command:
description: Use '/machinemarket' command. You can disable this permission on config.yml. Aliases: [/mm]
machines.settings.command:
description: Use '/machinesettings' command. Aliases: [/ms]
By purchasing, downloading or using this plugin, you agree that you are purchasing a license to use the plugin. The license may be revoked at the copyright holders discretion. You may use the plugin on any servers you own. You may not disassemble, decompile, modify, reverse-engineer or reverse compile the plugin. The copyright holder reserves the right to change, update, or modify these terms and conditions at anytime. Use of the plugin after the terms and conditions are modified, changed or updated means that you abide by them. You may not redistribute the plugin. Doing so will result in your license revoked and copies distributed disabled. You are also breaking international copyright treaties. You agree that no refunds are available and by opening up a dispute or charge back; your access to the plugin will be revoked and the money may be kept.
Download
Users browsing this thread: 3 Guest(s)