Paste #67558: Untitled Paste

Date: 2020/04/16 10:20:10 UTC-07: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


RtpCmd:
  type: command
  name: techrtp
  usage: /techrtp
  description: "Basically rtp"
  permission: tech.rtp
  permission message: No
  script:
  - mark again
  - define loc "<util.random.int[-4000].to[4000]>,1,<util.random.int[-4000].to[4000]>,world"
  - chunkload <def[loc].as_location.chunk> duration:10s
  - define spawnables <cuboid[<def[loc].as_location.sub[10,10,10]>|<def[loc].as_location.add[10,10,10]>].spawnable_blocks[grass_block|cobblestone|air|sand|sandstone|stone|diorite|andesite|granite]>
  - if <def[spawnables].is_empty>:
    - narrate "Ya yeet"
    - goto again
  - teleport <player> <def[spawnables].random>