Jump to content

Forge hooks for Structure loot.


fabricator77
 Share

Recommended Posts

I've looked at the Forge hooks for Dungeon loot, and would like something like it for the various other map generated loot chests. Yes there are a lot of them. Basically I want to add items from Forge mods to chests, which is easy without Forge until Bukkit is involved.

 

The idea I have is to modify StructureComponent.class so the StructurePieceTreasure[] part is removed/ignored, and a class parameter used instead to determine what set of loot to generate (eg ComponentStrongholdLibrary.class). This way when Mojang add yet another structure with chest loots in it, the API doesn't need yet more changes.

 

I don't mind doing most/all of the code changes, just want to hear what others think of the implementation. Also should I go with 1.2.5 or is it likely to be a wasted effort ?

Link to comment
Share on other sites

Dont make anything for 1.2.5 anymore. As as soon as major mods update, nobody will use 1.2.5 anymore

As for the the Structure loot, I have planned for a while to expand this to any world gen chest loot, but that is a future feature, we are currently in the 'fix bugs' stage of Forge, not the 'Add new things'

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Patreon: http://www.patreon.com/lexmanos
Paypal: http://paypal.me/LexManos

BitCoin: 1Q8rWvUNMM2T1ZfDaFeeYQyVXtYoeT6tTn

Link to comment
Share on other sites

I've added a few lines of code to StructureComponent so it can determine its called class, eg: ComponentMineshaftCorridor.class and use that name to store each set of loot. This way any structure created gets its own unique loot set, even ones added by modders. Still need to write a data structure to store it all, then look at the pull request.

 

StructureComponent.class contains:

func_74879_a

Loot chests

 

func_74869_a

Dispensers

 

So I might at well tap into the Dispenser code, so mean people can put fire arrows in them or something.

Link to comment
Share on other sites

  • 5 weeks later...
  • 3 weeks later...

Got enchanted dungeon loot thanks to the recent changes in Forge (4.2.x)

Thanks for that LexManos!

I had to brush up on sub-classes and such to get it going but I'll put what I found here (if that's ok)

 

The override class:

 

 

package net.minecraft.src;

import net.minecraft.client.Minecraft;

import net.minecraftforge.common.DungeonHooks;

import net.minecraftforge.common.DungeonHooks.DungeonLoot;

import net.minecraft.src.EnchantmentHelper;

import net.minecraft.src.EnchantmentData;

import java.util.*;

 

public class enchantedLoot extends DungeonHooks.DungeonLoot

{

        private ItemStack itemStack;

        private int minCount = 1;

        private int maxCount = 1;

        private int minEnchantLevel = 1;

        private int maxEnchantLevel = 1;

        private int enchantChance = 0;

 

public enchantedLoot(ItemStack item, int weight, int min, int max, int ench)

{

super(weight, item, 1, 1);

this.itemStack = item;

minEnchantLevel = min;

maxEnchantLevel = max;

if (max < min)

{

maxEnchantLevel = min;

}

enchantChance = ench;

 

// Enchantable items should never be stackable

minCount = 1;

maxCount = 1;

}

 

public ItemStack generateStack(Random rand)

{

ItemStack ret = this.itemStack.copy();

 

ret.stackSize = minCount + (rand.nextInt(maxCount - minCount + 1));

if (enchantChance > 0)

{

int i = rand.nextInt(100);

if (i < enchantChance)

{

int level = minEnchantLevel + (rand.nextInt(maxEnchantLevel - minEnchantLevel + 1));

ret.stackSize = 1;

List list = EnchantmentHelper.buildEnchantmentList(rand, ret, level);

if(list != null)

{

EnchantmentData enchantmentdata;

for(Iterator iterator = list.iterator(); iterator.hasNext(); ret.addEnchantment(enchantmentdata.enchantmentobj, enchantmentdata.enchantmentLevel))

{

enchantmentdata = (EnchantmentData)iterator.next();

}

}

}

}

            return ret;

        }

}

 

 

 

Then to reference it, add a method to your code:

 

 

private void addEnchantedLoot(ItemStack item, int weight, int min, int max, int ench)

{

DungeonHooks newLoot = new DungeonHooks();

newLoot.addDungeonLoot((DungeonHooks.DungeonLoot)new enchantedLoot(item, weight, min, max, ench));

}

 

 

 

Then if you want to add, for instance, randomly enchanted bows, you could use:

addEnchantedLoot(new ItemStack(Item.bow),100, 1,30, 10);

where 100 is the weight (chance it will be in loot)

1 is the minimum enchantment level

30 is the maximum enchantment level

10 is the percent chance the item will have any enchantment

Link to comment
Share on other sites

Wow copy paste up the wazoo, please go learn some java code structure.

