spiderdeed:
type: item
material: 339
display name: <red>Deed for Spider
lore:
- Right Clicking with with deed
- will make a Spider Mount appear.
spidermount:
type: world
events:
on player right clicks with i@spiderdeed:
- if "<context.location || null>" == null && '<player.flag[spideractive]>' == 0 ||'<player.flag[spideractive]>' == null {
- ^flag <player> spideractive:1
- ^execute as_op "npc create Spider --type spider --trait controllable"
- ^execute as_op "npc mount"
} else if "<context.location || null>" == null && '<player.flag[spideractive]>' == 1 {
- ^flag <player> spideractive:0
- ^execute as_op "npc sel Spider"
- ^execute as_op "npc rem"
}