Skip to content

Instantly share code, notes, and snippets.

View rexlManu's full-sized avatar
🏠
Working from home

Emmanuel Lampe rexlManu

🏠
Working from home
View GitHub Profile
@MrPowerGamerBR
MrPowerGamerBR / BlockPacketAdapter.kt
Last active June 5, 2023 10:05
Example of how to replace blocks in 1.18 chunk data, single block change and multi block change packets.
package net.perfectdreams.dreamcustomitems.blocks
import com.comphenix.packetwrapper.WrapperPlayServerBlockChange
import com.comphenix.protocol.PacketType
import com.comphenix.protocol.events.*
import com.comphenix.protocol.wrappers.WrappedBlockData
import com.viaversion.viaversion.api.minecraft.chunks.PaletteType
import com.viaversion.viaversion.api.type.types.version.ChunkSectionType1_18
import io.netty.buffer.Unpooled
import net.minecraft.core.Registry
@Johnnnnnnny
Johnnnnnnny / 1_how_to_make_custom_tooltips.txt
Last active April 22, 2024 12:50
HOW TO MAKE CUSTOM TOOLTIPS - THE MANUAL
Requirements:
- Minecraft (Java) 1.14+
- Resource Pack
If you are not yet familier with custom fonts, I recommend you watch this video before hand to get the hang of the basics or read the
docs by AmberWat:
(https://youtube.com/watch?v=-9bjbL1dYAE&feature=share)
(https://github.com/AmberWat/NegativeSpaceFont/blob/master/README.md) (Credit to AmberWat for the documentation)
Go into your texture pack folder and go to assets/minecraft/font and create a file called default.json, in this file you will put the
@lrvick
lrvick / github-troll.md
Last active May 3, 2024 16:20
Trolling Github's DMCA repo with their own security flaws.
package me.koalaoncaffeine.itemstack;
import org.bukkit.ChatColor;
import org.bukkit.Material;
import org.bukkit.enchantments.Enchantment;
import org.bukkit.inventory.ItemFlag;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta.ItemMeta;
import org.bukkit.material.MaterialData;