Game & Lobby items - montlikadani/RageMode GitHub Wiki
Default configurations can be found here
Tips
- All of items name and lore is optional, so it is not required to specify.
- If you click on the items multiple times in the GUI, you will get double amount, but the price will also increase.
Game Items
Game items cannot be modified because it would not make sense and would not even work. But the item name, slot in the toolbar (inventory), lore, and other things can be set, but not all.
Some settings that are not understood: There is a "damage" value in the rageKnife material that causes damage to the player if the killer hit that victim. This is usually left at a high value beyond the player’s maximum health because the knife is deadly! Otherwise, this can be useful for servers with a maximum health of 20 or greater.
gameitems:
rageKnife:
damage: 25
There is a "custom-name" text type specified. This makes it give a holographic name to the grenade when the player has dropped the grenade. If this is not specified or the name is blank, it will not be displayed.
gameitems:
grenade:
custom-name: "&8Grenade"
The "amount" setting is used to set how many grenades to give players by default once the game has started.
gameitems:
grenade:
amount: 2
There is a velocity
setting in some items. It is used to throw the item more fastest.
gameitems:
flash:
velocity: 3.0
Lobby items
The lobby items can’t be modified completely either, because that also breaks the game, only a few can be modified.
Some settings that are not understood: There is a shop GUI settings in the "shopitem" section. Lots of things.
⚠️ First of all, not all options can be modified in the GUI because it will break it so it will not work. Please follow these instructions!
How to create a GUI? Well, you can’t create it because if you want to create a shop item, you have to immediately add what you want.
Inventory positions here: http://redditpublic.com/images/b/b2/Items_slot_number.png
So:
- We need to enter the main title of the GUI.
- You have to specify the size of the gui, how big you want (maximum value 54)
lobbyitems:
shopitem:
item: emerald
name: "&2Game shop"
lore:
- "&7Right click to open menu"
slot: 1
gui:
title: "&6RageMode shop"
fillEmptyFields: green_stained_glass_pane
size: 45
- We need items in the gui so we can click on something.
- In the items section, enter the slot number. If no slot number is specified, AIR or the filler object will be displayed.
lobbyitems:
shopitem:
item: emerald
name: "&2Game shop"
lore:
- "&7Right click to open menu"
slot: 1
gui:
title: "&6RageMode shop"
fillEmptyFields: green_stained_glass_pane
size: 45
items:
slot-13:
item: potion
name: "&aBuy potion effects"
- Now you need a GUI type to see which menu to open when clicked by the player.
Available types:
- potioneffects
- gameitems
- itemtrails
lobbyitems:
shopitem:
item: emerald
name: "&2Game shop"
lore:
- "&7Right click to open menu"
slot: 1
gui:
title: "&6RageMode shop"
fillEmptyFields: green_stained_glass_pane
size: 45
items:
slot-13:
item: potion
name: "&aBuy potion effects"
category: potioneffects
- You can adjust the cost of the item, how much money or points it should be.
- You can set the effect to give to the player once the game has started.
<> - required [ ] - optional <potion_effect_name>:[durationInSeconds]:[amplifier]
lobbyitems:
shopitem:
item: emerald
name: "&2Game shop"
lore:
- "&7Right click to open menu"
slot: 1
gui:
title: "&6RageMode shop"
fillEmptyFields: green_stained_glass_pane
size: 45
items:
slot-13:
item: potion
name: "&aBuy potion effects"
category: potioneffects
gui:
title: "&2Buy potion effects"
fillEmptyFields: green_stained_glass_pane
size: 9
items:
slot-1:
item: nether_star
name: "&6Speed"
cost:
value: 450
points: 0
effect: speed:15:1
- Finally, various (not-registered) commands can be set to close the GUI or return to the home menu, and so on.
Available commands:
- main
- close
lobbyitems:
shopitem:
item: emerald
name: "&2Game shop"
lore:
- "&7Right click to open menu"
slot: 1
gui:
title: "&6RageMode shop"
fillEmptyFields: green_stained_glass_pane
size: 45
items:
slot-13:
item: potion
name: "&aBuy potion effects"
category: potioneffects
gui:
title: "&2Buy potion effects"
fillEmptyFields: green_stained_glass_pane
size: 9
items:
slot-4:
item: arrow
name: "&bMain page"
command: mainpage
- You can specify items that do nothing when clicked.
lobbyitems:
shopitem:
item: emerald
name: "&2Game shop"
lore:
- "&7Right click to open menu"
slot: 1
gui:
title: "&6RageMode shop"
fillEmptyFields: green_stained_glass_pane
size: 45
items:
slot-13:
item: potion
name: "&aBuy potion effects"
category: potioneffects
gui:
title: "&2Buy potion effects"
fillEmptyFields: green_stained_glass_pane
size: 9
items:
slot-8:
item: paper
name: "&bInfo"
lore:
- "&7The potion effects will automatically apply when the game started."
If you want another type of category, change the category
to another one and configure it. See #Available types
section ⬆️
If you don't know how to, then read this page again and follow the examples in the file.
Misc