跳到正文

Tokenized

作者:Charken Inc.

This project adds a token system and shop to the game and it is server sided!

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

Tokenized

Tokenized is a Datapack/Mod that adds a hourly token system to the game. Comes with a shop for items

Command

/trigger shop_(item of choice)

Items and Prices

| Item | Amount | Price (tokens) |
| ——————– | —— | ————– |
| Iron Ingot | 32 | 5 |
| Coal | 32 | 5 |
| Bread | 16 | 5 |
| Diamond | 4 | 12 |
| Ender Pearl | 8 | 12 |
| Name Tag | 1 | 10 |
| Bottle o’ Enchanting | 16 | 1 |
| Diamond Pack | 16 | 25 |
| Blaze Rod | 8 | 16 |
| Trident | 1 | 50 |
| Elytra | 1 | 85 |
| Totem of Undying | 1 | 38 |
| Shulker Shell | 2 | 40 |
| Beacon | 1 | 125 |
| Shulker Box | 1 | 25 |
| Netherite Ingot | 1 | 50 |

Why I made this

I made this datapack for my minecraft server (JSS) so if you want you can join it

play.jacobssillyserver.com

Compatible Mods

Compatible Mods with Instructions

use with this custom command below

Shop.json
{
  "id": "shop",
  "literals": [
    {
      "id": "balance",
      "executes": [
        {
          "command": "trigger balance set 1"
        }
      ]
    },
    {
      "id": "iron_ingot",
      "executes": [
        {
          "command": "trigger shop_iron_ingot set 1"
        }
      ]
    },
    {
      "id": "coal",
      "executes": [
        {
          "command": "trigger shop_coal set 1"
        }
      ]
    },
    {
      "id": "bread",
      "executes": [
        {
          "command": "trigger shop_bread set 1"
        }
      ]
    },
    {
      "id": "diamond",
      "executes": [
        {
          "command": "trigger shop_diamond set 1"
        }
      ]
    },
    {
      "id": "ender_pearl",
      "executes": [
        {
          "command": "trigger shop_ender_pearl set 1"
        }
      ]
    },
    {
      "id": "saddle",
      "executes": [
        {
          "command": "trigger shop_saddle set 1"
        }
      ]
    },
    {
      "id": "name_tag",
      "executes": [
        {
          "command": "trigger shop_name_tag set 1"
        }
      ]
    },
    {
      "id": "exp_bottle",
      "executes": [
        {
          "command": "trigger shop_exp_bottle set 1"
        }
      ]
    },
    {
      "id": "diamond_pack",
      "executes": [
        {
          "command": "trigger shop_diamond_pack set 1"
        }
      ]
    },
    {
      "id": "netherite_scrap",
      "executes": [
        {
          "command": "trigger shop_netherite_scrap set 1"
        }
      ]
    },
    {
      "id": "blaze_rod",
      "executes": [
        {
          "command": "trigger shop_blaze_rod set 1"
        }
      ]
    },
    {
      "id": "trident",
      "executes": [
        {
          "command": "trigger shop_trident set 1"
        }
      ]
    },
    {
      "id": "elytra",
      "executes": [
        {
          "command": "trigger shop_elytra set 1"
        }
      ]
    },
    {
      "id": "totem",
      "executes": [
        {
          "command": "trigger shop_totem set 1"
        }
      ]
    },
    {
      "id": "shulker_shell",
      "executes": [
        {
          "command": "trigger shop_shulker_shell set 1"
        }
      ]
    },
    {
      "id": "beacon",
      "executes": [
        {
          "command": "trigger shop_beacon set 1"
        }
      ]
    },
    {
      "id": "shulker_box",
      "executes": [
        {
          "command": "trigger shop_shulker_box set 1"
        }
      ]
    },
    {
      "id": "netherite_ingot",
      "executes": [
        {
          "command": "trigger shop_netherite_ingot set 1"
        }
      ]
    },
    {
      "id": "dragon_egg",
      "executes": [
        {
          "command": "trigger shop_dragon_egg set 1"
        }
      ]
    }
  ]
}

use this menu

