Paste #71355: Untitled Paste

Date: 2020/06/24 16:34:23 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


#+ ---------------------------------------------------------------------------------------------
#|  _                                   _ _
#| | |                                 | (_)
#| | |_ _ __ __ _ _ __ ___  _ __   ___ | |_ _ __   ___
#| | __| '__/ _` | '_ ` _ \| '_ \ / _ \| | | '_ \ / _ \
#| | |_| | | (_| | | | | | | |_) | (_) | | | | | |  __/
#|  \__|_|  \__,_|_|_|_| |_| .__/ \___/|_|_|_| |_|\___|        _                           _
#| | |             (_)     | | | |   | |                      | |                         | |
#| | |__  _   _     _ _   _|_|_| |_  | |__  _ __ ___  __ _  __| | ___ _ __ _   _ _ __ ___ | |__
#| | '_ \| | | |   | | | | / __| __| | '_ \| '__/ _ \/ _` |/ _` |/ __| '__| | | | '_ ` _ \| '_ \
#| | |_) | |_| |   | | |_| \__ \ |_  | |_) | | |  __/ (_| | (_| | (__| |  | |_| | | | | | | |_) |
#| |_.__/ \__, |   | |\__,_|___/\__| |_.__/|_|  \___|\__,_|\__,_|\___|_|   \__,_|_| |_| |_|_.__/
#|         __/ |  _/ |
#|        |___/  |__/
#| and some help from MoonstoneStudios
#+ ---------------------------------------------------------------------------------------------- i do this with all my scriptss

# you can replace the sponge with the cosmetic thing. it is just for testing
trampoline_cosmetic:
    type: world
    events:
        on player right clicks with:slime_block:
        - run create_trampoline
        - determine canceled

create_trampoline:
    type: task
    script:
        #makes the cuboid
        - note <cuboid[<player.location.add[1,0,2]>|<player.location.add[-1,1,4]>]> as:trampoline
        #bottom middle
        - modifyblock <player.location.add[0,0,2]> slime_block
        - playeffect effect:TOTEM at:<player.location.add[0,1,2]> quantity:35
        #middle
        - modifyblock <player.location.add[0,0,3]> slime_block
        - playeffect effect:TOTEM at:<player.location.add[0,1,3]> quantity:35
        #top middle
        - modifyblock <player.location.add[0,0,4]> slime_block
        - playeffect effect:TOTEM at:<player.location.add[0,1,4]> quantity:35
        #bottom left
        - modifyblock <player.location.add[1,0,2]> slime_block
        - playeffect effect:TOTEM at:<player.location.add[1,1,2]> quantity:35
        #middle left
        - modifyblock <player.location.add[1,0,3]> slime_block
        - playeffect effect:TOTEM at:<player.location.add[1,1,3]> quantity:35
        #top left
        - modifyblock <player.location.add[1,0,4]> slime_block
        - playeffect effect:TOTEM at:<player.location.add[1,1,4]> quantity:35
        #bottom right
        - modifyblock <player.location.add[-1,0,2]> slime_block
        - playeffect effect:TOTEM at:<player.location.add[-1,1,2]> quantity:35
        #middle right
        - modifyblock <player.location.add[-1,0,3]> slime_block
        - playeffect effect:TOTEM at:<player.location.add[-1,1,3]> quantity:35
        #top right
        - modifyblock <player.location.add[-1,0,4]> slime_block
        - playeffect effect:TOTEM at:<player.location.add[-1,1,4]> quantity:35
        - wait 30s
        #will remove the slimeblocks in the cuboid
        - wait 3s
        - modifyblock <cuboid[trampoline]> air
        - note remove <cuboid[trampoline]>

goes_on_trampoline:
    type: world
    events:
        after player enters trampoline:
            - shoot <player> speed:10