Skip to content

Instantly share code, notes, and snippets.

View build.gradle
buildscript {
repositories {
maven { url = 'https://files.minecraftforge.net/maven' }
jcenter()
mavenCentral()
}
dependencies {
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '3.+', changing: true
}
}
View Principium Caelus debug.log
This file has been truncated, but you can view the full file.
[26Dec2020 20:05:02.217] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher running: args [--gameDir, ., --launchTarget, fmluserdevclient, --fml.mcpVersion, 20201102.104115, --fml.mcVersion, 1.16.4, --fml.forgeGroup, net.minecraftforge, --fml.forgeVersion, 35.1.15, --version, MOD_DEV, --assetIndex, 1.16, --assetsDir, C:\Users\milot\.gradle\caches\forge_gradle\assets, --username, Dev, --accessToken, ❄❄❄❄❄❄❄❄, --userProperties, {}]
[26Dec2020 20:05:02.222] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher 8.0.6+85+master.325de55 starting: java version 1.8.0_265 by AdoptOpenJDK
[26Dec2020 20:05:02.233] [main/DEBUG] [cpw.mods.modlauncher.LaunchServiceHandler/MODLAUNCHER]: Found launch services [minecraft,fmldevdata,fmldevclient,fmldevserver,fmluserdevserver,testharness,fmluserdevdata,fmlclient,fmluserdevclient,fmlserver]
[26Dec2020 20:05:02.254] [main/DEBUG] [cpw.mods.modlauncher.NameMappingServiceHandler/MODLAUNCHER]: Found naming services : [srgtomcp]
[26Dec2020 20:05:02.305
View decompLog.txt
7:01:50 PM: Executing task 'setupDecompWorkspace'...
> Configure project :
This mapping 'stable_39' was designed for MC 1.12! Use at your own peril.
#################################################
ForgeGradle 2.3-SNAPSHOT-7764e3e
https://github.com/MinecraftForge/ForgeGradle
#################################################
Powered by MCP
View PacketHandler.kt
package com.alleluid.littleopener
import com.alleluid.littleopener.common.blocks.blockopener.TileOpener
import io.netty.buffer.ByteBuf
import net.minecraft.util.math.BlockPos
import net.minecraftforge.fml.common.network.simpleimpl.IMessage
import net.minecraftforge.fml.common.network.simpleimpl.IMessageHandler
import net.minecraftforge.fml.common.network.simpleimpl.MessageContext
import net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper
import net.minecraftforge.fml.relauncher.Side
View ModItems.kt
package com.alleluid.somestuff.items
import com.alleluid.somestuff.MOD_ID
import com.alleluid.somestuff.SomeStuffMod
import net.minecraft.item.Item
import net.minecraft.util.ResourceLocation
import net.minecraftforge.registries.IForgeRegistry
open class ItemBase(private val name: String) : Item() {
init {
@Amperthorpe
Amperthorpe / ror2mm_handler.py
Last active Apr 12, 2019
Python script to handle ror2mm:// links, such as the Install buttons on Thunderstore.io.
View ror2mm_handler.py
#! /home/alleluid/.pyenv/ror2mm_venv/bin/python
"""
USE AT YOUR OWN RISK, IT WILL PROBABLY BREAK STUFF
Requires 'requests' and Python 3.6+
This script downloads the zip file to a temp location, then extracts
To use in Firefox, go to "about:config" and add a new boolean named "network.protocol-handler.expose.ror2mm" and set it to false.
When you next click on a ror2mm:// link it will ask what program to use, select this script.
For other browsers look up "<browser> custom protocol handler"
@Amperthorpe
Amperthorpe / game.py
Last active Jul 4, 2018
tkinter two methods
View game.py
from tkinter import *
def game_loop():
help_str = "Do a thing!"
running = True
while running:
print(help_str)