Skip to main content

Setting Up Admin Stores at Spawn

# πŸͺ Setting Up Admin Stores at Spawn

**Last Updated:** October 15, 2025 Β 
**Author:** MonkeyCraft Admin Team Β 
**Applies to:** MonkeyCraft NeoForge 1.21.1 (using MEconomy)

---

## πŸ“˜ Overview
Admin stores allow the server to buy and sell items to players using the in-game economy. These stores are linked to an infinite wallet so they never run out of money or stock.

They’re perfect for:
- Selling starter supplies and tools
- Buying excess materials from players
- Providing MineColonies blueprints or key items

---

## βš™οΈ Requirements
- MEconomy mod (installed on MonkeyCraft)
- Admin or operator permissions
- Shop block (`/give @p meconomy:shop_block`)

---

## πŸͺ™ Step 1 – Enable Admin Mode
```bash
/meco admin
```
You should see: β€œAdmin mode enabled.”

---

## πŸ’Ό Step 2 – Create an Admin Wallet
```bash
/meco wallet create adminstore
/meco wallet setbalance adminstore 999999999
/meco wallet infinite adminstore true
```
This wallet will never run out of balance.

---

## 🧱 Step 3 – Place and Link a Shop
1. Place a **Shop Block** at spawn.
2. Right-click β†’ **Set Wallet** β†’ enter `adminstore` Β 
Β  Β or run:
```bash
/meco shop setwallet adminstore
```

---

## πŸ’° Step 4 – Add Items and Prices
Use `/meco shop addsell` to sell to players, and `/meco shop addbuy` to buy from players.

Example:
```bash
/meco shop addsell minecraft:bread 5
/meco shop addbuy minecraft:bread 2
```

> πŸ’‘ Tip: paste the full command list from the section below.

---

# πŸ’° Admin Store Item List

**Use these commands to populate your admin shop.** Β 
Run them in console or as an in-game admin while your shop is selected and linked to the `adminstore` wallet.

---

## 🧾 Command List
```bash
# === Tier 1 – Basic Survival ===
/meco shop addsell minecraft:bread 5
/meco shop addbuy minecraft:bread 2
/meco shop addsell minecraft:cooked_beef 8
/meco shop addbuy minecraft:cooked_beef 3
/meco shop addsell minecraft:apple 4
/meco shop addbuy minecraft:apple 1
/meco shop addsell minecraft:oak_log 3
/meco shop addbuy minecraft:oak_log 1
/meco shop addsell minecraft:cobblestone 2
/meco shop addbuy minecraft:cobblestone 0.5
/meco shop addsell minecraft:iron_ingot 15
/meco shop addbuy minecraft:iron_ingot 8
/meco shop addsell minecraft:coal 5
/meco shop addbuy minecraft:coal 2

# === Tier 2 – Tools & Building ===
/meco shop addsell minecraft:iron_pickaxe 45
/meco shop addbuy minecraft:iron_pickaxe 15
/meco shop addsell minecraft:iron_sword 40
/meco shop addbuy minecraft:iron_sword 12
/meco shop addsell minecraft:bucket 20
/meco shop addbuy minecraft:bucket 8

# === Tier 3 – Construction ===
/meco shop addsell minecraft:oak_door 5
/meco shop addbuy minecraft:oak_door 1
/meco shop addsell minecraft:brick 12
/meco shop addbuy minecraft:brick 5
/meco shop addsell minecraft:stone 3
/meco shop addbuy minecraft:stone 1

# === Tier 4 – Farming & Mob Drops ===
/meco shop addsell minecraft:wheat 3
/meco shop addbuy minecraft:wheat 1
/meco shop addsell minecraft:carrot 3
/meco shop addbuy minecraft:carrot 1
/meco shop addsell minecraft:leather 8
/meco shop addbuy minecraft:leather 3

# === Tier 5 – Ores & Minerals ===
/meco shop addsell minecraft:diamond 120
/meco shop addbuy minecraft:diamond 60
/meco shop addsell minecraft:emerald 100
/meco shop addbuy minecraft:emerald 50
/meco shop addsell minecraft:gold_ingot 25
/meco shop addbuy minecraft:gold_ingot 12
/meco shop addsell minecraft:netherite_scrap 500
/meco shop addbuy minecraft:netherite_scrap 250

# === Tier 6 – Utility ===
/meco shop addsell minecraft:ender_pearl 75
/meco shop addbuy minecraft:ender_pearl 35
/meco shop addsell minecraft:saddle 80
/meco shop addbuy minecraft:saddle 40
/meco shop addsell minecraft:elytra 2500
/meco shop addsell minecraft:shulker_shell 400
/meco shop addbuy minecraft:shulker_shell 200

# === Tier 7 – MineColonies ===
/meco shop addsell minecolonies:supplycampdeployer 500
/meco shop addsell minecolonies:supplyshipdeployer 500
/meco shop addsell minecolonies:buildtool 100
/meco shop addsell minecolonies:citizenhut 100
/meco shop addsell minecolonies:warehouse 250
/meco shop addsell minecolonies:buildershut 150
/meco shop addsell minecolonies:guardtower 200
```

---

# 🧰 Admin Store Troubleshooting & Tips

### 🧩 Shops not working for players
Ensure the wallet is linked correctly:
```bash
/meco shop info
```
It should show `Wallet: adminstore`.

---

### πŸ’Έ Items not buying/selling
- Check for typos in item IDs.
- Use `/meco shop remove <index>` to delete an invalid entry.
- Re-add with the correct ID.

---

### πŸ” Prevent grief or breakage
- Use FTB Chunks to claim and forceload the spawn area.
- Also verify `spawn-protection=24` in `server.properties`.

---

### 🧱 Backup your shops
The MEconomy folder stores all shop and wallet data in JSON.
Back it up with DriveBackup V2 or FTB Backups:
```
/ftb backups start
```

---

### πŸ“¦ Future Improvements
- NPC traders via **KubeJS**
- Auto-restocking or rotating β€œdeal of the day” shops
- Integration with the **Quest System** for player rewards