Pumpkin Splicer
A guide on configuring the pumpkin splicer.

Adding Items to the Casino

1
# List of all possible drops that can be won in the casino, to add on simply copy and paste the format and only change the values #
2
drops:
3
'0':
4
# Material of this item when displayed in the casino GUI. For a list of exact material names, visit: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Material.html #
5
item_type: "GOLD_INGOT"
6
# Item name #
7
name: "&e&lAutoSell Upgrade"
8
# Item lore #
9
lore:
10
- "&7&oEnables pumpkins to be automatically"
11
- "&7&osold when broken."
12
# Chance of winning this item; Percentages are weighted, meaning they do not have to add up to 100 #
13
percent_chance: 10
14
# Prize given to the player if they win this reward #
15
reward:
16
# Action type - (upgrade or command) #
17
# Upgrades can be either AUTOSELL, PIE_BOOST, COIN_MULTIPLIER, or CUSTOM #
18
upgrade:
19
- "AUTOSELL"
20
# Compensation reward if the player has already unlocked this prize - only works with upgrades #
21
compensation_reward:
22
# Toggle compensation reward #
23
enabled: true
24
# Compensation reward must be commands - (Can be left empty if the above option is false ) #
25
command:
26
- "eco give {player} 25000"
Copied!
    '0' - the spot in which you put the casino item number
    'item_type' - the name of the item you want to appear in the casino menu; a list of names can be found on the spigot website
    'name' - this is the name of the item that will appear in the casino menu
    'lore' - this is the lore of the item that will appear in the casino menu
    'percent_chance' - this is the chance of winning this item relative to the other items (numbers do not have to add to 100, they are weighted)
    'upgrade' - this is the location where you specify if the reward is an upgrade or command; if it is a command, simply replace the word 'upgrade' with 'command'
    'compensation_reward' - this is the configuration section where you can enable/disable compensation rewards, and specify what command should be run if the user has already unlocked the max upgrade. Note: This section is only needed for items that are defined as 'upgrade'

Formatting

When adding a new item, please go through the following steps:
    1.
    Copy the above lines from (3-19) - as you don't need compensation rewards for custom commands - and paste it below the last item
    2.
    Change the number of the item
    3.
    Ensure there are no extra spaces between configurations and all the item numbers align,
    guaranteeing they can be read properly by the code
    4.
    Edit the above values accordingly for this item (note: when adding a custom command, the command goes on line 19, replacing where the upgrade would go in the model above)
Last modified 6mo ago