Skip to content

Instantly share code, notes, and snippets.

const fs = require('fs');
const path = require('path');
const { execSync } = require('child_process');
function copyFolderSync(source, destination, excludeDirs) {
if (!fs.existsSync(destination)) {
fs.mkdirSync(destination, { recursive: true });
}
const items = fs.readdirSync(source, { withFileTypes: true });
@BlayTheNinth
BlayTheNinth / MarketRegistry.json
Last active April 28, 2023 08:31
Example DataPack JSON for Farming for Blockheads market (1.14+)
{
"groupOverrides": {
"Vanilla Seeds": {
"enabled": false
},
"Vanilla Saplings": {
"payment": {
"item": "minecraft:diamond",
"count": 3
}