You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
5 lines
485 B
JavaScript
5 lines
485 B
JavaScript
export { world, system, BlockPermutation, ItemStack, InputButton, ButtonState } from "@minecraft/server";
|
|
export function isCreative(player) { try { return ("" + player.getGameMode()).toLowerCase().includes("creative"); } catch { return false; } }
|
|
export function getDir(perm) { try { return perm.getState("minecraft:cardinal_direction") ?? "south"; } catch { return "south"; } }
|
|
export function safeGetBlock(dim, pos) { try { return dim.getBlock(pos); } catch { return undefined; } }
|