Date: 2016/04/15 04:48:18 UTC-07:00
Type: Denizen Script
PlayerSoulboundItems:
type: world
events:
on player dies:
- foreach <context.drops> {
- narrate "%value%"
- if %value% contains_any i@DRAGONSWORD narrate "Test:It worked!"
}
- narrate "<context.drops>"
- if <context.drops> contains i@DragonSword narrate "Test:You dropped something."
DragonSword:
type: item
material: stone_sword
display name: <&3><&l>DragonSword
lore:
- <&7>Bound to <&8><player.name>
recipe:
- i@air|i@WitherClaw|i@air
- i@air|i@DragonTooth|i@air
- i@air|i@Handle|i@air
##This is what it returns:
##Filled tag <context.drops> with 'li@i@DRAGONSWORD[display_name=&ss3&sslDragonSword;lore=&ss7Bound to &ss8SindeR]'
##The "if <context.drops> contains i@DragonSword narrate" doesn't get triggered and neither does the "foreach <context.drops>"