A random item minecraft shop

  • Thread starter Thread starter /u/Ali-Ashraf-Abir
  • Start date Start date
U

/u/Ali-Ashraf-Abir

Guest
I made a mc plugin a while back for a friend,it is a pretty simple mc mod that creates a shop that has specific items that rotates at a specific time interval,the entire shop can be controlled by a simple yml file, you can create multiple ymls to access multiple shops based on the commands, here is an example

# Shop Identity

id: weapons

display-name: "&c⚔ Weapon Shop"

command: "weapons" # Access via /shop weapons

# Inventory Settings

max-items-in-shop: 8 # Maximum displayed items

items-at-a-time: 5 # Items selected per reshuffle

# Item Definitions

items:

# Custom Plugin Item

- id: flame_blade

type: CUSTOM

icon: BLAZE_POWDER

display-name: "&6🔥 Flame Blade"

lore:

- "&eA legendary weapon forged in dragon fire"

- "&7Deals additional fire damage"

price: 1800

chance: 100 # 100% appearance chance

max-per-player: 1 # One per player per reshuffle

min-stock: 1

max-stock: 2

unlimited-stock: false

give-command: "customweapons give %player% flame_blade %amount%"

execute-as: CONSOLE

# Vanilla Minecraft Item

- id: diamond_sword

type: VANILLA

icon: DIAMOND_SWORD

display-name: "&b💎 Diamond Sword"

price: 1200

chance: 15 # 15% appearance chance

max-per-player: 2

min-stock: 1

max-stock: 5

unlimited-stock: false

submitted by /u/Ali-Ashraf-Abir
[link] [comments]

Continue reading...
 
Back
Top