- 版权类型
- 转载
- 插件英文名称
- SimpleItemGenerator
- 支持的核心
- Spigot
- 资源语言
- 英语
- 适配版本
- 1.8
- 1.9
- 1.10
- 1.11
- 1.12
- 1.13
- 1.14
- 1.15
- 1.16
- 1.17
- 1.18
- 1.19
- 1.20
- 1.20.6
- 1.21
[MD]
# SimpleItemGenerator
这是一个开源且配置简便的插件,功能强大。
**注意:插件仍处于早期阶段,可能包含漏洞,若有请及时反馈。**
## 命令与权限
* /sig - 显示帮助菜单。
对应权限:`simpleitemgenerator.commands.general`
* /sig reload - 重载插件。
对应权限:`simpleitemgenerator.commands.reload`
* /sig give <物品 ID> [玩家名称] - 给予指定玩家物品。留空则给予自己。
对应权限:`simpleitemgenerator.commands.give`
## 插件特色
* MiniMessage 格式支持:
``` YAML
items:
loreitem0:
item:
material: BLAZE_ROD
name: <red><bold>Your custom item
lore:
- <rainbow>Your imagination is your limitation</rainbow>
- '<gradient:red:blue>when you are using minimessage'
```
![图片](https://www.spigotmc.org/attachments/1201loreshowcase-png.870618/)
``` YAML
items:
loreitem1:
item:
material: BLAZE_ROD
name: <aqua><bold>1.8 MiniMessage support
lore:
- '<gradient:red:blue>With some color limitations due to'
- '<gradient:green:white>the way how items work at 1.8'
```
![图片](https://www.spigotmc.org/attachments/18loreshowcase-png.870619/)
* PlaceholderAPI 支持:
``` YAML
items:
loreitem2:
item:
material: BLAZE_ROD
name: '<green><bold>SIG has <aqua>PAPI</aqua> auto-update'
lore:
- '<light_purple>For instance:'
- "<aqua>Played time:<red><bold>%player_seconds_lived%</red> seconds"
- "<aqua>Player`s name: <red><bold>%player_name%</red>"
- "<aqua>Server time: <red><bold>%server_time_HH:mm:ss%</red>"
```
![图片](https://www.spigotmc.org/attachments/papiautoupdateshowcase-gif.870620/)
* 更多交互选项与变量:
``` YAML
items:
interactable-item:
item:
material: BLAZE_ROD
name: <red><bold>Custom item
usage:
- predicate:
at: air
button: left
commands: '[console] tellraw %player% %minimessage_<green>You clicked at <white>AIR</white> with <blue>LEFT</blue> button%'
- predicate:
at: air
button: right
commands: '[console] tellraw %player% %minimessage_<green>You clicked at <white>AIR</white> with <red>RIGHT</red> button%'
- predicate:
at: air
button: drop
commands: '[console] tellraw %player% %minimessage_<green>You clicked at <white>AIR</white> with <gold>DROP</gold> button%'
- predicate:
at: block
button: left
commands:
- '[console] tellraw %player% %minimessage_<green>You clicked at <dark_gray>BLOCK</dark_gray> with <blue>LEFT</blue> button%'
- '[console] tellraw %player% %minimessage_<color:#8769ff>The target`s position is <red>%target_x% %target_y% %target_z%</red>%'
- predicate:
at: block
button: right
commands:
- '[console] tellraw %player% %minimessage_<green>You clicked at <dark_gray>BLOCK</dark_gray> with <red>RIGHT</red> button%'
- '[console] tellraw %player% %minimessage_<color:#8769ff>The target`s position is <red>%target_x% %target_y% %target_z%</red>%'
- predicate:
at: block
button: drop
commands:
- '[console] tellraw %player% %minimessage_<green>You clicked at <dark_gray>BLOCK</dark_gray> with <gold>DROP</gold> button%'
- '[console] tellraw %player% %minimessage_<color:#8769ff>The target`s position is <red>%target_x% %target_y% %target_z%</red>%'
- predicate:
at: entity
button: left
commands:
- '[console] tellraw %player% %minimessage_<green>You clicked at <color:#ff96b4>ENTITY</color> with <blue>LEFT</blue> button%'
- '[console] tellraw %player% %minimessage_<color:#8769ff>The target`s position is <red>%target_x% %target_y% %target_z%</red>%'
- predicate:
at: entity
button: right
commands:
- '[console] tellraw %player% %minimessage_<green>You clicked at <color:#ff96b4>ENTITY</color> with <red>RIGHT</red> button%'
- '[console] tellraw %player% %minimessage_<color:#8769ff>The target`s position is <red>%target_x% %target_y% %target_z%</red>%'
- predicate:
at: entity
button: drop
commands:
- '[console] tellraw %player% %minimessage_<green>You clicked at <color:#ff96b4>ENTITY</color> with <gold>DROP</gold> button%'
- '[console] tellraw %player% %minimessage_<color:#8769ff>The target`s position is <red>%target_x% %target_y% %target_z%</red>%'
- predicate:
at: player
button: left
commands:
- '[console] tellraw %player% %minimessage_<green>You clicked at <color:#ff7b1c>PLAYER</color> with <blue>LEFT</blue> button%'
- '[console] tellraw %player% %minimessage_<color:#8769ff>The target`s position is <red>%target_x% %target_y% %target_z%</red>%'
- predicate:
at: player
button: right
commands:
- '[console] tellraw %player% %minimessage_<green>You clicked at <color:#ff7b1c>PLAYER</color> with <red>RIGHT</red> button%'
- '[console] tellraw %player% %minimessage_<color:#8769ff>The target`s position is <red>%target_x% %target_y% %target_z%</red>%'
- predicate:
at: player
button: drop
commands:
- '[console] tellraw %player% %minimessage_<green>You clicked at <color:#ff7b1c>PLAYER</color> with <gold>DROP</gold> button%'
- '[console] tellraw %player% %minimessage_<color:#8769ff>The target`s position is <red>%target_x% %target_y% %target_z%</red>%'
- predicate:
at: player
commands:
- '[console] tellraw %player% %minimessage_<color:#9eff0d>The player`s name is <color:#ff7b1c>%player_target%</color>%'
```
![图片](https://www.spigotmc.org/attachments/logic_showcase_optimized2-ezgif-com-optimize-gif.870630/)
* 任何地方均可使用:
``` YAML
items:
helmet:
item:
material: GOLDEN_HELMET
name: '<dark_green><bold>SIG is general purpose'
lore:
- '<green>It means that you can use it'
- '<green>not only for <light_purple><bold>hub</light_purple> items,'
- '<green>but also for <light_purple><bold>minigames</light_purple>, <light_purple><bold>survival</light_purple>'
- '<green>or even <light_purple><bold>MCMMORPG</light_purple>!'
enchantments:
minecraft:protection: 2
unbreakable: true
attributes:
- operation: ADD_VALUE
name: health
attribute: MAX_HEALTH
amount: 5
slot: HEAD
- operation: ADD_VALUE
name: armor
attribute: ARMOR
amount: 2
slot: HEAD
usage:
cancel: false
chestplate:
item:
material: DIAMOND_CHESTPLATE
name: '<dark_red><bold>Set up your items'
lore:
- '<red>You can make items <blue>unbreakable</blue>,'
- '<red>with <blue>enchantments</blue> or <blue>attributes</blue>.'
enchantments:
minecraft:protection: 10
minecraft:fire_protection: 5
unbreakable: true
attributes:
- operation: ADD_VALUE
name: toughness
attribute: ARMOR_TOUGHNESS
amount: 40
slot: CHEST
- operation: ADD_VALUE
name: armor
attribute: ARMOR
amount: 70
slot: CHEST
usage:
cancel: false
leggings:
item:
material: IRON_LEGGINGS
name: '<dark_purple>Hide unwanted lore components'
lore:
- "<light_purple>Usually, you don't want players to see"
- "<light_purple>enchantments, attributes or unbreakability."
- "<light_purple>For that purpose you can use <aqua>item flags</aqua>!"
- ""
- "<light_purple>By the way, this item is glowing."
unbreakable: true
enchantments:
minecraft:fortune: 1
item-flags:
- HIDE_UNBREAKABLE
- HIDE_ENCHANTS
- HIDE_ATTRIBUTES
usage:
cancel: false
sword:
item:
material: NETHERITE_SWORD
cmd: 1
name: '<color:#ff7c17>Use textures</color>'
lore:
- '<color:#ffa861>Apply <color:#88aa3a>custom model data</color></color>'
- '<color:#ffa861>to your custom items.</color>'
- '<color:#ffa861>So you would be able</color>'
- '<color:#ffa861>to use texture packs.</color>'
- ''
- '<dark_red>Disclaimer! Texture pack</dark_red>'
- '<dark_red>auto-generation is not</dark_red>'
- '<dark_red>yet supported.</dark_red>'
unbreakable: true
item-flags:
- HIDE_UNBREAKABLE
- HIDE_ENCHANTS
- HIDE_ATTRIBUTES
usage:
cancel: false
```
![图片](https://www.spigotmc.org/attachments/usage_showcase_optimized-ezgif-com-optimize-gif.870635/)
使用的纹理包:[点此下载](https://www.planetminecraft.com/texture-pack/super-items-resource-pack/download/file/18250895/)
## 支持
若你在使用插件时遇到任何问题,你可以在 github 上提交议题。除此之外你可以在评论区或 github 询问有关插件介绍的问题。
[/MD]
# SimpleItemGenerator
这是一个开源且配置简便的插件,功能强大。
**注意:插件仍处于早期阶段,可能包含漏洞,若有请及时反馈。**
## 命令与权限
* /sig - 显示帮助菜单。
对应权限:`simpleitemgenerator.commands.general`
* /sig reload - 重载插件。
对应权限:`simpleitemgenerator.commands.reload`
* /sig give <物品 ID> [玩家名称] - 给予指定玩家物品。留空则给予自己。
对应权限:`simpleitemgenerator.commands.give`
## 插件特色
* MiniMessage 格式支持:
``` YAML
items:
loreitem0:
item:
material: BLAZE_ROD
name: <red><bold>Your custom item
lore:
- <rainbow>Your imagination is your limitation</rainbow>
- '<gradient:red:blue>when you are using minimessage'
```
![图片](https://www.spigotmc.org/attachments/1201loreshowcase-png.870618/)
``` YAML
items:
loreitem1:
item:
material: BLAZE_ROD
name: <aqua><bold>1.8 MiniMessage support
lore:
- '<gradient:red:blue>With some color limitations due to'
- '<gradient:green:white>the way how items work at 1.8'
```
![图片](https://www.spigotmc.org/attachments/18loreshowcase-png.870619/)
* PlaceholderAPI 支持:
``` YAML
items:
loreitem2:
item:
material: BLAZE_ROD
name: '<green><bold>SIG has <aqua>PAPI</aqua> auto-update'
lore:
- '<light_purple>For instance:'
- "<aqua>Played time:<red><bold>%player_seconds_lived%</red> seconds"
- "<aqua>Player`s name: <red><bold>%player_name%</red>"
- "<aqua>Server time: <red><bold>%server_time_HH:mm:ss%</red>"
```
![图片](https://www.spigotmc.org/attachments/papiautoupdateshowcase-gif.870620/)
* 更多交互选项与变量:
``` YAML
items:
interactable-item:
item:
material: BLAZE_ROD
name: <red><bold>Custom item
usage:
- predicate:
at: air
button: left
commands: '[console] tellraw %player% %minimessage_<green>You clicked at <white>AIR</white> with <blue>LEFT</blue> button%'
- predicate:
at: air
button: right
commands: '[console] tellraw %player% %minimessage_<green>You clicked at <white>AIR</white> with <red>RIGHT</red> button%'
- predicate:
at: air
button: drop
commands: '[console] tellraw %player% %minimessage_<green>You clicked at <white>AIR</white> with <gold>DROP</gold> button%'
- predicate:
at: block
button: left
commands:
- '[console] tellraw %player% %minimessage_<green>You clicked at <dark_gray>BLOCK</dark_gray> with <blue>LEFT</blue> button%'
- '[console] tellraw %player% %minimessage_<color:#8769ff>The target`s position is <red>%target_x% %target_y% %target_z%</red>%'
- predicate:
at: block
button: right
commands:
- '[console] tellraw %player% %minimessage_<green>You clicked at <dark_gray>BLOCK</dark_gray> with <red>RIGHT</red> button%'
- '[console] tellraw %player% %minimessage_<color:#8769ff>The target`s position is <red>%target_x% %target_y% %target_z%</red>%'
- predicate:
at: block
button: drop
commands:
- '[console] tellraw %player% %minimessage_<green>You clicked at <dark_gray>BLOCK</dark_gray> with <gold>DROP</gold> button%'
- '[console] tellraw %player% %minimessage_<color:#8769ff>The target`s position is <red>%target_x% %target_y% %target_z%</red>%'
- predicate:
at: entity
button: left
commands:
- '[console] tellraw %player% %minimessage_<green>You clicked at <color:#ff96b4>ENTITY</color> with <blue>LEFT</blue> button%'
- '[console] tellraw %player% %minimessage_<color:#8769ff>The target`s position is <red>%target_x% %target_y% %target_z%</red>%'
- predicate:
at: entity
button: right
commands:
- '[console] tellraw %player% %minimessage_<green>You clicked at <color:#ff96b4>ENTITY</color> with <red>RIGHT</red> button%'
- '[console] tellraw %player% %minimessage_<color:#8769ff>The target`s position is <red>%target_x% %target_y% %target_z%</red>%'
- predicate:
at: entity
button: drop
commands:
- '[console] tellraw %player% %minimessage_<green>You clicked at <color:#ff96b4>ENTITY</color> with <gold>DROP</gold> button%'
- '[console] tellraw %player% %minimessage_<color:#8769ff>The target`s position is <red>%target_x% %target_y% %target_z%</red>%'
- predicate:
at: player
button: left
commands:
- '[console] tellraw %player% %minimessage_<green>You clicked at <color:#ff7b1c>PLAYER</color> with <blue>LEFT</blue> button%'
- '[console] tellraw %player% %minimessage_<color:#8769ff>The target`s position is <red>%target_x% %target_y% %target_z%</red>%'
- predicate:
at: player
button: right
commands:
- '[console] tellraw %player% %minimessage_<green>You clicked at <color:#ff7b1c>PLAYER</color> with <red>RIGHT</red> button%'
- '[console] tellraw %player% %minimessage_<color:#8769ff>The target`s position is <red>%target_x% %target_y% %target_z%</red>%'
- predicate:
at: player
button: drop
commands:
- '[console] tellraw %player% %minimessage_<green>You clicked at <color:#ff7b1c>PLAYER</color> with <gold>DROP</gold> button%'
- '[console] tellraw %player% %minimessage_<color:#8769ff>The target`s position is <red>%target_x% %target_y% %target_z%</red>%'
- predicate:
at: player
commands:
- '[console] tellraw %player% %minimessage_<color:#9eff0d>The player`s name is <color:#ff7b1c>%player_target%</color>%'
```
![图片](https://www.spigotmc.org/attachments/logic_showcase_optimized2-ezgif-com-optimize-gif.870630/)
* 任何地方均可使用:
``` YAML
items:
helmet:
item:
material: GOLDEN_HELMET
name: '<dark_green><bold>SIG is general purpose'
lore:
- '<green>It means that you can use it'
- '<green>not only for <light_purple><bold>hub</light_purple> items,'
- '<green>but also for <light_purple><bold>minigames</light_purple>, <light_purple><bold>survival</light_purple>'
- '<green>or even <light_purple><bold>MCMMORPG</light_purple>!'
enchantments:
minecraft:protection: 2
unbreakable: true
attributes:
- operation: ADD_VALUE
name: health
attribute: MAX_HEALTH
amount: 5
slot: HEAD
- operation: ADD_VALUE
name: armor
attribute: ARMOR
amount: 2
slot: HEAD
usage:
cancel: false
chestplate:
item:
material: DIAMOND_CHESTPLATE
name: '<dark_red><bold>Set up your items'
lore:
- '<red>You can make items <blue>unbreakable</blue>,'
- '<red>with <blue>enchantments</blue> or <blue>attributes</blue>.'
enchantments:
minecraft:protection: 10
minecraft:fire_protection: 5
unbreakable: true
attributes:
- operation: ADD_VALUE
name: toughness
attribute: ARMOR_TOUGHNESS
amount: 40
slot: CHEST
- operation: ADD_VALUE
name: armor
attribute: ARMOR
amount: 70
slot: CHEST
usage:
cancel: false
leggings:
item:
material: IRON_LEGGINGS
name: '<dark_purple>Hide unwanted lore components'
lore:
- "<light_purple>Usually, you don't want players to see"
- "<light_purple>enchantments, attributes or unbreakability."
- "<light_purple>For that purpose you can use <aqua>item flags</aqua>!"
- ""
- "<light_purple>By the way, this item is glowing."
unbreakable: true
enchantments:
minecraft:fortune: 1
item-flags:
- HIDE_UNBREAKABLE
- HIDE_ENCHANTS
- HIDE_ATTRIBUTES
usage:
cancel: false
sword:
item:
material: NETHERITE_SWORD
cmd: 1
name: '<color:#ff7c17>Use textures</color>'
lore:
- '<color:#ffa861>Apply <color:#88aa3a>custom model data</color></color>'
- '<color:#ffa861>to your custom items.</color>'
- '<color:#ffa861>So you would be able</color>'
- '<color:#ffa861>to use texture packs.</color>'
- ''
- '<dark_red>Disclaimer! Texture pack</dark_red>'
- '<dark_red>auto-generation is not</dark_red>'
- '<dark_red>yet supported.</dark_red>'
unbreakable: true
item-flags:
- HIDE_UNBREAKABLE
- HIDE_ENCHANTS
- HIDE_ATTRIBUTES
usage:
cancel: false
```
![图片](https://www.spigotmc.org/attachments/usage_showcase_optimized-ezgif-com-optimize-gif.870635/)
使用的纹理包:[点此下载](https://www.planetminecraft.com/texture-pack/super-items-resource-pack/download/file/18250895/)
## 支持
若你在使用插件时遇到任何问题,你可以在 github 上提交议题。除此之外你可以在评论区或 github 询问有关插件介绍的问题。
[/MD]