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