Sponge Item Slot Machine

The Sponge is a Seraph Shield manufactured by Vladof in Borderlands 2. Slot Machines; Eridian Fabricator. The Eridian Fabricator occasionally drops quest reward items. Crazy Earl's Veteran Rewards machine in Sanctuary has one Quest Rewards as the Item of the day.

Items are represented through an ItemStack. An ItemStack is an inventory item with information such asthe amount of the item in the stack, the type of the item, and extra data such as durability. An Item itselfis the graphical representation of an ItemStack as an entity. Be aware that you’ll always get a copy and not theactual ItemStack and thus, you will need to set it back into an inventory if desired.

  1. WE SHIP THRU WHAT EVER SHIPPING COMPANY IS CHEAPEST FOR OUR CUSTOMERS They assign a tracking number. You can track your purchase on-line when we give you the tracking number. Call For Shipping Quote We Have Free Packing of Your Slot machine on a pallet or a custom crate at $75.00 Please Contact Us for.
  2. Slots have come a long way from the old novelty items found in early 20 th century saloons, but the classic slot machine has remained a tried and tested favorite of slots enthusiasts the world over. Free 3 reel slots offer players the elegance, ease and simplicity.

Checking an Item’s Type¶

Checking the type of the item is very simple. You just need to call the ItemStack#getType() method.

See how simple that is? Because sticks can stack, we can also find out how many are present.

Getting the number of items in an ItemStack is relatively easy. The ItemStack#getQuantity() method willhandle this for us.

Modifying ItemStack Data¶

Manipulating data such as durability or the lore of an item is accomplished by simply using keys. You just need tospecify the key that needs to be changed:

In this, we specified that the Keys#UNBREAKABLE key is the key that we would like to change. We then set itsvalue to true to imply that the item will never break. All of this is enclosed within the offer() method of theItemStack to return our changes back to the ItemStack.

Different keys will require different values based on their job. For example, to change the lore of an item, one wouldneed to specify a List of Text rather than an boolean or other value. It is also important to performchecks to see if the key can actually apply to the item. For example, some items might not have durability or mayalready have lore applied to the item.

Note

Almost all API methods that return an ItemStack only return a copy of it, so modifying it does not have anyimpact on the real stack (e.g. in an inventory). You have to explicitly set it for your changes to persist.

Item Properties¶

Certain items may hold specific properties. For example, certain items can mine specific blocks, such as a diamondpickaxe to obsidian. Properties are used for determining if an item can cause an action without actually checking upthe type of the item. We can check if an item can mine obsidian by using theHarvestingProperty of that item.

This code will check to see if the item has a HarvestingProperty, such as a pickaxe. If present, it will thenreturn if this item can harvest obsidian without the need to check the type of the item. This is useful in the eventthat a mod or a Minecraft update adds a new tool with the capabilities of mining obsidian.

Comparing ItemStacks¶

The ItemStack class contains a neat method for comparing two ItemStacks. By using theItemStack#equalTo(ItemStack) method off of an already existing ItemStack, we can see if the twoItemStacks are ‘equal’. That is, they share the same stack size, ItemType, and data. An example isshow below:

Tested Minecraft Versions:
  • 1.7
  • 1.8
  • 1.9
  • 1.10
  • 1.11
  • 1.12
  • 1.13
  • 1.14
  • 1.15
  • 1.16
Source Code:
https://gitlab.com/GuillaumeVDN/GSlotMachine
Sponge item slot machine holder
Languages Supported:
Default files : English -- French -- Chinese (by 冷冷)
Donation Link:
http://www.guillaumevdn.com/plugins/donate/

A recode is planned, with the fresh, recoded version of GCore.
There's no ETA, but I will work on it whenever I can unlock time for it, during 2020-2021.
Until then, this plugin will use the legacy version of GCore.
Bug fixes and support will still be provided.

⭐️⭐️⭐️
GuillaumeVDN's plugins on Spigot !
SupremeShops | QuestCreator | BettingGames | Potatoes
CustomCommands | GParticles | GSlotMachine

⭐️⭐️⭐️


