Traincarts Ticket Shop 图标

Traincarts Ticket Shop

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 1.0.1
本资源为搬运资源,原资源地址: https://modrinth.com/mod/traincarts-ticket-shop
资源信息

Minecraft 版本: 1.21 1.21.1 1.21.2 1.21.3 1.21.4 1.21.5 1.21.6 1.21.7 1.21.8 1.21.9 1.21.10 1.21.11

平台: paper

标签: economy transportation

资源介绍

A plugin which allows players to create ticket shop guis for purchasing tickets from the Traincarts plugin.

FOR FULL INFORMATION ABOUT PLUGIN USAGE, PLEASE VISIT THE WIKI ON GITHUB

How to use

  • Run /train ticket create <Traincarts ticket name> to create a Traincarts ticket.
  • Run /tshop ticket create <Traincarts ticket name> to get a "gui ticket" item.
  • Run /tshop gui create <Gui ID> to create a shop Gui.
  • Run /tshop gui rename <new display name> to change the Gui title.
  • Run /tshop gui edit <Gui ID> to edit the Gui.
  • Drag the ticket you were given by the plugin into the inventory that opens.
    image
  • Run /tshop gui open <Gui ID> to open the shop GUI. Click on a ticket to get it in your inventory.

Other methods of opening the GUI

Signs

Create a sign with this format:

[tshop]
<gui ID>

Any other text

image

Right click on the sign to open the shop Gui.

Links

Links are a powerful tool which allows players to "link" multiple guis together.

To get started, you must have at least two guis already created. For example, we may have run:

  • /tshop gui create mainline
  • /tshop gui create subline

We may want to have it so that the gui mainline links to the second gui, subline.

Firstly, we must create a new "link". To do this, we can run:

  • /tshop link create <linked Gui ID>
  • /tshop link rename <new display name>

In our example, this would look something like:

  • /tshop link create subline
  • /tshop link rename "<yellow>Subline Tickets"

This should give us a link item which looks something like this:

image

With this new link, we can run:

  • /tshop gui edit mainline

and drag and drop the link item anywhere within the mainline gui, even amongst other tickets.

image(1)

Now, when a player opens the mainline gui, they will be able to click the link item. This will redirect them to the subline gui.

Untitled-2024-01-25-2133

It's also possible to set the destination page that a link item will link to.

For example:

  • /tshop link setDestinationPage 10

will make it so that when the link is clicked, it will try to redirect the player to page 10 of the destination gui. If there aren't that many pages in the Gui, it will default to the highest page possible.

下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
Allo's Forever Pack

价格:0 墨喵币
下载量:0

查看详情
Level Z - Better End

价格:0 墨喵币
下载量:0

查看详情
One Click Optimization.

价格:0 墨喵币
下载量:0

查看详情
I Love You

价格:0 墨喵币
下载量:0

查看详情