Prevent suffocation while using /rtp (#445)

* rtp: check for suffocation before teleport

* safety resolvers: teleport to middle of block

* rtp: Fix negative coordinates being off by one

* unsafe blocks: add campfires and magma

* unsafe blocks: deduplicate block id formatting
This commit is contained in:
Jacob McSwain authored and GitHub committed 2023-06-29 10:05:57 +01:00
1 parent 377e46ff92
commit 771c16ed1a
6 files changed
+118 -26

No files matched your search

@@ -22,4 +22,12 @@ unsafe_blocks:
- 'minecraft:cave_air'
- 'minecraft:void_air'
- 'minecraft:pointed_dripstone'
- 'minecraft:cactus'
- 'minecraft:cactus'
- 'minecraft:magma_block'
- 'minecraft:campfire'
- 'minecraft:soul_campfire'
# Blocks that are safe to teleport into
safe_occupation_blocks:
- 'minecraft:air'
- 'minecraft:cave_air'