Token_Shop.json
{
  "$schema": "https://raw.githubusercontent.com/MagnusHJensen/custom-chest-menus/refs/heads/main/docs/v1.schema.json",
  "format_version": 1,
  "id": "token_shop",
  "name": "Token Shop",
  "size": "single",
  "filler": {
    "slot": 0,
    "item": "minecraft:light_gray_stained_glass_pane",
    "name": " "
  },
  "pages": [
    {
      "title": "Token Shop",
      "items": [
        {
          "name": "Iron Ingot x32",
          "slot": 0,
          "item": "minecraft:iron_ingot",
          "action": {
            "type": "command",
            "command": "trigger shop_iron_ingot set 1",
            "run_as_player": true
          },
          "lore": [
            "Cost: 5 tokens"
          ]
        },
        {
          "name": "Coal x32",
          "slot": 1,
          "item": "minecraft:coal",
          "action": {
            "type": "command",
            "command": "trigger shop_coal set 1",
            "run_as_player": true
          },
          "lore": [
            "Cost: 5 tokens"
          ]
        },
        {
          "name": "Bread x16",
          "slot": 2,
          "item": "minecraft:bread",
          "action": {
            "type": "command",
            "command": "trigger shop_bread set 1",
            "run_as_player": true
          },
          "lore": [
            "Cost: 5 tokens"
          ]
        },
        {
          "name": "Diamond x4",
          "slot": 3,
          "item": "minecraft:diamond",
          "action": {
            "type": "command",
            "command": "trigger shop_diamond set 1",
            "run_as_player": true
          },
          "lore": [
            "Cost: 12 tokens"
          ]
        },
        {
          "name": "Ender Pearl x8",
          "slot": 4,
          "item": "minecraft:ender_pearl",
          "action": {
            "type": "command",
            "command": "trigger shop_ender_pearl set 1",
            "run_as_player": true
          },
          "lore": [
            "Cost: 12 tokens"
          ]
        },
        {
          "name": "Name Tag x1",
          "slot": 5,
          "item": "minecraft:name_tag",
          "action": {
            "type": "command",
            "command": "trigger shop_name_tag set 1",
            "run_as_player": true
          },
          "lore": [
            "Cost: 10 tokens"
          ]
        },
        {
          "name": "Experience Bottle x4",
          "slot": 6,
          "item": "minecraft:experience_bottle",
          "action": {
            "type": "command",
            "command": "trigger shop_exp_bottle set 1",
            "run_as_player": true
          },
          "lore": [
            "Cost: 1 token"
          ]
        },
        {
          "name": "Diamond Pack x16",
          "slot": 7,
          "item": "minecraft:diamond",
          "action": {
            "type": "command",
            "command": "trigger shop_diamond_pack set 1",
            "run_as_player": true
          },
          "lore": [
            "Cost: 25 tokens"
          ]
        },
        {
          "name": "Blaze Rod x8",
          "slot": 8,
          "item": "minecraft:blaze_rod",
          "action": {
            "type": "command",
            "command": "trigger shop_blaze_rod set 1",
            "run_as_player": true
          },
          "lore": [
            "Cost: 16 tokens"
          ]
        },
        {
          "name": "Trident x1",
          "slot": 9,
          "item": "minecraft:trident",
          "action": {
            "type": "command",
            "command": "trigger shop_trident set 1",
            "run_as_player": true
          },
          "lore": [
            "Cost: 50 tokens"
          ]
        },
        {
          "name": "Elytra x1",
          "slot": 10,
          "item": "minecraft:elytra",
          "action": {
            "type": "command",
            "command": "trigger shop_elytra set 1",
            "run_as_player": true
          },
          "lore": [
            "Cost: 85 tokens"
          ]
        },
        {
          "name": "Totem of Undying x1",
          "slot": 11,
          "item": "minecraft:totem_of_undying",
          "action": {
            "type": "command",
            "command": "trigger shop_totem set 1",
            "run_as_player": true
          },
          "lore": [
            "Cost: 38 tokens"
          ]
        },
        {
          "name": "Shulker Shell x2",
          "slot": 12,
          "item": "minecraft:shulker_shell",
          "action": {
            "type": "command",
            "command": "trigger shop_shulker_shell set 1",
            "run_as_player": true
          },
          "lore": [
            "Cost: 40 tokens"
          ]
        },
        {
          "name": "Beacon x1",
          "slot": 13,
          "item": "minecraft:beacon",
          "action": {
            "type": "command",
            "command": "trigger shop_beacon set 1",
            "run_as_player": true
          },
          "lore": [
            "Cost: 125 tokens"
          ]
        },
        {
          "name": "Shulker Box x1",
          "slot": 14,
          "item": "minecraft:shulker_box",
          "action": {
            "type": "command",
            "command": "trigger shop_shulker_box set 1",
            "run_as_player": true
          },
          "lore": [
            "Cost: 25 tokens"
          ]
        },
        {
          "name": "Netherite Ingot x1",
          "slot": 15,
          "item": "minecraft:netherite_ingot",
          "action": {
            "type": "command",
            "command": "trigger shop_netherite_ingot set 1",
            "run_as_player": true
          },
          "lore": [
            "Cost: 50 tokens"
          ]
        },
        {
          "name": "Close Menu",
          "slot": 26,
          "item": "minecraft:barrier",
          "action": {
            "type": "close"
          },
          "lore": []
        }
      ]
    }
  ]
}

Possible future things I may add

  • an easily adjustable shop (prices and items) (will be hard to implement)

Additions in next update

–

常见问题

Tokenized 支持哪些 Minecraft 版本?

Tokenized 支持 Minecraft Java 版 1.21.2–26.2,共 14 个版本,可用的加载器:Fabric / Forge / NeoForge / Quilt。下载时注意选择和你游戏版本一致的文件。

Tokenized 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / Forge / NeoForge / Quilt,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端 / 服务端。

评论

登录后评论和评分

Charken Inc. 的其他作品

查看全部 →