#Give effect to player while he's inside structure
5 messages · Page 1 of 1 (latest)
Paste version of example.js from @chilly pasture
Could have used KubtUtils
https://github.com/ErrorMikey/KubeUtils/blob/main/docs/modules/level.md#isstructureatlocationlocation-blockpos-structureid-string--resourcelocation
isStructureAtLocation(location: BlockPos, structureId: String | ResourceLocation)
Attempts to check if a specific structure is at a specified block location using a structures resource location.
@return boolean
const kuLevel = new Ku.Level(...);
const isThere = kuLevel.isStructureAtLocation(BlockPos.ZERO, "minecraft:structures/god_knows");
console.log(isThere) // true or false```