This file contains 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 alexiil.mods.test; | |
import net.minecraft.block.Block; | |
import net.minecraft.block.state.IBlockState; | |
import net.minecraft.entity.player.EntityPlayer; | |
import net.minecraft.init.Blocks; | |
import net.minecraft.init.Items; | |
import net.minecraft.item.ItemStack; | |
import net.minecraft.util.BlockPos; | |
import net.minecraftforge.common.MinecraftForge; |
This file contains 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
[ | |
{ | |
"resourceLocation": "ums:textures/loading.png", | |
"positionType": "TOP_LEFT", | |
"type": "STATIC", | |
"texture": { | |
"x": 0, | |
"y": 0, | |
"width": 256, | |
"height": 256 |
This file contains 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 example; | |
// Imports missing for the sake of an example. | |
public class EngineRenderTESR extends TileEntitySpecialRenderer { | |
private final AnimatedBlockRenderer engineRenderer; | |
private final Variable progressVariable; | |
public EngineRenderTESR() { | |
// An example class would get the model by its blockstate resource location |
This file contains 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 net.minecraftforge.debug; | |
import java.util.*; | |
import javax.vecmath.Vector2f; | |
import javax.vecmath.Vector3f; | |
import javax.vecmath.Vector4f; | |
import net.minecraft.block.Block; | |
import net.minecraft.block.material.Material; |
This file contains 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
@Override | |
public void grow(World world, BlockPos pos, IBlockState state) | |
{ | |
int currentMeta = world.getBlockState(pos).getValue(AGE).intValue(); | |
//if(world.getBlockState(new BlockPos(pos.getX() ,pos.getY() - 1, pos.getZ())).getBlock() == Blocks.farmland) | |
{ | |
//Erster Block | |
if(currentMeta < 7) | |
{ | |
System.out.println("Updating growth state"); |
This file contains 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
I'm having some problems migrating oil where my own block is being replaced by a dummy block, despite the remapping working. | |
I'm assuming that I am doing something stupid, but here is the remapping code: https://github.com/BuildCraft/BuildCraft/blob/7.2.x/common/buildcraft/BuildCraftFactory.java#L365-L400 | |
and then when I load the world I find that my own block is no longer registered with forge (tested here https://github.com/BuildCraft/BuildCraft/blob/7.2.x/common/buildcraft/BuildCraftFactory.java#L365-L400 ) | |
the fix *kinda* works (the oil renders) but it crashes quite quickly afterwards because the block is not registered | |
I haven't been able to make a test mod yet, but hopefulyl someone might be able to spot a stupid mistake I am doing? | |
fml log: https://gist.githubusercontent.com/AlexIIL/97e7343fd381460e1ccb/raw/caf230ddfa54edb51a08920a19c159470981a221/gistfile1.txt |
This file contains 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
/* Copyright (c) 2016 AlexIIL | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated | |
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation the | |
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to | |
* permit persons to whom the Software is furnished to do so, subject to the following conditions: | |
* | |
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the | |
* Software. | |
* |
This file contains 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
// config: | |
Array of ImageRender | |
// ImageRender: | |
"type":Type, | |
"resourceLocation":String, | |
"positionType":PositionType, | |
"texture": AreaSrc, | |
"position": AreaDst, | |
"text": String, |
This file contains 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
```` | |
[16:23:36] [Client thread/INFO] [FML/]: FML has found a non-mod file [1.7.10] ClothingCraft 1.2.1.jar in your mods directory. It will now be injected into your classpath. This could severe stability issues, it should be removed if possible. | |
[16:23:36] [Client thread/INFO] [FML/]: FML has found a non-mod file AgriCraft-1.7.10-1.5.0.jar in your mods directory. It will now be injected into your classpath. This could severe stability issues, it should be removed if possible. | |
[16:23:36] [Client thread/INFO] [FML/]: FML has found a non-mod file AOBD-2.9.2.jar in your mods directory. It will now be injected into your classpath. This could severe stability issues, it should be removed if possible. | |
[16:23:36] [Client thread/INFO] [FML/]: FML has found a non-mod file AOBDBB-1.0.6.jar in your mods directory. It will now be injected into your classpath. This could severe stability issues, it should be removed if possible. | |
[16:23:36] [Client thread/INFO] [FML/]: FML has found a non-mod file ArcaneArteries0.7.2.jar i |
This file contains 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
[23:49:54] [main/INFO]: Loading for game Minecraft 1.14.1 Pre-Release 2 | |
[23:49:54] [ForkJoinPool-1-worker-9/WARN]: Mod ID fabric uses outdated schema version: 0 < 1 | |
[23:49:54] [ForkJoinPool-1-worker-2/WARN]: Mod ID silk uses outdated schema version: 0 < 1 | |
[23:49:54] [main/INFO]: [FabricLoader] Loading 4 mods: silk@1.2.2-37, fabric@0.2.7+build.127, fabricloader@0.4.7+build.146, libblockattributes@$version | |
[23:49:54] [main/WARN]: Mod `libblockattributes` ($version) does not respect SemVer - comparison support is limited. | |
[23:49:54] [main/INFO]: SpongePowered MIXIN Subsystem Version=0.7.11 Source=file:/home/alexiil/.gradle/caches/modules-2/files-2.1/net.fabricmc/sponge-mixin/0.7.11.30/12878b7fa8bcc30844de4fa9e09d95c36b8c359b/sponge-mixin-0.7.11.30.jar Service=Knot/Fabric Env=CLIENT | |
/***********************************************************************************************************************************************************************************************************************/ | |
/* |
OlderNewer