此插件允许你创建自定义物品,包括自定义名称和描述文本,这些物品可以在不同事件中执行命令。
功能:
- 创建带有自定义名称和描述文本的物品(支持颜色代码)
- 这些物品可以在不同事件中执行命令
- 它们可以以使用该物品的玩家身份或作为控制台身份执行命令(在配置文件中更改)
- 在命令中使用使用该物品的玩家的名称(使用 <user>)
- 在命令中使用被点击的玩家或生物的名称(仅适用于 rightclickentityevent 或 damageentityevent 事件)(使用 <clicked>)
- 使用 "&&"(不带引号)来创建多行描述文本
- 创建全局物品(见下方的“什么是全局物品?”)
- 创建一次性使用的物品
- 为物品使用数据值
- 在一个事件中执行多个命令,使用 " && "(不带引号)进行分隔
请仔细阅读功能列表,因为它包含了关于该插件能做什么以及如何使用的详细信息。如果你有问题,答案很可能就在这里(或者在本页面的其他地方)。
权限:
默认情况下,只有 OP 拥有这些权限。
- myitems.create
- myitems.setlore
- myitems.setcommand
- myitems.get
- myitems.use.<ItemName>
- myitems.list
- myitems.delete
命令:
- /mi - 帮助页面
- /mi get <name> [playername] - 获取一个物品
- /mi list - 列出所有物品
- /mi create <name> <display name> <item ID> [-g] [-s] - 创建新物品。如果使用 -g 标志,该物品将成为全局物品。如果使用 -s 标志,它将变为一次性物品
- /mi setlore <name> <lore> - 设置物品的描述文本
- /mi setcommand <name> <event> <command> - 为物品设置在某些事件(见下文)中执行的命令
- /mi delete <name> - 删除一个物品
事件:
- leftclickevent (事件组)
- damageentityevent - 当你击中另一个玩家或生物时
- leftclickblockevent - 当你左键点击方块时
- leftclickairevent - 当你左键点击空气时
- rightclickevent (事件组)
- rightclickentityevent - 当你右键点击另一个玩家或生物时
- rightclickblockevent - 当你右键点击方块时
- rightclickairevent - 当你右键点击空气时
- consumeevent - 当你食用该物品时(仅限食物)
- blockplaceevent - 当你放置方块时
- holdevent - 当你首次手持该物品时
- throwevent - 当你投掷该物品时(仅限可投掷物品,如雪球)
- bedenterevent - 当你进入床铺时
稍后会添加更多事件(请给我一些建议)。
什么是全局物品?
假设你创建一个物品(使用 "/mi create"),它不是全局物品,并为其设置了命令。如果这个物品的 ID 是泥土块,它不会改变普通泥土块的行为。普通的泥土块不会执行命令,但你通过 "/mi get" 获得的泥土块会执行命令。
现在,既然非全局物品是这样工作的,你可能已经猜到全局物品是什么了。你创建一个物品(使用 "/mi create"),它是全局的,并为其设置了命令。它的 ID 是泥土块。你通过 "/mi get" 获得的泥土块将执行命令,然而,Minecraft 中的其他所有泥土块也将能够执行相同的命令。
错误/问题:
如果你发现任何问题,请提交工单。
即将推出的功能:
- itembreakevent
- 附魔物品
- 可合成的物品
- 使用物品覆盖权限(以 OP 身份执行)
- 添加一个允许取消事件的标志
- 可配置的无权限消息
- 允许在 MyItems 事件中停止物品的正常行为
如果你想添加某个功能,请提交工单。
注意:如果你有疑问,请再次非常仔细地阅读所有内容,以确保你的问题不是在这里已经回答过的内容。如果你仍然无法弄清楚,请在评论区发帖。
This plugin allows you to create custom items, with custom names and lores, which can execute commands on different events.
Features:
- Create items with custom names and lores (color codes supported)
- These items can execute commands on different events
- They can execute commands as the player that used it or as the console (change from the config file)
- Use the name of the player that uses the item inside the command (with <user>)
- Use the name of the player or mob that got clicked on (only for rightclickentityevent or damageentityevent) inside the command (with <clicked>)
- Use multiple-lined lores using "&&" (without quotes) for a new line
- Create global items (see "What are global items?" below)
- Create single-use items
- Use data values for items
- Execute multiple commands on one event using " && " (without quotes) to split them
Please read the Features list, carefully, as it contains details about what the plugin can do, and how to use those. If you have a question, it's likely that the answer might be there (or somewhere else on this page).
Permissions:
By default, only OPs have these permissions.
- myitems.create
- myitems.setlore
- myitems.setcommand
- myitems.get
- myitems.use.<ItemName>
- myitems.list
- myitems.delete
Commands:
- /mi - Help page
- /mi get <name> [playername] - Get an item
- /mi list - List the items
- /mi create <name> <display name> <item ID> [-g] [-s] - Create a new item. If you use the -g flag, the item becomes global. If you use the -s flag, it becomes a single-use item
- /mi setlore <name> <lore> - Set the lore of an item
- /mi setcommand <name> <event> <command> - Set the command to be executed on certain events (see below) for an item
- /mi delete <name> - Delete an item
Events:
- leftclickevent (Event Group)
- damageentityevent - When you hit another player or a mob
- leftclickblockevent - When you left-click a block
- leftclickairevent - When you left-click in the air
- rightclickevent (Event Group)
- rightclickentityevent - When you right-click another player or a mob
- rightclickblockevent - When you right-click a block
- rightclickairevent - When you right-click in the air
- consumeevent - When you eat the item (only for food)
- blockplaceevent - When you place a block
- holdevent - When you first hold the item
- throwevent - When you throw the item (only for throwable items such as snowballs)
- bedenterevent - When you enter a bed
More events will be added later (give me some ideas).
What are global items?
Let's say you create an item (using "/mi create") that's not global, and set the commands for it. If this item has the ID of a dirt block, it won't change the behavior of a normal dirt block. Normal dirt blocks won't execute commands, but the dirt block you get with "/mi get" will.
Now, if that's how non-global items are, you can probably guess what global items are. You create an item (using "/mi create") which is global, and set the commands for it. It has the ID of a dirt block. The dirt block you get with "/mi get" will execute commands, however, every other dirt block in minecraft will also be able to execute the same commands.
Bugs/Problems:
If you find one, submit a ticket.
Upcoming Features:
- itembreakevent
- Enchanted items
- Craftable items
- Permissions override with items (execute as OP)
- Make a flag that allows to cancel the event
- Configurable no permission message
- Allow stopping the normal behavior of items in a MyItems event
If you want a feature added, submit a ticket.
Note: If you have a question, read everything again, very carefully, to make sure your question isn't something that was answered here. If you still can't figure it out, post it in the comments.
下载 MyItems
下载 MyItems
下载 MyItems
下载 MyItems
下载 MyItems
下载 MyItems
下载 MyItems
下载 MyItems
- 修复了 damageentityevent 相关的 bug
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
使床在所有维度中爆炸的模组
插件
为 Armor Poser 模组添加兼容性
插件
SkyBlock、OneBlock、Boxed、SkyGrid、AcidIsland、CaveBlock、Poseidon、StrangerRealms——以及更多!这些只是由 BentoBox 支持的基于岛屿的游戏模式之一。来自原版 ASkyBlock 的作者。
插件
一个高度兼容、功能完善且稳定的 TPA 模组
插件
AbAcc AbAcc 是一款适用于 Minecraft 服务器的管理插件,可简化玩家作弊检测与举报管理工作。工作人员可以发起并管理对可疑玩家的检查流程,并在检查完成后将其释放。
评论 0
登录后参与评分
还没有评论,来抢沙发吧