-Change_Painting:
+Painting:
type: command
debug: true
name: painting
- description: Switches the painting you are looking at
+ 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 name-of-painting"
+ - narrate "<gold>Correct usage /painting nameofpainting"
} else {
- define arg1 <c.args.get[1]>
- - if <def[arg1]> == burningskull {
+ - adjust <player.location.cursor_on.find.entities[painting].within[5].get[1]> painting:<def[arg1]>
- - adjust <player.location.cursor_on.find.entities[painting].within[5].get[1]> painting:burningskull
- } else if <def[arg1]> == kebab {
- - adjust <player.location.cursor_on.find.entities[painting].within[5].get[1]> painting:kebab
- } else if <def[arg1]> == aztec {
- - adjust <player.location.cursor_on.find.entities[painting].within[5].get[1]> painting:aztec
- } else if <def[arg1]> == aztec2 {
- - adjust <player.location.cursor_on.find.entities[painting].within[5].get[1]> painting:aztec2
- } else if <def[arg1]> == alban {
- - adjust <player.location.cursor_on.find.entities[painting].within[5].get[1]> painting:alban
- } else if <def[arg1]> == bomb {
- - adjust <player.location.cursor_on.find.entities[painting].within[5].get[1]> painting:bomb
- } else if <def[arg1]> == plant {
- - adjust <player.location.cursor_on.find.entities[painting].within[5].get[1]> painting:plant
- } else if <def[arg1]> == wasteland {
- - adjust <player.location.cursor_on.find.entities[painting].within[5].get[1]> painting:wasteland
- } else if <def[arg1]> == wanderer {
- - adjust <player.location.cursor_on.find.entities[painting].within[5].get[1]> painting:wanderer
- } else if <def[arg1]> == graham {
- - adjust <player.location.cursor_on.find.entities[painting].within[5].get[1]> painting:graham
- } else if <def[arg1]> == pool {
- - adjust <player.location.cursor_on.find.entities[painting].within[5].get[1]> painting:pool
- } else if <def[arg1]> == courbet {
- - adjust <player.location.cursor_on.find.entities[painting].within[5].get[1]> painting:courbet
- } else if <def[arg1]> == sunset {
- - adjust <player.location.cursor_on.find.entities[painting].within[5].get[1]> painting:sunset
- } else if <def[arg1]> == sea {
- - adjust <player.location.cursor_on.find.entities[painting].within[5].get[1]> painting:sea
- } else if <def[arg1]> == creebet {
- - adjust <player.location.cursor_on.find.entities[painting].within[5].get[1]> painting:creebet
- } else if <def[arg1]> == match {
- - adjust <player.location.cursor_on.find.entities[painting].within[5].get[1]> painting:match
- } else if <def[arg1]> == bust {
- - adjust <player.location.cursor_on.find.entities[painting].within[5].get[1]> painting:bust
- } else if <def[arg1]> == stage {
- - adjust <player.location.cursor_on.find.entities[painting].within[5].get[1]> painting:stage
- } else if <def[arg1]> == void {
- - adjust <player.location.cursor_on.find.entities[painting].within[5].get[1]> painting:void
- } else if <def[arg1]> == skullandroses {
- - adjust <player.location.cursor_on.find.entities[painting].within[5].get[1]> painting:skullandroses
- } else if <def[arg1]> == wither {
- - adjust <player.location.cursor_on.find.entities[painting].within[5].get[1]> painting:wither
- } else if <def[arg1]> == fighters {
- - adjust <player.location.cursor_on.find.entities[painting].within[5].get[1]> painting:fighters
- } else if <def[arg1]> == skeleton {
- - adjust <player.location.cursor_on.find.entities[painting].within[5].get[1]> painting:skeleton
- } else if <def[arg1]> == donkeykong {
- - adjust <player.location.cursor_on.find.entities[painting].within[5].get[1]> painting:donkeykong
- } else if <def[arg1]> == pointer {
- - adjust <player.location.cursor_on.find.entities[painting].within[5].get[1]> painting:pointer
- } else if <def[arg1]> == pigscene {
- - adjust <player.location.cursor_on.find.entities[painting].within[5].get[1]> painting:pigscene
- } else {
- - narrate "example /painting skeleton"
- }
}