Skip to content

Instantly share code, notes, and snippets.

View Juuxel's full-sized avatar
🍈

Juuz Juuxel

🍈
  • Finland
  • 16:05 (UTC +03:00)
View GitHub Profile
@Juuxel
Juuxel / mappings.tiny
Created June 8, 2022 15:15
2022-06-08: tiny mappings for having a certain few classes in their mojmap locations
v1 intermediary named
CLASS net/minecraft/class_1291 net/minecraft/world/effect/MobEffect
CLASS net/minecraft/class_1294 net/minecraft/world/effect/MobEffects
CLASS net/minecraft/class_1792 net/minecraft/world/item/Item
CLASS net/minecraft/class_1802 net/minecraft/world/item/Items
CLASS net/minecraft/class_1887 net/minecraft/world/item/enchantment/Enchantment
CLASS net/minecraft/class_1893 net/minecraft/world/item/enchantment/Enchantments
CLASS net/minecraft/class_2246 net/minecraft/world/level/block/Blocks
CLASS net/minecraft/class_2248 net/minecraft/world/level/block/Block
CLASS net/minecraft/class_2396 net/minecraft/core/particles/ParticleType
@Juuxel
Juuxel / guide.md
Created May 27, 2022 13:07
Architectury Plugin-less multiproject mods using Architectury Loom

Architectury Plugin-less multiproject mods using Architectury Loom

The What and the Why

With Architectury Loom 0.12.0's ModSettings feature, you can completely replace Architectury Plugin using pure Loom.

This leads to

  • faster build configuration times (no extra Gradle plugins needing to execute)
  • faster build times (no extra tasks to run)
  • a build that can be easier to port to other platforms
@Juuxel
Juuxel / ListPanelExample.java
Last active December 15, 2019 15:41
2019-12-09: An example of using LibGui's WListPanel
package example;
import com.google.common.collect.ImmutableList;
import io.github.cottonmc.cotton.gui.client.LightweightGuiDescription;
import io.github.cottonmc.cotton.gui.widget.WGridPanel;
import io.github.cottonmc.cotton.gui.widget.WLabel;
import io.github.cottonmc.cotton.gui.widget.WListPanel;
import net.minecraft.text.LiteralText;
import java.util.List;
@Juuxel
Juuxel / ImplementedInventory.java
Last active November 21, 2023 05:23
Implemented Inventory -- a simple SidedInventory implementation
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.inventory.Inventories;
import net.minecraft.inventory.Inventory;
import net.minecraft.inventory.SidedInventory;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.CompoundTag;
import net.minecraft.util.collection.DefaultedList;
import net.minecraft.util.math.Direction;
import org.jetbrains.annotations.Nullable;
@Juuxel
Juuxel / ExampleBlock.java
Last active January 6, 2019 17:10
Fabric block example
package com.example.mod;
import net.minecraft.block.Block;
import net.minecraft.block.Material;
import net.minecraft.item.ItemGroup;
import net.minecraft.item.block.BlockItem;
/* The block class.
* This does not include models, translation files, loot tables or textures (those have to be defined in
/data and /assets).
@Juuxel
Juuxel / IDEAS.md
Created March 12, 2016 04:44
Cubic Ideas
  • More enemies
    • Flying enemies (birds?)
  • Controller support