Paste #63501: Untitled Paste

Date: 2020/01/03 16:39:04 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17


sucking:
  type: world
  debug: false
  events:
    on player right clicks block with vacuum:
    - if <context.click_type> == RIGHT_CLICK_BLOCK:
     # - narrate SUCC
      #- playeffect effect:blockdust_<context.location.material> at:<context.location.center> quantity:25 offset:0.25,0.25,0.25
      #quantity could also be 50 offset:0.35,0.35,0.35
      - playeffect effect:cloud at:<context.location.center> quantity:1
      - modifyblock <context.location> air naturally
      - define drop:<context.location.find.entities[DROPPED_ITEM].within[3].get[1]||null>
      - if <[drop]> == null:
        - stop
      - adjust <[drop]> pickup_delay:0.1s
      - push <[drop]> o:<[drop].location> destination:<player.location.add[0,2,0]> ignore_collision speed:0.6
      on player picks up <[drop]>: