Skip to content

Instantly share code, notes, and snippets.

View vercte's full-sized avatar
🐟
waw

Vercte vercte

🐟
waw
View GitHub Profile
@vercte
vercte / SoundGen.java
Last active December 17, 2025 00:27
Sounds not generating
package net.vercte.satchels.neoforge.datagen.assets;
import net.minecraft.data.PackOutput;
import net.neoforged.neoforge.common.data.ExistingFileHelper;
import net.neoforged.neoforge.common.data.SoundDefinition;
import net.neoforged.neoforge.common.data.SoundDefinitionsProvider;
import net.vercte.satchels.ModSounds;
import net.vercte.satchels.Satchels;
public class SoundGen extends SoundDefinitionsProvider {
{
"mappings": {
"dev/igalaxy/createorigins/mixin/DivingHelmetItemMixin": {
"Lcom/simibubi/create/content/equipment/armor/BacktankUtil;consumeAir(Lnet/minecraft/world/entity/LivingEntity;Lnet/minecraft/world/item/ItemStack;F)V": "Lcom/simibubi/create/content/equipment/armor/BacktankUtil;consumeAir(Lnet/minecraft/class_1309;Lnet/minecraft/class_1799;F)V",
"Lnet/minecraft/world/item/Item;isFireResistant()Z": "Lnet/minecraft/class_1792;method_24358()Z",
"breatheUnderwater": "Lcom/simibubi/create/content/equipment/armor/DivingHelmetItem;breatheUnderwater(Lnet/minecraft/class_1309;)Z",
"canBreathe": "Lcom/simibubi/create/content/equipment/armor/DivingHelmetItem;canBreathe(Lnet/minecraft/class_1309;)Z"
},
"dev/igalaxy/createorigins/mixin/LikeWaterMixinSquared": {
"Lio/github/apace100/apoli/power/PowerType;isActive(Lnet/minecraft/world/entity/Entity;)Z": "Lio/github/apace100/apoli/power/PowerType;isActive(Lnet/minecraft/class_1297;)Z"
plugins {
id 'fabric-loom' version "1.13-SNAPSHOT"
id 'maven-publish'
}
version = project.mod_version
group = project.maven_group
base {
archivesName = project.archives_base_name
@vercte
vercte / WaterBreathingMixin.java
Last active November 23, 2025 06:07
this mixin is not finding its injection point
//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//
package io.github.apace100.origins.mixin;
import io.github.apace100.apoli.mixin.EntityAccessor;
import io.github.apace100.origins.power.OriginsPowerTypes;
import io.github.apace100.origins.registry.ModDamageSources;
@vercte
vercte / AllHeatConditions.java
Last active June 11, 2025 02:40
Heat Condition API Example (Cobblestoning)
package com.simibubi.create.content.processing.recipe;
import com.simibubi.create.Create;
import com.simibubi.create.api.recipe.HeatCondition;
import com.simibubi.create.api.registry.CreateBuiltInRegistries;
import net.minecraft.core.Registry;
public class AllHeatConditions {
public static final CobblestonedCondition COBBLESTONED = register("cobblestoned", new CobblestonedCondition());
@vercte
vercte / CostumesAPI.lua
Last active November 10, 2024 22:48
A Lua library for Figura, providing a system for hotswapping clothing
---@diagnostic disable: redefined-local
-- CostumesAPI v1.2.0 by Vercte
local function tableContains(table, element)
for _, value in pairs(table) do
if value == element then
return true
end
end
return false
@vercte
vercte / doc.md
Created June 17, 2023 12:09
Dictionary Extension Documentation (Turbowarp)

The icon for the Dictionaries Extension

Use the extension 👉 Editor

Documention

Reporters/Booleans

(list of dictionaries)

Returns a space-separated list of all the active, non-empty dictionaries.

(stringify dictionary (foo) into JSON)

Returns a dictionary that is converted back into JSON; for example, foo = bar turns into { foo: bar }

(get key (bar) from dictionary [foo v])

Gets the key bar from dictionary foo; in bar = baz this will return baz.

@vercte
vercte / README.md
Created May 10, 2023 22:29
QuickPad - Text Editor Bookmarklet

QuickPad

Quickpad is a quick, easy to use notepad that you can activate just by clicking a bookmark in your browser. Nothing much, really; just something I made because I wanted.

Quickpad.js is the main, unbookmarkified code; for bookmark purposes, triple-click quickpad.bkmk.txt and drag it to your bookmarks bar.

@vercte
vercte / README.md
Last active May 25, 2022 02:40
Adventures in RegEx: Cookie parser (EMCAScript flavor)

Parses a document's cookie Use:

let cookie = parseCookie(document.cookie)
if(cookie.theme) {
  setTheme("darkMode");
}
@vercte
vercte / README.md
Last active May 19, 2022 16:29
><> (Fish) echo program