Paste #79702: Yaw in the rotate command does not work.

Date: 2021/01/13 04:08:57 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


MyNewScript:
    type: world
    debug: true
    subpaths:
        rotate:
        - create player "Adam Blaese" adam_blaese_location save:adam_blaese
        #- narrate  hello
        - flag server cutscene_npc_adam_blaese:<entry[adam_blaese].created_npc>
        #- ~rotate <player> yaw:0 pitch:-2 duration:20t
        - adjust <player> gamemode:spectator
        - wait 14t
        - adjust <player> spectate:<server.flag[cutscene_npc_adam_blaese].as_npc>
        - ~rotate <server.flag[cutscene_npc_adam_blaese].as_entity> yaw:10 pitch:-2 duration:20t
        release:
        - adjust <player> spectate:<player>
        remove:
        - remove <server.flag[cutscene_npc_adam_blaese].as_entity>
        removepotion:
        - adjust player remove_effects:true
    events:
        on player chats:
        - if <context.message> == rotate:
            - inject locally subpaths.rotate
        - if <context.message> == release:
            - inject locally subpaths.release
        - if <context.message> == remove:
            - inject locally subpaths.remove
        - if <context.message> == potionremove:
            - inject locally subpaths.removepotion