Skip to content

Instantly share code, notes, and snippets.

View Raidobw2's full-sized avatar

R3GEN Raidobw2

  • Canada
View GitHub Profile
@TheonlyTazz
TheonlyTazz / NBTPaletteChanger.py
Created April 27, 2023 19:13
NBT BlockPalette Changer
import nbtlib
from nbtlib.tag import *
import os
import json
def main():
while True:
IF = input('Input folder: \n') + '\\'
string_in = input('String to find: \n')

Biome Tags are awesome!

As a result of 1.18.2 changes, all worldgen registries can now have tags. Including biomes! As a result of this, Mojang has deprecated the biome category which means that sooner or later, this enum will be deleted. To better protect yourself and your mod/datapack from relying on these categories, you should instead, switch to using biome tags.

The existing biome tags from vanilla do not cover all usecases which means that many modders have started banding together to decide on common biome tags to use. These common biome tags are under the forge: namespace and the c: namespace.

For best compatibility with any mod or datapack, you should have a custom tag that pulls entries from minecraft:, forge:, and c: tags. Yes, datapacks too should be adding their biomes to the forge: and c: namespaced tags. And mods can "datagen" the tag json files automatically but that is outside the scope of this gist. See the Fabric wiki or [Forge Comm