(I don't answer to reviews anymore but I still read them and appreciate them ! <3)
GSlotMachine is a simple plugin to gamble easily, with just one button. Since it's better to explain something with an image instead of 15 text lines, here you have a simple GIF that resumes everything :
https://s5.gifyu.com/images/giphyf0ef42b9edb125f8.gif
(the machine can look like whatever you want, this is just an example)
Feel free to send me ideas to improve the plugin !
  • Simple configuration system
  • Can be easily set up + the machine can basically look like everything
  • Win items or commands
  • Plugin reload system
  • ... and more !
  • Java 8and above
  • Spigot 1.7.2, 1.7.9, 1.7.10, 1.8.8, 1.9.4, 1.10.2, 1.11.2, 1.12.2, 1.13.2, 1.14.4 or 1.15 (others versions may work but it's not guaranteed, for example custom Spigot versions like Paper)
  • Latest version of GCore (included in the zip file)

Steps :
  1. Build the machine ; you can use any type of blocks (can be different) and any type of button. The cases don't have to be next to each other if you don't want.
  2. Create the machine (specify an ID and a type) with /machine create -m:MACHINE_ID_HERE -type:TYPE_HERE (type is the config ID of the type you want to create)
  3. Look at the button (crosshair must be on id) then define it with /machine setbutton -m:MACHINE_ID_HERE
  4. Define the 3 cases with /machine setcase -m:MACHINE_ID_HERE -case:NUMBER_HERE (with 1, 2 and 3 instead of NUMBER_HERE)
  5. You're done with the machine, it's ready to use !

Video tutorial :

Sponge Item Slot Machine Jackpots


  • /gslotmachine reload (permission gslotmachine.admin) : reload the plugin
  • /gslotmachine create -machine|m [id] -type|t:[id] (permission gslotmachine.admin) : create a machine
  • /gslotmachine setbutton -machine|m [id] (permission gslotmachine.admin) : set the machine button
  • /gslotmachine setcase -machine|m:[id] -case:[id] (permission gslotmachine.admin) : set a machine case
Command aliases : /gslotmachine, /slotmachine, /machine

#----------------------------------------------------------------------------------------------------
# Configuration file for GSlotMachine
#----------------------------------------------------------------------------------------------------
# Data management
data:
# Back end (JSON, MYSQL) (default JSON)
# If you enable MySQL here, you should definitely enable it for GCore as well
backend: JSON
# Synchronization delay (in seconds) (disabled with -1, by default)
# If this is enabled, the plugin will check the stored data (json/mysql), and if there's new/different data, cached data will be overriden here
sync_delay: -1
# MySQL identifiers (if backend is MYSQL)
# mysql:
# host: mysql.myserver.com
# name: mydatabase
# user: username
# pass: pwd
# Machines types
types:
gold:
cost: 100.0
animation_sound: BLOCK_WOODEN_BUTTON_CLICK_ON
win_sound: ENTITY_PLAYER_LEVELUP
lose_sound: BLOCK_ANVIL_BREAK
prizes:
1:
type: GOLD_INGOT
amount: 16
chance: 30
give_item: true
commands:
- 'broadcast &a{player} won 16 gold ingot in a slot machine !'
2:
type: DIAMOND
amount: 1
chance: 10
give_item: true
commands:
- 'broadcast &a{player} won 1 diamond in a slot machine !'
3:
type: QUARTZ
amount: 32
chance: 10
give_item: true
commands:
- 'broadcast &a{player} won 32 quartz in a slot machine !'
4:
type: COBBLESTONE
amount: 64
chance: 20
give_item: true
commands:
- 'broadcast &a{player} won 64 cobblestones in a slot machine !'
5:
type: APPLE
amount: 16
chance: 10
give_item: true
commands:
- 'broadcast &a{player} won 16 apples in a slot machine !'
6:
type: DEAD_BUSH
amount: 16
chance: 10
give_item: true
commands:
- 'broadcast &a{player} won 16 dead bushes in a slot machine !'
7:
type: BONE
amount: 16
chance: 10
give_item: true
commands:
- 'broadcast &a{player} won 16 bones in a slot machine !'

Sponge Item Slot Machine Machines


By using this plugin, you agree to the following !
  • The reviews section is provided for you to give your opinion on the plugin and not to get support / suggest things. See links at the top of the page to get help ! (discord)
Thanks to waqe, for your 25.00€ donation ! <3[/SPOILER]