But ya.. Enchanting stuff or doing whatever you want is possible now.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Patreon: http://www.patreon.com/lexmanos
Paypal: http://paypal.me/LexManos

BitCoin: 1Q8rWvUNMM2T1ZfDaFeeYQyVXtYoeT6tTn

Link to comment
Share on other sites

  • 3 months later...

::)

Yeah yeah. Copy-paste heaven and structure sucks. It's been like 10 years since I had a college course in Java. I'll learn better coding skills if/when I get a full time job writing code.

The main reason for this reply is because with the deprication of DungeonHooks, this all changes. The only way I can think of doing the same thing now is to either add one of every possible enchantment of every possible tool/armor/weapon or to create some kind of new fake item which replaces itself with an enchanted item when created. Not even sure if that would work.

So with the current structure, is it still possible to add dungeon loot that will have a random enchantment applied when generated? If so, any hints?

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Im working on a mod and testing it in eclipse runs fine but when I want to turn it into a jar file by running gradlew build I get the Error error: lambda expressions are not supported in -source 1.6 McR.ex(McR.ex(enderman),3,() -> {});                                                      ^  (use -source 8 or higher to enable lambda expressions) Im using  Gradle 2.7 java version "1.8.0_351" javac 1.8.0_351 All of my Path and JAVA_HOME environment variable are correct (set to 1.8) and Im not sure what else to check.   In eclipse I did have to say Change project compliance and JRE to 1.8 as this popped up on the lambda error.
    • 2022-12-09 17:30:15,219 main WARN Disabling terminal, you're running in an unsupported environment. [17:30:15] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLServerTweaker [17:30:15] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLServerTweaker [17:30:15] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLServerTweaker [17:30:15] [main/INFO] [FML]: Forge Mod Loader version 14.23.5.2859 for Minecraft 1.12.2 loading [17:30:15] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_351, running on Windows 10:amd64:10.0, installed at C:\Program Files\Java\jre1.8.0_351 [17:30:15] [main/INFO] [FML]: Searching C:\Users\Ryuuk\OneDrive\Escritorio\Servidor\.\mods for mods [17:30:15] [main/INFO] [FML]: Loading tweaker org.spongepowered.asm.launch.MixinTweaker from [1.12.2]+SecurityCraft+v1.9.4.jar [17:30:15] [main/WARN] [FML]: Found FMLCorePluginContainsFMLMod marker in CreativeCore_v1.10.70_mc1.12.2.jar. This is not recommended, @Mods should be in a separate jar from the coremod. [17:30:15] [main/WARN] [FML]: The coremod com.creativemd.creativecore.core.CreativePatchingLoader does not have a MCVersion annotation, it may cause issues with this version of Minecraft [17:30:15] [main/WARN] [FML]: The coremod CreativePatchingLoader (com.creativemd.creativecore.core.CreativePatchingLoader) is not signed! [17:30:15] [main/INFO] [FML]: Loading tweaker org.spongepowered.asm.launch.MixinTweaker from DynamicSurroundings-1.12.2-3.6.3.jar [17:30:15] [main/WARN] [FML]: The coremod com.creativemd.itemphysic.ItemPatchingLoader does not have a MCVersion annotation, it may cause issues with this version of Minecraft [17:30:15] [main/WARN] [FML]: The coremod ItemPatchingLoader (com.creativemd.itemphysic.ItemPatchingLoader) is not signed! [17:30:15] [main/WARN] [FML]: The coremod micdoodle8.mods.miccore.MicdoodlePlugin does not have a MCVersion annotation, it may cause issues with this version of Minecraft [17:30:15] [main/WARN] [FML]: The coremod MicdoodlePlugin (micdoodle8.mods.miccore.MicdoodlePlugin) is not signed! [17:30:15] [main/INFO] [FML]: Loading tweaker optifine.OptiFineForgeTweaker from OptiFine_1.12.2_HD_U_G5.jar [17:30:15] [main/WARN] [FML]: Found FMLCorePluginContainsFMLMod marker in Quark-r1.6-179.jar. This is not recommended, @Mods should be in a separate jar from the coremod. [17:30:15] [main/WARN] [FML]: The coremod Quark Plugin (vazkii.quark.base.asm.LoadingPlugin) is not signed! [17:30:15] [main/WARN] [FML]: Found FMLCorePluginContainsFMLMod marker in TenshiLib-1.12.2-1.2.4.jar. This is not recommended, @Mods should be in a separate jar from the coremod. [17:30:15] [main/WARN] [FML]: The coremod TenshiCore (com.flemmli97.tenshilib.asm.ASMLoader) is not signed! [17:30:15] [main/WARN] [FML]: Found FMLCorePluginContainsFMLMod marker in Xaeros_Minimap_22.16.3_Forge_1.12.jar. This is not recommended, @Mods should be in a separate jar from the coremod. [17:30:15] [main/WARN] [FML]: The coremod XaeroMinimapPlugin (xaero.common.core.XaeroMinimapPlugin) is not signed! [17:30:15] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [17:30:15] [main/INFO] [LaunchWrapper]: Loading tweak class name org.spongepowered.asm.launch.MixinTweaker [17:30:15] [main/INFO] [mixin]: SpongePowered MIXIN Subsystem Version=0.8.3 Source=file:/C:/Users/Ryuuk/OneDrive/Escritorio/Servidor/./mods/%5B1.12.2%5D+SecurityCraft+v1.9.4.jar Service=LaunchWrapper Env=SERVER [17:30:15] [main/WARN] [FML]: The coremod SecurityCraftLoadingPlugin (net.geforcemods.securitycraft.SecurityCraftLoadingPlugin) is not signed! [17:30:15] [main/INFO] [mixin]: Compatibility level set to JAVA_8 [17:30:15] [main/WARN] [FML]: The coremod TransformLoader (org.orecruncher.dsurround.mixins.TransformLoader) is not signed! [17:30:15] [main/WARN] [LaunchWrapper]: Tweak class name org.spongepowered.asm.launch.MixinTweaker has already been visited -- skipping [17:30:15] [main/INFO] [LaunchWrapper]: Loading tweak class name optifine.OptiFineForgeTweaker [17:30:15] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [17:30:15] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [17:30:15] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [17:30:15] [main/INFO] [LaunchWrapper]: Calling tweak class optifine.OptiFineForgeTweaker [17:30:15] [main/INFO] [STDOUT]: [optifine.OptiFineForgeTweaker:dbg:56]: OptiFineForgeTweaker: acceptOptions [17:30:15] [main/INFO] [STDOUT]: [optifine.OptiFineForgeTweaker:dbg:56]: OptiFineForgeTweaker: Forge server detected, skipping class transformer [17:30:15] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [17:30:16] [main/INFO] [FML]: Found valid fingerprint for Minecraft Forge. Certificate fingerprint e3c3d50c7c986df74c645c0ac54639741c90a557 [17:30:16] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [17:30:16] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [17:30:17] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [17:30:17] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [17:30:17] [main/INFO] [STDOUT]: [micdoodle8.mods.miccore.MicdoodlePlugin:getASMTransformerClass:99]: Successfully Registered Transformer [17:30:17] [main/INFO] [STDOUT]: [micdoodle8.mods.miccore.MicdoodlePlugin:injectData:292]: [Micdoodle8Core]: Patching game... [17:30:17] [main/INFO] [STDOUT]: [micdoodle8.mods.miccore.MicdoodlePlugin:injectData:292]: [Micdoodle8Core]: Patching game... [17:30:17] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [17:30:17] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [17:30:17] [main/INFO] [LaunchWrapper]: Calling tweak class org.spongepowered.asm.launch.MixinTweaker [17:30:17] [main/INFO] [mixin]: Initialised Mixin FML Remapper Adapter with net.minecraftforge.fml.common.asm.transformers.deobf.FMLDeobfuscatingRemapper@37af24cb [17:30:17] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [17:30:17] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [17:30:17] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker [17:30:17] [main/INFO] [LaunchWrapper]: Loading tweak class name org.spongepowered.asm.mixin.EnvironmentStateTweaker [17:30:17] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker [17:30:17] [main/INFO] [LaunchWrapper]: Calling tweak class org.spongepowered.asm.mixin.EnvironmentStateTweaker [17:30:17] [main/INFO] [STDOUT]: [optifine.OptiFineForgeTweaker:dbg:56]: OptiFineForgeTweaker: getLaunchArguments [17:30:17] [main/INFO] [STDOUT]: [xaero.common.core.transformer.ClassNodeTransformer:transform:26]: Transforming class pl net.minecraft.server.management.PlayerList [17:30:17] [main/INFO] [Quark ASM]: Transforming net.minecraft.world.WorldServer [17:30:17] [main/INFO] [Quark ASM]: Applying Transformation to method (Names [areAllPlayersAsleep, func_73056_e] Descriptor ()Z) [17:30:17] [main/INFO] [Quark ASM]: Located Method, patching... [17:30:17] [main/INFO] [Quark ASM]: Patch result: true [17:30:17] [main/INFO] [Quark ASM]: Applying Transformation to method (Names [wakeAllPlayers, func_73053_d] Descriptor ()V) [17:30:17] [main/INFO] [Quark ASM]: Located Method, patching... [17:30:17] [main/INFO] [Quark ASM]: Patch result: true [17:30:18] [main/INFO] [STDOUT]: [xaero.common.core.transformer.ClassNodeTransformer:transform:26]: Transforming class pl net.minecraft.server.management.PlayerList [17:30:18] [main/INFO] [STDOUT]: [xaero.common.core.transformer.ClassNodeTransformer:transform:26]: Transforming class aed net.minecraft.entity.player.EntityPlayer [17:30:18] [main/INFO] [STDOUT]: [xaero.common.core.transformer.ClassNodeTransformer:transform:26]: Transforming class aed net.minecraft.entity.player.EntityPlayer [17:30:18] [main/INFO] [Quark ASM]: Transforming net.minecraft.entity.Entity [17:30:18] [main/INFO] [Quark ASM]: Applying Transformation to method (Names [move, func_70091_d] Descriptor (Lnet/minecraft/entity/MoverType;DDD)V) [17:30:18] [main/INFO] [Quark ASM]: Located Method, patching... [17:30:18] [main/INFO] [Quark ASM]: Patch result: true [17:30:18] [main/INFO] [Quark ASM]: Located Method, patching... [17:30:18] [main/INFO] [Quark ASM]: Located patch target node INVOKEVIRTUAL net/minecraft/entity/Entity.func_145775_I ()V [17:30:18] [main/INFO] [Quark ASM]: Patch result: true [17:30:18] [main/INFO] [Quark ASM]: Applying Transformation to method (Names [onEntityUpdate, func_70030_z] Descriptor ()V) [17:30:18] [main/INFO] [Quark ASM]: Located Method, patching... [17:30:18] [main/INFO] [Quark ASM]: Patch result: true [17:30:18] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.server.MinecraftServer} [17:30:18] [main/INFO] [Quark ASM]: Transforming net.minecraft.enchantment.Enchantment [17:30:18] [main/INFO] [Quark ASM]: Applying Transformation to method (Names [canApply, func_92089_a] Descriptor (Lnet/minecraft/item/ItemStack;)Z) [17:30:18] [main/INFO] [Quark ASM]: Located Method, patching... [17:30:18] [main/INFO] [Quark ASM]: Located patch target node IRETURN [17:30:18] [main/INFO] [Quark ASM]: Patch result: true [17:30:18] [main/INFO] [STDOUT]: [com.creativemd.creativecore.transformer.CreativeTransformer:transform:49]: [itemphysic] Patched net.minecraft.entity.item.EntityItem ... [17:30:18] [main/INFO] [STDOUT]: [com.creativemd.creativecore.transformer.CreativeTransformer:transform:49]: [itemphysic] Patched net.minecraft.entity.item.EntityItem ... [17:30:18] [main/INFO] [Quark ASM]: Transforming net.minecraft.entity.item.EntityItem [17:30:18] [main/INFO] [Quark ASM]: Applying Transformation to method (Names [onUpdate, func_70071_h_] Descriptor ()V) [17:30:18] [main/INFO] [Quark ASM]: Located Method, patching... [17:30:18] [main/INFO] [Quark ASM]: Patch result: true [17:30:18] [main/INFO] [Quark ASM]: Transforming net.minecraft.item.ItemStack [17:30:18] [main/INFO] [Quark ASM]: Applying Transformation to method (Names [getTextComponent, func_151000_E] Descriptor ()Lnet/minecraft/util/text/ITextComponent;) [17:30:18] [main/INFO] [Quark ASM]: Located Method, patching... [17:30:18] [main/INFO] [Quark ASM]: Located patch target node ARETURN [17:30:18] [main/INFO] [Quark ASM]: Patch result: true [17:30:18] [main/INFO] [Quark ASM]: Transforming net.minecraft.block.BlockDynamicLiquid [17:30:18] [main/INFO] [Quark ASM]: Applying Transformation to method (Names [isBlocked, func_176372_g] Descriptor (Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/state/IBlockState;)Z) [17:30:18] [main/INFO] [Quark ASM]: Located Method, patching... [17:30:18] [main/INFO] [Quark ASM]: Located patch target node IRETURN [17:30:18] [main/INFO] [Quark ASM]: Located patch target node IRETURN [17:30:18] [main/INFO] [Quark ASM]: Patch result: true [17:30:18] [main/INFO] [Quark ASM]: Transforming net.minecraft.block.BlockPistonBase [17:30:18] [main/INFO] [Quark ASM]: Applying Transformation to method (Names [canPush, func_185646_a] Descriptor (Lnet/minecraft/block/state/IBlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/EnumFacing;ZLnet/minecraft/util/EnumFacing;)Z) [17:30:18] [main/INFO] [Quark ASM]: Located Method, patching... [17:30:18] [main/INFO] [Quark ASM]: Located patch target node INVOKEVIRTUAL net/minecraft/block/Block.hasTileEntity (Lnet/minecraft/block/state/IBlockState;)Z [17:30:18] [main/INFO] [Quark ASM]: Patch result: true [17:30:18] [main/INFO] [Quark ASM]: Applying Transformation to method (Names [doMove, func_176319_a] Descriptor (Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/EnumFacing;Z)Z) [17:30:18] [main/INFO] [Quark ASM]: Located Method, patching... [17:30:18] [main/INFO] [Quark ASM]: Located patch target node INVOKEVIRTUAL net/minecraft/block/state/BlockPistonStructureHelper.func_177254_c ()Ljava/util/List; [17:30:18] [main/INFO] [Quark ASM]: Patch result: true [17:30:18] [main/INFO] [Quark ASM]: Applying Transformation to method (Names [doMove, func_176319_a] Descriptor (Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/EnumFacing;Z)Z) [17:30:18] [main/INFO] [Quark ASM]: Located Method, patching... [17:30:18] [main/INFO] [Quark ASM]: Located patch target node INVOKESPECIAL net/minecraft/block/state/BlockPistonStructureHelper.<init> (Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/EnumFacing;Z)V [17:30:18] [main/INFO] [Quark ASM]: Patch result: true [17:30:18] [main/INFO] [Quark ASM]: Applying Transformation to method (Names [checkForMove, func_176316_e] Descriptor (Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/state/IBlockState;)V) [17:30:18] [main/INFO] [Quark ASM]: Located Method, patching... [17:30:18] [main/INFO] [Quark ASM]: Located patch target node INVOKESPECIAL net/minecraft/block/state/BlockPistonStructureHelper.<init> (Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/EnumFacing;Z)V [17:30:18] [main/INFO] [Quark ASM]: Patch result: true [17:30:18] [main/INFO] [Quark ASM]: Transforming net.minecraft.tileentity.TileEntityPiston [17:30:18] [main/INFO] [Quark ASM]: Applying Transformation to method (Names [update, func_73660_a] Descriptor ()V) [17:30:18] [main/INFO] [Quark ASM]: Located Method, patching... [17:30:18] [main/INFO] [Quark ASM]: Patch result: true [17:30:18] [main/INFO] [Quark ASM]: Applying Transformation to method (Names [clearPistonTileEntity, func_145866_f] Descriptor ()V) [17:30:18] [main/INFO] [Quark ASM]: Located Method, patching... [17:30:18] [main/INFO] [Quark ASM]: Located patch target node INVOKEVIRTUAL net/minecraft/world/World.func_180501_a (Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/state/IBlockState;I)Z [17:30:18] [main/INFO] [Quark ASM]: Patch result: true [17:30:18] [main/INFO] [Quark ASM]: Applying Transformation to method (Names [update, func_73660_a] Descriptor ()V) [17:30:18] [main/INFO] [Quark ASM]: Located Method, patching... [17:30:18] [main/INFO] [Quark ASM]: Located patch target node INVOKEVIRTUAL net/minecraft/world/World.func_180501_a (Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/state/IBlockState;I)Z [17:30:18] [main/INFO] [Quark ASM]: Patch result: true [17:30:19] [main/INFO] [Quark ASM]: Transforming net.minecraft.enchantment.EnchantmentDamage [17:30:19] [main/INFO] [Quark ASM]: Applying Transformation to method (Names [canApply, func_92089_a] Descriptor (Lnet/minecraft/item/ItemStack;)Z) [17:30:19] [main/INFO] [Quark ASM]: Located Method, patching... [17:30:19] [main/INFO] [Quark ASM]: Located patch target node IRETURN [17:30:19] [main/INFO] [Quark ASM]: Located patch target node IRETURN [17:30:19] [main/INFO] [Quark ASM]: Patch result: true [17:30:19] [main/INFO] [Quark ASM]: Transforming net.minecraft.entity.item.EntityMinecart [17:30:19] [main/INFO] [Quark ASM]: Applying Transformation to method (Names [killMinecart, func_94095_a] Descriptor (Lnet/minecraft/util/DamageSource;)V) [17:30:19] [main/INFO] [Quark ASM]: Located Method, patching... [17:30:19] [main/INFO] [Quark ASM]: Located patch target node INVOKEVIRTUAL net/minecraft/entity/item/EntityMinecart.func_70099_a (Lnet/minecraft/item/ItemStack;F)Lnet/minecraft/entity/item/EntityItem; [17:30:19] [main/INFO] [Quark ASM]: Patch result: true [17:30:19] [main/INFO] [Quark ASM]: Transforming net.minecraft.entity.item.EntityBoat [17:30:19] [main/INFO] [Quark ASM]: Applying Transformation to method (Names [attackEntityFrom, func_70097_a] Descriptor (Lnet/minecraft/util/DamageSource;F)Z) [17:30:19] [main/INFO] [Quark ASM]: Located Method, patching... [17:30:19] [main/INFO] [Quark ASM]: Located patch target node INVOKEVIRTUAL net/minecraft/entity/item/EntityBoat.func_145778_a (Lnet/minecraft/item/Item;IF)Lnet/minecraft/entity/item/EntityItem; [17:30:19] [main/INFO] [Quark ASM]: Patch result: true [17:30:19] [main/INFO] [Quark ASM]: Transforming net.minecraft.entity.Entity [17:30:19] [main/INFO] [Quark ASM]: Applying Transformation to method (Names [move, func_70091_d] Descriptor (Lnet/minecraft/entity/MoverType;DDD)V) [17:30:19] [main/INFO] [Quark ASM]: Located Method, patching... [17:30:19] [main/INFO] [Quark ASM]: Patch result: true [17:30:19] [main/INFO] [Quark ASM]: Located Method, patching... [17:30:19] [main/INFO] [Quark ASM]: Located patch target node INVOKEVIRTUAL net/minecraft/entity/Entity.func_145775_I ()V [17:30:19] [main/INFO] [Quark ASM]: Patch result: true [17:30:19] [main/INFO] [Quark ASM]: Applying Transformation to method (Names [onEntityUpdate, func_70030_z] Descriptor ()V) [17:30:19] [main/INFO] [Quark ASM]: Located Method, patching... [17:30:19] [main/INFO] [Quark ASM]: Patch result: true [17:30:19] [main/INFO] [Quark ASM]: Transforming net.minecraft.item.ItemBanner [17:30:26] [main/INFO] [Quark ASM]: Applying Transformation to method (Names [appendHoverTextFromTileEntityTag, func_185054_a] Descriptor (Lnet/minecraft/item/ItemStack;Ljava/util/List;)V) [17:30:26] [main/INFO] [Quark ASM]: Failed to locate the method! [17:30:26] [main/INFO] [Quark ASM]: Transforming net.minecraft.item.ItemStack [17:30:26] [main/INFO] [Quark ASM]: Applying Transformation to method (Names [getTextComponent, func_151000_E] Descriptor ()Lnet/minecraft/util/text/ITextComponent;) [17:30:26] [main/INFO] [Quark ASM]: Located Method, patching... [17:30:26] [main/INFO] [Quark ASM]: Located patch target node ARETURN [17:30:26] [main/INFO] [Quark ASM]: Patch result: true [17:30:27] [main/INFO] [STDOUT]: [com.flemmli97.tenshilib.asm.ASMTransformer:asmDebug:43]: [TenshiCore]: Patching PathNavigate [17:30:27] [main/INFO] [Quark ASM]: Transforming net.minecraft.entity.ai.EntityAITarget [17:30:27] [main/INFO] [Quark ASM]: Applying Transformation to method (Names [isSuitableTarget, func_179445_a] Descriptor (Lnet/minecraft/entity/EntityLiving;Lnet/minecraft/entity/EntityLivingBase;ZZ)Z) [17:30:27] [main/INFO] [Quark ASM]: Located Method, patching... [17:30:27] [main/INFO] [Quark ASM]: Patch result: true [17:30:27] [main/INFO] [Quark ASM]: Transforming net.minecraft.item.crafting.RecipesBanners$RecipeAddPattern [17:30:27] [main/INFO] [Quark ASM]: Applying Transformation to method (Names [matches, func_77569_a] Descriptor (Lnet/minecraft/inventory/InventoryCrafting;Lnet/minecraft/world/World;)Z) [17:30:27] [main/INFO] [Quark ASM]: Located Method, patching... [17:30:27] [main/INFO] [Quark ASM]: Located patch target node INVOKESTATIC net/minecraft/tileentity/TileEntityBanner.func_175113_c (Lnet/minecraft/item/ItemStack;)I [17:30:27] [main/INFO] [Quark ASM]: Patch result: true [17:30:27] [main/INFO] [Quark ASM]: Transforming net.minecraft.inventory.ContainerMerchant [17:30:27] [main/INFO] [Quark ASM]: Applying Transformation to method (Names [transferStackInSlot, func_82846_b] Descriptor (Lnet/minecraft/entity/player/EntityPlayer;I)Lnet/minecraft/item/ItemStack;) [17:30:27] [main/INFO] [Quark ASM]: Located Method, patching... [17:30:27] [main/INFO] [Quark ASM]: Located patch target node INVOKEVIRTUAL net/minecraft/inventory/ContainerMerchant.func_75135_a (Lnet/minecraft/item/ItemStack;IIZ)Z [17:30:27] [main/INFO] [Quark ASM]: Located patch target node INVOKEVIRTUAL net/minecraft/inventory/ContainerMerchant.func_75135_a (Lnet/minecraft/item/ItemStack;IIZ)Z [17:30:27] [main/INFO] [Quark ASM]: Located patch target node INVOKEVIRTUAL net/minecraft/inventory/ContainerMerchant.func_75135_a (Lnet/minecraft/item/ItemStack;IIZ)Z [17:30:27] [main/INFO] [Quark ASM]: Located patch target node INVOKEVIRTUAL net/minecraft/inventory/ContainerMerchant.func_75135_a (Lnet/minecraft/item/ItemStack;IIZ)Z [17:30:27] [main/INFO] [Quark ASM]: Patch result: true [17:30:28] [main/INFO] [STDOUT]: [xaero.common.core.transformer.ClassNodeTransformer:transform:26]: Transforming class bfc net.minecraft.world.storage.SaveFormatOld [17:30:28] [Server thread/INFO] [minecraft/DedicatedServer]: Starting minecraft server version 1.12.2 [17:30:28] [Server thread/WARN] [minecraft/DedicatedServer]: To start the server with more ram, launch it as "java -Xmx1024M -Xms1024M -jar minecraft_server.jar" [17:30:28] [Server thread/INFO] [FML]: MinecraftForge v14.23.5.2859 Initialized [17:30:28] [Server thread/INFO] [FML]: Starts to replace vanilla recipe ingredients with ore ingredients. [17:30:28] [Server thread/INFO] [FML]: Invalid recipe found with multiple oredict ingredients in the same ingredient... [17:30:28] [Server thread/INFO] [FML]: Replaced 1227 ore ingredients [17:30:29] [Server thread/INFO] [FML]: Searching C:\Users\Ryuuk\OneDrive\Escritorio\Servidor\.\mods for mods [17:30:29] [Server thread/WARN] [FML]: Mod securitycraft is missing the required element 'version' and a version.properties file could not be found. Falling back to metadata version v1.9.4 [17:30:31] [Server thread/WARN] [FML]: Mod mobends is missing the required element 'version' and a version.properties file could not be found. Falling back to metadata version 1.2.1 [17:30:31] [Server thread/INFO] [FML]: Disabling mod betteranimals it is client side only. [17:30:31] [Server thread/INFO] [FML]: Forge Mod Loader has identified 46 mods to load [17:30:31] [Server thread/WARN] [FML]: Missing English translation for FML: assets/fml/lang/en_us.lang [17:30:31] [Server thread/WARN] [FML]: Missing English translation for extendedrenderer: assets/extendedrenderer/lang/en_us.lang [17:30:31] [Server thread/WARN] [FML]: Missing English translation for configmod: assets/configmod/lang/en_us.lang [17:30:31] [Server thread/WARN] [FML]: Missing English translation for enhancedvisuals: assets/enhancedvisuals/lang/en_us.lang [17:30:31] [Server thread/WARN] [FML]: Missing English translation for ic2: assets/ic2/lang/en_us.lang [17:30:31] [Server thread/INFO] [FML]: FML has found a non-mod file betteranimals-1.12.2-5.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. [17:30:31] [Server thread/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, creativecoredummy, itemphysic, micdoodlecore, xaerominimap_core, securitycraft, aether_legacy, aquaculture, artifacts, autoreglib, baubles, blockcraftery, carryon, economy, extendedrenderer, coroutil, configmod, creativecore, cucumber, customnpcs, dsurround, enhancedvisuals, cfm, galacticraftplanets, galacticraftcore, waila, ic2, jei, lostcities, lycanitesmobs, mca, mobends, mysticalagriculture, mysticallib, harvestcraft, quark, tenshilib, thedragonlib, tombstone, wildnature, xaerominimap, betteranimalsplus, orelib] at CLIENT [17:30:31] [Server thread/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, creativecoredummy, itemphysic, micdoodlecore, xaerominimap_core, securitycraft, aether_legacy, aquaculture, artifacts, autoreglib, baubles, blockcraftery, carryon, economy, extendedrenderer, coroutil, configmod, creativecore, cucumber, customnpcs, dsurround, enhancedvisuals, cfm, galacticraftplanets, galacticraftcore, waila, ic2, jei, lostcities, lycanitesmobs, mca, mobends, mysticalagriculture, mysticallib, harvestcraft, quark, tenshilib, thedragonlib, tombstone, wildnature, xaerominimap, betteranimalsplus, orelib] at SERVER [17:30:32] [Server thread/INFO] [Quark ASM]: Transforming net.minecraft.util.DamageSource [17:30:32] [Server thread/INFO] [Quark ASM]: Applying Transformation to method (Names [causePlayerDamage, func_76365_a] Descriptor (Lnet/minecraft/entity/player/EntityPlayer;)Lnet/minecraft/util/DamageSource;) [17:30:32] [Server thread/INFO] [Quark ASM]: Located Method, patching... [17:30:32] [Server thread/INFO] [Quark ASM]: Patch result: true [17:30:33] [Server thread/INFO] [STDOUT]: [xaero.common.core.transformer.ClassNodeTransformer:transform:26]: Transforming class axw net.minecraft.world.chunk.Chunk [17:30:34] [Server thread/WARN] [dsurround]: Invalid fingerprint detected! [17:30:34] [Server thread/INFO] [thedragonlib]: Welcoming Minecraft [17:30:34] [Server thread/INFO] [FML]: Processing ObjectHolder annotations [17:30:34] [Server thread/INFO] [FML]: Found 1247 ObjectHolder annotations [17:30:34] [Server thread/INFO] [FML]: Identifying ItemStackHolder annotations [17:30:34] [Server thread/INFO] [FML]: Found 0 ItemStackHolder annotations [17:30:35] [Server thread/INFO] [FML]: Configured a dormant chunk cache size of 0 [17:30:35] [Forge Version Check/INFO] [forge.VersionCheck]: [orelib] Starting version check at https://raw.githubusercontent.com/OreCruncher/OreLib/master/version.json [17:30:36] [Forge Version Check/INFO] [forge.VersionCheck]: [orelib] Found status: UP_TO_DATE Target: null [17:30:36] [Forge Version Check/INFO] [forge.VersionCheck]: [forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json [17:30:37] [Forge Version Check/INFO] [forge.VersionCheck]: [forge] Found status: UP_TO_DATE Target: null [17:30:37] [Forge Version Check/INFO] [forge.VersionCheck]: [tombstone] Starting version check at https://raw.githubusercontent.com/Corail31/tombstone_lite/master/update.json [17:30:37] [Server thread/INFO] [Quark]: Module client is enabled [17:30:37] [Server thread/INFO] [Quark]: Module automation is enabled [17:30:37] [Server thread/INFO] [Quark]: Module world is enabled [17:30:37] [Server thread/INFO] [Quark]: Module decoration is enabled [17:30:37] [Server thread/INFO] [Quark]: Module misc is enabled [17:30:37] [Server thread/INFO] [Quark]: Module tweaks is enabled [17:30:37] [Server thread/INFO] [Quark]: Module management is enabled [17:30:37] [Server thread/INFO] [Quark]: Module experimental is enabled [17:30:37] [Server thread/INFO] [Quark]: Module building is enabled [17:30:37] [Server thread/INFO] [Quark]: Module vanity is enabled [17:30:38] [Forge Version Check/INFO] [forge.VersionCheck]: [tombstone] Found status: OUTDATED Target: 4.5.13 [17:30:38] [Forge Version Check/INFO] [forge.VersionCheck]: [carryon] Starting version check at https://gist.githubusercontent.com/Tschipp/dccadee7c90d7a34e6e76a35d9d6fa2e/raw/ [17:30:38] [Forge Version Check/INFO] [forge.VersionCheck]: [thedragonlib] Starting version check at https://cdn.tdt.pw/thedragonlib-updater.json [17:30:38] [Forge Version Check/INFO] [forge.VersionCheck]: [securitycraft] Starting version check at https://www.github.com/Geforce132/SecurityCraft/raw/master/Updates/Forge.json [17:30:39] [Forge Version Check/INFO] [forge.VersionCheck]: [securitycraft] Found status: UP_TO_DATE Target: null [17:30:39] [Forge Version Check/INFO] [forge.VersionCheck]: [aether_legacy] Starting version check at https://raw.githubusercontent.com/Modding-Legacy/Aether-Legacy/master/aether-legacy-changelog.json [17:30:40] [Forge Version Check/INFO] [forge.VersionCheck]: [artifacts] Starting version check at https://github.com/ochotonida/artifacts/blob/master/update.json [17:30:41] [Server thread/WARN] [FML]: Patcher expecting empty class data file for net.minecraft.block.state.BlockStateContainer$Builder, but received non-empty
    • Hi, textures of my items won't load Caused by: java.io.FileNotFoundException: decorock:models/item/sopa_macaco.json Caused by: net.minecraft.client.renderer.block.model.ModelBlockDefinition$MissingVariantException   Everything is fine with the path, I checked it many, many times path: assets/decorock/models/item/sopa_macaco.json { "parent": "item/generated", "textures": { "layer0": "decorock:items/sopa_macaco" } }  
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.