minecraft-crafter

Tells you how to get any item by crafting in minecraft

Usage no npm install needed!

<script type="module">
  import minecraftCrafter from 'https://cdn.skypack.dev/minecraft-crafter';
</script>

README

minecraft-crafter

NPM version Tonic

Tells you how to get any item by crafting in minecraft

Example

const findItemOrBlockByName=require("minecraft-data")("1.8").findItemOrBlockByName;
const niceCraft=require("minecraft-crafter").niceCraft;
const craft=require("minecraft-crafter").craft;

console.log(niceCraft(craft({id:findItemOrBlockByName("stone_pickaxe").id,count:1})));

Will output "Get 3 Cobblestone, 1 Wood then craft in order 4 Wood Planks, 4 Stick, 1 Stone Pickaxe"

Documentation