Original2024/11/10Less than 1 minute
Original2024/11/10Less than 1 minute
ServerEvents.recipes((event) => {
event.replaceInput(
{
output: [
"minecraft:diamond_axe",
"minecraft:diamond_hoe",
"minecraft:diamond_pickaxe",
"minecraft:diamond_shovel",
"minecraft:diamond_sword",
],
},
"minecraft:diamond",
"minecraft:emerald"
);
});
Original2024/11/10Less than 1 minute
Summary
Get the Accurate World Seed
const seed = NBT.l(server.worldData.worldGenOptions().seed());
Tips
The seed can only be stored as a String or NBT. If stored as a Number, it may result in inaccuracies due to Java Double floating-point precision errors.
Original2024/11/10Less than 1 minute