So in the Lifesteal-SMP-Plugin the "lives" (hearts) are red dye but with NBT data, in my /dupe script if I blacklist red dye it can still be duped, but if I add the actual ingame name "heart_item" the skript runs into an error. Same with the beacon "revive_beacon" and carrot on a stick "heart_fragment_item" any way to fix this?
Here code:
Here code:
Code:
options:
blacklist: command block and bedrock and repeating command block and debug stick and player head and heart fragment item and heart item and revive beacon
prefix: &r&2Searis Dupe | &r
command /dupe:
cooldown: 2 seconds
cooldown message: {@prefix} Before duping again, wait &6%remaining time%!
cooldown bypass: dupe.cooldown.bypass
trigger:
if {@blacklist} contains type of tool:
send "{@prefix} &3You may &l&4not &r&3dupe that item!"
stop
if lore of player's tool contains "&4Undupable":
send "{@prefix} &3You may &l&4not &r&3dupe that item!"
stop
else:
give player's tool to player
stop
command /undupe:
cooldown: 5 seconds
cooldown message: {@prefix} Before unduping again, wait &6%remaining time%! %nl%&r{@prefix}If you think this is a &4mistake &rcontact a &9developer&r.
cooldown bypass: dupe.undupe.cooldown.bypass
trigger:
if lore of player's tool is empty:
set lore of player's tool to "&4Undupable"
else:
add "" to lore of player's tool
set lore of player's tool to "%lore of player's tool% %nl%&4Undupable"