Skip to content

Instantly share code, notes, and snippets.

//1st video (with only logging and no projectiles being shot)
[16:59:29] [Server thread/INFO] [net.minecraft.server.integrated.IntegratedServer]: Saving and pausing game...
[16:59:29] [Server thread/INFO] [net.minecraft.server.MinecraftServer]: Saving chunks for level 'testing'/overworld
[16:59:29] [Server thread/DEBUG] [FML]: Gathering id map for writing to world save testing
[17:00:43] [main/INFO] [wiptech]: shooting on phase TICK on logical side CLIENT
[17:00:43] [main/INFO] [wiptech]: shooting on phase END on logical side CLIENT
[17:00:43] [Server thread/INFO] [wiptech]: shooting on phase TICK on logical side SERVER
[17:00:43] [main/INFO] [wiptech]: shooting on phase END on logical side CLIENT
12:24:04.241 [DEBUG] [net.minecraftforge.gradle.util.delayed.DelayedBase] Resolved: 39-1.12
12:24:04.358 [LIFECYCLE] [net.minecraftforge.gradle.common.BasePlugin] #################################################
12:24:04.359 [LIFECYCLE] [net.minecraftforge.gradle.common.BasePlugin] ForgeGradle 2.3-SNAPSHOT-3996470
12:24:04.359 [LIFECYCLE] [net.minecraftforge.gradle.common.BasePlugin] https://github.com/MinecraftForge/ForgeGradle
12:24:04.360 [LIFECYCLE] [net.minecraftforge.gradle.common.BasePlugin] #################################################
12:24:04.361 [LIFECYCLE] [net.minecraftforge.gradle.common.BasePlugin] Powered by MCP
12:24:04.361 [LIFECYCLE] [net.minecraftforge.gradle.common.BasePlugin] http://modcoderpack.com
12:24:04.361 [LIFECYCLE] [net.minecraftforge.gradle.common.BasePlugin] by: Searge, ProfMobius, R4wk, ZeuX
12:24:04.361 [LIFECYCLE] [net.minecraftforge.gradle.common.BasePlugin] Fesh0r, I
@Cadiboo
Cadiboo / ClientEventSubscriber.java
Last active January 23, 2019 06:59
Renders a trail of iron ore behind the render view entity
package io.github.cadiboo.testmod.client;
import net.minecraft.block.state.IBlockState;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.BlockRendererDispatcher;
import net.minecraft.client.renderer.BufferBuilder;
import net.minecraft.client.renderer.Tessellator;
import net.minecraft.client.renderer.vertex.DefaultVertexFormats;
import net.minecraft.entity.Entity;
import net.minecraft.init.Blocks;
[13:13:40.226] [pool-2-thread-1/DEBUG] [ne.mi.fm.lo.mo.AbstractJarFileLocator/SCAN]: Scan finished: Mod File: /Users/Cadiboo/.gradle/caches/forge_gradle/minecraft_user_repo/net/minecraftforge/test/forge/1.13-24.0.144-1.13-pre_mapped_snapshot_20180921-1.13/forge-1.13-24.0.144-1.13-pre_mapped_snapshot_20180921-1.13.jar
[13:13:40.226] [pool-2-thread-1/DEBUG] [ne.mi.fm.lo.mo.Scanner/SCAN]: Scanning /Users/Cadiboo/.gradle/caches/forge_gradle/minecraft_user_repo/net/minecraftforge/test/forge/1.13-24.0.144-1.13-pre_mapped_snapshot_20180921-1.13/forge-1.13-24.0.144-1.13-pre_mapped_snapshot_20180921-1.13.jar with language loader javafml
[13:13:40.264] [pool-2-thread-1/DEBUG] [ne.mi.fm.ja.FMLJavaModLanguageProvider/SCAN]: Found @Mod class net.minecraftforge.common.ForgeMod with id forge
[13:13:40.272] [pool-2-thread-1/DEBUG] [ne.mi.fm.lo.mo.ExplodedDirectoryLocator/SCAN]: Scanning exploded directory /Users/Cadiboo/Developer/Modding/TestMod/build/resources/main
[13:13:40.274] [pool-2-thread-1/DEBUG] [ne.mi.fm.lo.mo.Expl
@Cadiboo
Cadiboo / RenderChunk#rebuildChunk.java
Created February 3, 2019 02:56
1.13 RenderChunk#rebuildChunk
public void rebuildChunk(float x, float y, float z, ChunkRenderTask generator) {
CompiledChunk compiledchunk = new CompiledChunk();
int i = 1;
BlockPos blockpos = this.position;
BlockPos blockpos1 = blockpos.add(15, 15, 15);
World world = this.world;
if (world != null) {
generator.getLock().lock();
try {
@Cadiboo
Cadiboo / Conventions.md
Last active July 20, 2024 10:43
Conventions (WIP)

What, Why, Consequences of not doing it, How to do it right

Required Java conventions

What: Lowercase package naming.
Why: Some file systems (windows) consider iTeMs and items to be the same, but every other system considers them to be different.
Consequences: Not doing this may never cause any issues (and very likely won't in your dev environment), but on other operating systems with different case-sensitivities from yours this can cause massive problems.
How: Name your packages all in lowercase.

What: Packaging that reflects your web presence.
Why: Avoid name collisions - your web presence is unique so it is commonly used.
Consequences: Errors loading classes with other mods installed, usually happens when 2 mods never changed their packaging from the default in the MDK.

@Cadiboo
Cadiboo / ClientEventSubscriber 1.12.2.java
Last active May 20, 2019 02:28
Cache Rendering Blocks in RenderWorldLastEvent
package io.github.cadiboo.testing.client;
import net.minecraft.block.state.IBlockState;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.BlockRendererDispatcher;
import net.minecraft.client.renderer.BufferBuilder;
import net.minecraft.client.renderer.GlStateManager;
import net.minecraft.client.renderer.RegionRenderCacheBuilder;
import net.minecraft.client.renderer.vertex.DefaultVertexFormats;
import net.minecraft.client.renderer.vertex.VertexFormat;
Cadiboo$ ./gradlew build --offline --no-daemon -S
To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/2.14/userguide/gradle_daemon.html.
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
http://modcoderpack.com
by: Searge, ProfMobius, R4wk, ZeuX
@Cadiboo
Cadiboo / ModSounds.java
Created March 28, 2019 09:16
pls roast me
package mod.krevik.kathairis.init;
import net.minecraft.block.SoundType;
import net.minecraft.init.SoundEvents;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.SoundEvent;
import net.minecraftforge.fml.common.registry.GameRegistry;
import net.minecraftforge.registries.ObjectHolder;
import static mod.krevik.kathairis.util.ModReference.MOD_ID;
// Forge buildscript
buildscript {
repositories {
// Forge Maven
maven { url = 'https://files.minecraftforge.net/maven' }
// Other useful Mavens
jcenter()
mavenCentral()