# 说明
SimpleItemGenerator(SIG) 是一个开源插件,配置简单,但功能强大。
# Wiki
关于插件的更多信息,您可以在[这里](https://github.com/ValeraShimchuck/SimpleItemGenerator/wiki/Configuration)找到。
# 重要
Simple item generator 仍处于早期阶段,因此任何反馈都会受到欢迎。
如果您对插件不满意,请告诉我您期望从该插件获得什么,或者我如何调整它。
## 如果您在使用最新版本时遇到问题,请[在此](https://discord.gg/ksXEuxCqdC)告知我,不要下载插件的旧版本!
# 插件概览
# 命令和权限
要能够看到 `/simpleitemgenerator` 命令,您需要具有 `simpleitemgenerator.commands.general` 权限
`/simpleitemgenerator reload` - 重新加载插件。 需要 `simpleitemgenerator.commands.reload` 权限
`/simpleitemgenerator give - [player] [amount]` - item 是您之前配置的项目的键,player 和 amount 是可选的。 需要 `simpleitemgenerator.commands.give` 权限
`/simpleitemgenerator set_slot
-
[player] [amount]` - 将自定义项目设置为特定插槽。 Player 和 amount 是可选的
需要 `simpleitemgenerator.commands.set_slot` 权限
# 功能
## DeluxeMenus 支持
自 DeluxeMenus 1.14.1 起,您可以在 DM 菜单配置中使用 SimpleItemGenerator。 查看 [wiki](https://github.com/ValeraShimchuck/SimpleItemGenerator/wiki/DeluxeMenus-support)。 例子:
I am a SIG item'
lore:
- 'Sig lore'
```
## MiniMessage 支持

Your custom item
lore:
- Your imagination is your limitation
- 'when you are using minimessage'
```
## PlaceholderAPI 自动更新

SIG has PAPI auto-update'
lore:
- 'For instance:'
- "Played time:%player_seconds_lived% seconds"
- "Player`s name: %player_name% "
- "Server time: %server_time_HH:mm:ss% "
```
## 许多交互选项和占位符

Custom item
usage:
- predicate:
at: air
button: left
commands: '[console] tellraw %player% %minimessage_You clicked at AIR with LEFT button%'
- predicate:
at: air
button: right
commands: '[console] tellraw %player% %minimessage_You clicked at AIR with RIGHT button%'
- predicate:
at: air
button: drop
commands: '[console] tellraw %player% %minimessage_You clicked at AIR with DROP button%'
- predicate:
at: block
button: left
commands:
- '[console] tellraw %player% %minimessage_You clicked at BLOCK with LEFT button%'
- '[console] tellraw %player% %minimessage_The target`s position is %target_x% %target_y% %target_z% %'
- predicate:
at: block
button: right
commands:
- '[console] tellraw %player% %minimessage_You clicked at BLOCK with RIGHT button%'
- '[console] tellraw %player% %minimessage_The target`s position is %target_x% %target_y% %target_z% %'
- predicate:
at: block
button: drop
commands:
- '[console] tellraw %player% %minimessage_You clicked at BLOCK with DROP button%'
- '[console] tellraw %player% %minimessage_The target`s position is %target_x% %target_y% %target_z% %'
- predicate:
at: entity
button: left
commands:
- '[console] tellraw %player% %minimessage_You clicked at ENTITY with LEFT button%'
- '[console] tellraw %player% %minimessage_The target`s position is %target_x% %target_y% %target_z% %'
- predicate:
at: entity
button: right
commands:
- '[console] tellraw %player% %minimessage_You clicked at ENTITY with RIGHT button%'
- '[console] tellraw %player% %minimessage_The target`s position is %target_x% %target_y% %target_z% %'
- predicate:
at: entity
button: drop
commands:
- '[console] tellraw %player% %minimessage_You clicked at ENTITY with DROP button%'
- '[console] tellraw %player% %minimessage_The target`s position is %target_x% %target_y% %target_z% %'
- predicate:
at: player
button: left
commands:
- '[console] tellraw %player% %minimessage_You clicked at PLAYER with LEFT button%'
- '[console] tellraw %player% %minimessage_The target`s position is %target_x% %target_y% %target_z% %'
- predicate:
at: player
button: right
commands:
- '[console] tellraw %player% %minimessage_You clicked at PLAYER with RIGHT button%'
- '[console] tellraw %player% %minimessage_The target`s position is %target_x% %target_y% %target_z% %'
- predicate:
at: player
button: drop
commands:
- '[console] tellraw %player% %minimessage_You clicked at PLAYER with DROP button%'
- '[console] tellraw %player% %minimessage_The target`s position is %target_x% %target_y% %target_z% %'
- predicate:
at: player
commands:
- '[console] tellraw %player% %minimessage_The player`s name is %player_target%%'
```
Textures can be found [here](https://www.planetminecraft.com/texture-pack/super-items-resource-pack/)
## 可在任何地方使用

SIG is general purpose'
lore:
- 'It means that you can use it'
- 'not only for hub items,'
- 'but also for minigames , survival '
- 'or even MCMMORPG !'
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: 'Set up your items'
lore:
- 'You can make items unbreakable ,'
- 'with enchantments or attributes .'
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: 'Hide unwanted lore components'
lore:
- "Usually, you don't want players to see"
- "enchantments, attributes or unbreakability."
- "For that purpose you can use item flags !"
- ""
- "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: 'Use textures'
lore:
- 'Apply custom model data'
- 'to your custom items.'
- 'So you would be able'
- 'to use texture packs.'
- ''
- 'Disclaimer! Texture pack '
- 'auto-generation is not '
- 'yet supported. '
unbreakable: true
item-flags:
- HIDE_UNBREAKABLE
- HIDE_ENCHANTS
- HIDE_ATTRIBUTES
usage:
cancel: false
```
Textures can be found [here](https://www.planetminecraft.com/texture-pack/super-items-resource-pack/)
# 支持
- WorldGuard (7.x.x)
- Nexo
- Oraxen
- ItemsAdder
- HeadDatabase
- PlaceholderAPI
- 自定义药水
- 皮革颜色
- [自定义NBT](https://github.com/ValeraShimchuck/SimpleItemGenerator/wiki/Configuration#custom-nbt)
- 更多!
# 反馈
如果您在使用插件时遇到任何问题,请在插件的GitHub上提交问题。 您也可以通过GitHub readme中列出的其他方式与我联系。