A package that supplies Minecraft types.
Install Minecraft Types into your client or server-side project using npm i minecraft-types
.
Useful to detect Minecraft material IDs (blocks/items) or to get information on them.
import { Materials } from "minecraft-types";
const stone = Materials.get("stone");
Materials.isId("dirt"); // true
Useful to detect Minecraft enchantment IDs or to get information on them.
import { Enchantments } from "minecraft-types";
const sharpness = Enchantments.get("sharpness");
Enchantments.isId("fire_aspect"); // true
Useful to detect Minecraft entity IDs or to get information on them.
import { Entities } from "minecraft-types";
const zombie = Entities.get("zombie");
Entities.isId("wither_skeleton"); // true
/plugin
contains the source code for a PaperMC plugin, compile it and install it on a PaperMC server. The plugin will automatically generate some useful files into the <SERVER ROOT>/extract
directory. Create the directory import
in this repo's repository and copy the contents of <SERVER ROOT>/extract
into import
. Run npm run generate
.