An easy way to query PrismarineJS/minecraft-packets
npm install minecraft-packetsMinecraft packets in a github repo.
``js
const packets = require('minecraft-packets')
console.log(packets.pc['1.16']['from-server'].difficulty[0])
// output:
// [
// {
// json: { difficulty: 2, difficultyLocked: false },
// raw:
// }
// ]
``