- Clone MCPConfig from the GitHub repository.
- In the root project directory, run
gradlew :1.13:projectClientApplyPatches
if you want to make a client side mod, orgradlew :1.13:projectServerApplyPatches
if you want to make a server side mod. - Naviage into
versions/1.13/projects/server
(orclient
). There are a couple of fixes necessary to get the code to compile:- There is a missing class
mcp.MethodsReturnNonnullByDefault
which you will have to manually add. A copy can be found here. - If you're making a server-only mod, the anonymous classes in
net.minecraft.item.ItemClock
andnet.minecraft.item.ItemCompass
need to be modified to override the method innet.minecraft.item.IItemPropertyGetter
. This is never actually called on the server so you can make a dummy implementation.
- There is a missing class
- Copy
versions/1.13/projects/server
(orclient
) into a separate
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# EARTHCOMPUTER'S HACKFIX FOR SPECIALSOURCE FUCKING UP IN 1.13 | |
from zipfile import ZipFile | |
import sys | |
def load_csrg(csrgf): | |
csrg = {} | |
for line in csrgf: | |
parts = line.rstrip().split(" ") | |
if len(parts) > 2: |
A big oak tree is made up of a main trunk and multiple branches. A "branch" always contains leaves, but may not always contain logs.
heightLimit
: The actual height of the tree, including leaf blocks at the top (between 5 and 16)trunkHeight
: The height of the trunkleafDistanceLimit
: The distance from a log that leaves can generate, set to 4 for sapling growth, though appears to be set to 5 for natural growth for some reason
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package test; | |
import net.minecraft.command.CommandBase; | |
import net.minecraft.command.CommandException; | |
import net.minecraft.command.ICommandSender; | |
import net.minecraft.command.WrongUsageException; | |
import net.minecraft.server.MinecraftServer; | |
import test.TestRandom.DebugLevel; | |
public class CommandDebugRandom extends CommandBase { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package test; | |
import java.util.Arrays; | |
import java.util.Random; | |
import java.util.stream.Collectors; | |
public class TestRandom extends Random { | |
private static final long serialVersionUID = 1L; |
NewerOlder