EducationCreativeFilter 5.46.0
Recognises the creative inventory entries that vanilla Bedrock only shows in worlds with the "Education Edition" option: the Chemistry content of Minecraft Education (https://minecraft.wiki/w/Minecraft_Education).
The vanilla creative data keeps them in four groups (elements, chemistry tables, compounds and products); the item IDs are also checked, in case an entry is ever moved out of those groups. Education-only blocks that aren't in Bedrock's creative inventory at all (allow, deny, border, chalkboard, camera, portfolio, photo, agent and NPC spawn eggs) need no filtering.
Constants
GROUPS
php
public const GROUPS = ["itemGroup.name.element", "itemGroup.name.chemistrytable", "itemGroup.name.compounds", "itemGroup.name.products"]ITEM_IDS
php
public const ITEM_IDS = ["minecraft:balloon", "minecraft:bleach", "minecraft:chemical_heat", "minecraft:chemistry_table", "minecraft:compound", "minecraft:compound_creator", "minecraft:element_constructor", "minecraft:glow_stick", "minecraft:ice_bomb", "minecraft:lab_table", "minecraft:material_reducer", "minecraft:medicine", "minecraft:rapid_fertilizer", "minecraft:sparkler", "minecraft:underwate …ITEM_ID_PREFIXES
php
public const ITEM_ID_PREFIXES = [
"minecraft:element_",
//element_0 ... element_118
"minecraft:hard_",
//hardened glass, stained glass and panes (not hardened_clay)
"minecraft:colored_torch_",
]Methods
isEducationGroup()
php
public static function isEducationGroup(string $groupName) : boolisEducationItem()
php
public static function isEducationItem(string $itemId) : bool