
Minecraft Item Slot Machine Plugin Tutorial
I'm trying to make a slot machine gambling box, where the item fall down from the top to do so i would needto
or am i better off just learning how to make a GUI (seams like a lot more work)
1.open container on chat command(I think something likeplayer.inventory.loot.AddContainer would work right?)
2. Fill container with with items(idk how to use this player.inventory.loot.entitySource)
3.move items incontainer(Idk how to spawn items in a container, let alone move them, or do i need to delete it all and spawn new ones every time the slot part moves?)
4.Add buttons toallow interactions(I presume i should use notes with text in them so they are all each different to keep track of there position, something with this
voidOnLootItem(BasePlayer player, Item item) ?)
4.(optinal) Add custom icons to the items to make it looks smother(skins for unused items? like christmas doors and stuff likethat)
Thanks for any help
ItemSlots is a mod that allows the player to bet items in a slot machine. A machine is built using the steps below. The player places items they want to bet in the dispenser and pulls the lever. When the lever is activated the lamp flashes. If the player wins the payout is dropped at the player's feet. If the player loses the items are lost.