- D1 Meta Docs - Denizen Script -
Home Page / Pi to one million places / Contact mcmonkey / Donate / Paste Scripts / Denizen Help /
You are browsing as a guest.
Login | Register








The script repo is an archive of historical scripts. For modern scripts, or to post your own, please use the Scripts forum section.





Staff Pick: Change Painting Command


By Cromis
Created: 2015/05/09 06:34:31 UTC-07:00 (9 years and 15 days ago)
Edited: 2015/05/30 14:17:25 UTC-07:00 (8 years and 359 days ago)
Likes: 0

Staff pick as of: 2015/05/18 13:42:11 UTC-07:00 (9 years and 6 days ago)
Denizen Version: 0.9.6-b1575
Script Version: 1.0
Description:

Change_Painting is a command that allows you to change the painting you are looking at to the name of the painting you input in chat.

It is as simple as looking at a painting and typing "/painting donkeykong" to change the painting you are looking at to the donkeykong painting.

Players need the Cromis.Painting permission to use this command

Known issues: If the painting does not have enough room around it to turn into a bigger painting it will not change.


Download script | View raw script
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
2100

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]>
                }









View History