Painting:
type: command
debug: false
name: painting
description: Switches the painting you are looking at
usage: /painting
permission: Cromis.Painting
permission message: Sorry, <player.name>, you can't use my command because you don't have the permission '<permission>'!
script:
- define arg_size <context.args.size>
- if %arg_size% < 1 {
- narrate "<gold>Correct usage /painting nameofpainting"
} else {
- define arg1 <c.args.get[1]>
- adjust <player.location.cursor_on.find.entities[painting].within[5].get[1]> painting:<def[arg1]>
}