Skip to content

mr-chibi/player_shops

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Mr_Chibi's Player's Shops

  • Mr_Chibi's Player Shops is a Minecraft Datapack!
  • It's Singleplayer & Multiplayer Friendly!
  • Creates a chest contain NBT data for players to interact with.

What Unique Features does pack offer?

  • Allows Player's to interact with chest to shop in chat when chest is right clicked.
  • Shop owners can put their shops in "lock" mode to have their shop open.
  • Shop owners can put their shops in "unlock" mode to edit chest contents and pick up their payments preventing thief from other players.
  • Limit 1 stack per shop slot.
  • Shops are linked to Player's UUID & Shops UUID only the shop owner can remove them.

Selling & Buying Slots:

Example, Below:
[Buying Slot] (Place "1" Item/Block)
[Selling Slot] (Can hold "1-64" Blocks/Items)
[Payment Slot] (Empty by default where user payments end up)

  • First, rows are for Buying Item only place 1 Item into that slot!
  • Second, rows are for Selling Items only place 0-64 Items into that slot!
  • Third, rows are for Payments From Players Where shop owners collect there goods.

How it works:

  • Step 1: /trigger ps_create
  • Step 2: "Right Click" chest by default "lock" mode is on when created.
  • Step 3: /trigger ps_unlock Unlocks chest allowing shop owner edit it's contents.
  • Step 4: /trigger ps_lock Locks shop allowing player's to shop.
  • Step 5: Player interacts with shop GUI in chat, clicks [1], [2]+ then does following below:
  • Step 6: /trigger ps_buy set [amount] Locks shop allowing player's to shop.
  • Step 7: All payments are stored inside chests on bottom slot, beneath [Selling Slot]
  • Step 8: /trigger ps_remove Removes shop if you won't want sell items anymore.

Stuck in Adventure Mode?

  • If player is a Guest at another Player's Shop. They'll be put into Adventure Mode Just walk outside shops range 8-9 blocks and problem should be resolved.

How it was written in:

  • Json
  • Mcfunction