This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.examplemod; | |
import com.mojang.logging.LogUtils; | |
import net.minecraft.Util; | |
import net.minecraft.core.HolderGetter; | |
import net.minecraft.core.HolderLookup; | |
import net.minecraft.core.RegistrySetBuilder; | |
import net.minecraft.core.registries.Registries; | |
import net.minecraft.data.DataGenerator; | |
import net.minecraft.data.PackOutput; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
import cv2 | |
def main(): | |
args = parse_args() | |
alpha, img = read_images(args) | |
new_img = marge_alpha(args, alpha, img) | |
write_image(args, new_img) | |
def parse_args(): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
# Requires Python-NBT | |
# pip install Python-NBT | |
import python_nbt.nbt as nbt | |
def main(): | |
nbt_file = open_file() | |
block_list = count_blocks(nbt_file) | |
output_block_list(block_list) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# Original (by yahvuu): https://www.gimpusers.com/forums/gimp-developer/11718-autosave-plugin | |
import tempfile | |
import os | |
from time import * | |
from gimpfu import * | |
def autosave(image, layer): | |
# Backup interval in seconds (600 = 10 minutes) |