yuttyann / ScriptBlockPlus

任意のブロックにスクリプトを設定するプラグインです。
https://www.spigotmc.org/resources/scriptblockplus.78413/
GNU General Public License v3.0
33 stars 9 forks source link

Can't successfully add script that costs mod items (or generic ones) #36

Closed JenevieveShe closed 2 years ago

JenevieveShe commented 2 years ago

Describe the bug/不具合の概要
A clear and concise description of what the bug is. $item script can't properly cost generic items or mod items.

Server/サーバー
Type: CatServer
Version: 1.12.2
Plugins: AuthMe BanItem CMILib CoreProtect EssentialsX EssentialsXChat EssentialsXProtect EssentialsXSpawn GroupManager Holographic Displays LockettePro LuckPerms MaxHealth mcMMO Multiverse NeverLag NoBuguppercaseLowercase PlaceholderAPI ProtocolLib QuickShop Residence rpgitem reloaded ScriptBlockPlus v2.1.1 JV8 Vault VillageMarker worldedit worldguard

To Reproduce/再現手順
Steps to reproduce the behavior: (Texts..) I issued the command and succussfully attached the script to target block: /sbp interact create $item:5834 1 but when I interact with the target block, I was told that I didn't have the item [AIR:0] with the amount 1 I tried other item ids, but the plugin still tells me the same or just says I entered the values wrong, but sometimes when I use certains item ids like double_plant:4,(rose bush) it works fine. Please help? I need it to successfully cost unique items from the CustomNPC's mod.

Expected behavior/期待される動作
A clear and concise description of what you expected to happen. It's supposed to successfully cost 1 (purple broken orb from CustomNPC's mod) every time a player interact with the script block.

Screenshots/スクリーンショット
If applicable, add screenshots to help explain your problem. 2022-01-09_19 10 36

Additional context/備考
Add any other context about the problem here. If you need to, please contact me at my email: jenevieveshe@outlook.com

yuttyann commented 2 years ago

It is not possible to specify items that have been added by mods. You can only specify items that are implemented in BukkitAPI.