Spawn per Island + Soft Safe Spot Teleport
Spawn Per Island
- added an option to allow spawn points per island by using
/gamemode setspawnUsing/gamemodewill teleport to the spawn point instead of the home location For me it makes sense to have a spawn point different than homes, a nice setting to have per gamemode, it's disabled by default - Fixed an issue with island's center being in a negative Y coordinate
/admin setspawnpointdidn't work in other dimensions
Soft Safe Spot Teleport
- I made this because I have so many issues with the main
SafeSpotTeleportnever being consistent You can enable it with a setting, default is disabled What it does Finding the nearest safe spot only in the Y axis, if no block is found then it will make a glass block on the spawn point Not perfect, but it does the job done for me, I hope for other people too, could be improved.
Fixes
- teleporting other entities than players when
endand/ornetherare disabled inserver.properties - inTeleport flag was not removed on the player when using and end portal
- pasting an island on other dimensions when the world's minHeight > islandHeight (It happens when setting
area-heightto a negative coordinate)
To solve this I take the max value between world minHeight (+2) and island's height + 2 to give some space for bedrock to generate (in the nether for example) - an enum comparaison
- formatting
Islands already have spawn-point. Visit's addon uses it for player teleportation.
It is just players cannot change it.
Also, I am not sold on soft-safe-spot teleport. Most of BentoBox gamemodes uses Void Worlds. So it is easy to break one block and end up in a situation where in the whole Y column there are no blocks at all.
They are options, disabled by default.
For the SpawnPerIsland, It gives the player the ability to set the spawn location on each dimension. Also it's used differently than homes, spawn-point is the spawn of the island, homes are homes
The SoftSafeSpotTeleport will create a block of glass if there is no block at the coordinates