Jump to content

Heltrato

Members
  • Posts

    261
  • Joined

  • Last visited

Posts posted by Heltrato

  1. 7 minutes ago, diesieben07 said:

    You need a custom item, because while the vanilla spawner item does have a way to specify the spawned mob (via the BlockEntityTag NBT tag), but only OPs can place such an item.

    So you need your own BlockItem class and override onBlockPlaced. In there set the entity type of the placed spawner.

    Thanks for the fast response diesieben07, just want to clarify thou, what specific Item/BlockItem class should extend for the spawner block, i cant seem to find any spawner block item related in the minecraft packages atm.

  2. On 12/23/2019 at 5:33 AM, ChampionAsh5357 said:

    You need to set the render layer using

    
    RenderTypeLookup#setRenderLayer

    within your FMLClientSetupEvent to make blocks transparent.

     

    It takes in two parameters: the block and the RenderType.

    The RenderTypes are as follows:

    Solid - field_228615_R_

    Cutout Mipped - field_228616_S_

    Cutout - field_228617_T_

    Translucent - field_228618_U_

    Translucent (No Crumbling) - field_228619_V_

    Leash - field_228620_W_

    Water Mask - field_228621_X_

    Glint - field_228622_Y_

    Entity Glint - field_228623_Z_

    Lightning - field_228624_aa_

     

    What you are looking for is either cutout mipped or cutout so use either RenderType#field_228616_S_ or RenderType#field_228617_T_ to accomplish this.

    Thanks bro you dope, you know dopes makes me high and its good, no but for real thank you

  3. 6 minutes ago, V0idWa1k3r said:

    Don't ever implement IInventory. Use capabilities instead.

     

    Don't extend BlockContainer. It overrides a bunch of methods you do not need, like the rendering method. Just override Block#hasTileEntity and Block#createTileEntity.

     

    IIngredient by default doesn't care for the stack size since it is only used for vanilla crafting bench and that one only operates in stack sizes of one. You need to check the stack size yourself.

     

    Well, why wouldn't it? That's what you are telling it to do:

    
    private void finishRecipe() {
    		...
    		resetInputStacks();
    		...
    }
    
    private void resetInputStacks() {
    		Arrays.fill(inputStacks, ItemStack.EMPTY);
    	}

    You are telling your TE to fill all inputs with an empty stack when it is done.

     

    Unrelated

    Do you own mhfc.net? Because if you don't you can't name your package like that. And if you do - fix the security warning, I can't even access the site.

     

    Is there any code related that reduces the StackSize of the inputStacks? I haven't really found out one since then :/ thou this method works fine during 1.11.2

     

    Oh yeah, mhfc.net was our package since we started from 1.4.7 i'll have to rename this soon.

  4. So im porting my mod to 1.12.2 fixed the errors most of it but bugs are everywhere since no reworks.

     

    Right now im trying to fix my custom crafting bench that has a clickable button (craft) if the following requiredStack slot is met,

     

    but two things i find out 

    1.) it allows to craft even if the required quantity is not me

    2.) upon finish crafting it just consumes on how many quantity the requiredstack is (even if it exceed)

     

    Here is my class that has a related on it

     

    https://github.com/Guild-Hall/MHFC/blob/1.12.2/src/main/java/mhfc/net/common/tile/TileHunterBench.java

     

    https://github.com/Guild-Hall/MHFC/blob/1.12.2/src/main/java/mhfc/net/common/block/container/BlockHunterBench.java

     

    P.S on 1.11.2 this methods are all the same, 

  5. 2018-11-18 11:28:19,538 main WARN Disabling terminal, you're running in an unsupported environment.
    [11:28:19] [main/INFO] [GradleStart]: Extra: []
    [11:28:19] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/user/.gradle/caches/minecraft/assets, --assetIndex, 1.12, --accessToken{REDACTED}, --version, 1.12.2, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
    [11:28:19] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
    [11:28:19] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
    [11:28:19] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
    [11:28:19] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker
    [11:28:20] [main/INFO] [FML]: Forge Mod Loader version 14.23.4.2705 for Minecraft 1.12.2 loading
    [11:28:20] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_181, running on Windows 10:amd64:10.0, installed at C:\Program Files\Java\jre1.8.0_181
    [11:28:20] [main/ERROR] [FML]: Apache Maven library folder was not in the format expected. Using default libraries directory.
    [11:28:20] [main/ERROR] [FML]: Full: C:\Users\user\.gradle\caches\modules-2\files-2.1\org.apache.maven\maven-artifact\3.5.3\7dc72b6d6d8a6dced3d294ed54c2cc3515ade9f4\maven-artifact-3.5.3.jar
    [11:28:20] [main/ERROR] [FML]: Trimmed: c:/users/user/.gradle/caches/modules-2/files-2.1/org.apache.maven/maven-artifact/3.5.3/
    [11:28:20] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
    [11:28:20] [main/INFO] [FML]: Ignoring missing certificate for coremod FMLCorePlugin (net.minecraftforge.fml.relauncher.FMLCorePlugin), we are in deobf and it's a forge core plugin
    [11:28:20] [main/INFO] [FML]: Ignoring missing certificate for coremod FMLForgePlugin (net.minecraftforge.classloading.FMLForgePlugin), we are in deobf and it's a forge core plugin
    [11:28:20] [main/INFO] [FML]: Searching E:\Jayrol\Monster Hunter Frontier Craft\MHFC\run\.\mods for mods
    [11:28:20] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
    [11:28:20] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin
    [11:28:20] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
    [11:28:20] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
    [11:28:20] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
    [11:28:20] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
    [11:28:20] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
    [11:28:20] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
    [11:28:20] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
    [11:28:23] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
    [11:28:23] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
    [11:28:23] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
    [11:28:25] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
    [11:28:25] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker
    [11:28:25] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker
    [11:28:25] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
    [11:28:26] [main/INFO] [net.minecraft.client.Minecraft]: Setting user: Player175
    [11:28:34] [main/WARN] [net.minecraft.client.settings.GameSettings]: Skipping bad option: lastServer:
    [11:28:34] [main/INFO] [net.minecraft.client.Minecraft]: LWJGL Version: 2.9.4
    [11:28:36] [main/INFO] [FML]: -- System Details --
    Details:
    	Minecraft Version: 1.12.2
    	Operating System: Windows 10 (amd64) version 10.0
    	Java Version: 1.8.0_181, Oracle Corporation
    	Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    	Memory: 389938320 bytes (371 MB) / 718274560 bytes (685 MB) up to 3797417984 bytes (3621 MB)
    	JVM Flags: 0 total; 
    	IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
    	FML: 
    	Loaded coremods (and transformers): 
    	GL info: ' Vendor: 'Intel' Version: '4.4.0 - Build 20.19.15.4835' Renderer: 'Intel(R) HD Graphics 5500'
    [11:28:36] [main/INFO] [FML]: MinecraftForge v14.23.4.2705 Initialized
    [11:28:36] [main/INFO] [FML]: Starts to replace vanilla recipe ingredients with ore ingredients.
    [11:28:36] [main/INFO] [FML]: Replaced 1036 ore ingredients
    [11:28:38] [main/INFO] [FML]: Searching E:\Jayrol\Monster Hunter Frontier Craft\MHFC\run\.\mods for mods
    [11:28:41] [main/WARN] [FML]: Mod mhfc is missing the required element 'version' and a version.properties file could not be found. Falling back to metadata version ${version}
    [11:28:42] [Thread-3/INFO] [FML]: Using alternative sync timing : 200 frames of Display.update took 3417533125 nanos
    [11:28:42] [main/INFO] [FML]: Forge Mod Loader has identified 7 mods to load
    [11:28:43] [main/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, mhfc, mcanm, worldedit] at CLIENT
    [11:28:43] [main/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, mhfc, mcanm, worldedit] at SERVER
    [11:28:46] [main/INFO] [net.minecraft.client.resources.SimpleReloadableResourceManager]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Monster Hunter Frontier Craft, FMLFileResourcePack:Minecraft Animated, FMLFileResourcePack:WorldEdit
    [11:28:46] [main/INFO] [FML]: Processing ObjectHolder annotations
    [11:28:46] [main/INFO] [FML]: Found 1168 ObjectHolder annotations
    [11:28:46] [main/INFO] [FML]: Identifying ItemStackHolder annotations
    [11:28:46] [main/INFO] [FML]: Found 0 ItemStackHolder annotations
    [11:28:46] [main/INFO] [FML]: Configured a dormant chunk cache size of 0
    [11:28:46] [Forge Version Check/INFO] [forge.VersionCheck]: [mhfc] Starting version check at https://raw.githubusercontent.com/Guild-Hall/MHFC/updates/update.json
    [11:28:47] [main/INFO] [mcanm]: Successfully loaded MC Animations
    [11:28:47] [main/INFO] [mhfc]: Starting MHFC ( ${version} ) 
    [11:28:47] [main/INFO] [mhfc]: Copyright (c) Heltrato | WorldSEnder 2018
    [11:28:47] [main/INFO] [mhfc]: Blocks registered
    [11:28:48] [main/INFO] [mhfc]: Items registered
    [11:28:48] [Forge Version Check/INFO] [forge.VersionCheck]: [mhfc] Found status: BETA Target: null
    [11:28:48] [Forge Version Check/INFO] [forge.VersionCheck]: [forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json
    [11:28:48] [main/INFO] [FML]: Applying holder lookups
    [11:28:48] [main/INFO] [FML]: Holder lookups applied
    [11:28:48] [main/INFO] [FML]: Applying holder lookups
    [11:28:48] [main/INFO] [FML]: Holder lookups applied
    [11:28:48] [main/INFO] [FML]: Applying holder lookups
    [11:28:48] [main/INFO] [FML]: Holder lookups applied
    [11:28:48] [main/INFO] [FML]: Applying holder lookups
    [11:28:48] [main/INFO] [FML]: Holder lookups applied
    [11:28:48] [main/INFO] [FML]: Injecting itemstacks
    [11:28:48] [main/INFO] [FML]: Itemstack injection complete
    [11:28:48] [Forge Version Check/INFO] [forge.VersionCheck]: [forge] Found status: OUTDATED Target: 14.23.5.2768
    [11:28:54] [Sound Library Loader/INFO] [net.minecraft.client.audio.SoundManager]: Starting up SoundSystem...
    [11:28:54] [Thread-6/INFO] [net.minecraft.client.audio.SoundManager]: Initializing LWJGL OpenAL
    [11:28:54] [Thread-6/INFO] [net.minecraft.client.audio.SoundManager]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
    [11:28:54] [Thread-6/INFO] [net.minecraft.client.audio.SoundManager]: OpenAL initialized.
    [11:28:54] [Sound Library Loader/INFO] [net.minecraft.client.audio.SoundManager]: Sound engine started
    [11:29:06] [main/INFO] [FML]: Max texture size: 16384
    [11:29:09] [main/INFO] [net.minecraft.client.renderer.texture.TextureMap]: Created: 4096x2048 textures-atlas
    [11:29:12] [main/INFO] [FML]: Applying holder lookups
    [11:29:12] [main/INFO] [FML]: Holder lookups applied
    [11:29:12] [main/INFO] [mhfc]: Potions registered
    [11:29:12] [main/INFO] [mhfc]: Monsters registered
    [11:29:12] [main/INFO] [mhfc]: Events registered
    [11:29:12] [main/INFO] [mhfc]: Custom player properties registered
    [11:29:12] [main/INFO] [mhfc]: Recipes registered
    [11:29:13] [main/INFO] [mhfc]: Dimension registered
    [11:29:13] [main/INFO] [mhfc]: Smelting registered
    [11:29:13] [main/WARN] [FML]: Potentially Dangerous alternative prefix `minecraft` for name `hunter's bench`, expected `mhfc`. This could be a intended override, but in most cases indicates a broken mod.
    [11:29:13] [main/WARN] [FML]: Potentially Dangerous alternative prefix `minecraft` for name `stun trap`, expected `mhfc`. This could be a intended override, but in most cases indicates a broken mod.
    [11:29:13] [main/WARN] [FML]: Potentially Dangerous alternative prefix `minecraft` for name `bbq spit`, expected `mhfc`. This could be a intended override, but in most cases indicates a broken mod.
    [11:29:13] [main/WARN] [FML]: Potentially Dangerous alternative prefix `minecraft` for name `quest board`, expected `mhfc`. This could be a intended override, but in most cases indicates a broken mod.
    [11:29:13] [main/WARN] [FML]: Potentially Dangerous alternative prefix `minecraft` for name `explore area`, expected `mhfc`. This could be a intended override, but in most cases indicates a broken mod.
    [11:29:13] [main/INFO] [mhfc]: Tile Entities registered
    [11:29:13] [main/INFO] [mhfc]: Packets registered
    [11:29:14] [main/INFO] [mhfc]: Areas and exploration registered
    [11:29:14] [main/INFO] [mhfc]: Server loaded 9 quests in 2 groups.
    [11:29:14] [main/INFO] [mhfc]: Quest loaded
    [11:29:14] [main/INFO] [mhfc]: Quest Server registered
    [11:29:14] [main/INFO] [FML]: Injecting itemstacks
    [11:29:14] [main/INFO] [FML]: Itemstack injection complete
    [11:29:14] [main/INFO] [worldedit]: WorldEdit for Forge (version 6.1.10-SNAPSHOT) is loaded
    [11:29:15] [main/INFO] [FML]: Forge Mod Loader has successfully loaded 7 mods
    [11:29:15] [main/WARN] [net.minecraft.client.settings.GameSettings]: Skipping bad option: lastServer:
    [11:29:15] [main/INFO] [com.mojang.text2speech.NarratorWindows]: Narrator library for x64 successfully loaded
    [11:29:15] [main/ERROR] [FML]: Exception caught during firing event net.minecraftforge.fml.common.gameevent.TickEvent$ClientTickEvent@9831fa9:
    java.lang.ExceptionInInitializerError: null
    	at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_18_MHFCTickHandler_onClientTick_ClientTickEvent.invoke(.dynamic) ~[?:?]
    	at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
    	at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) [EventBus.class:?]
    	at net.minecraftforge.fml.common.FMLCommonHandler.onPreClientTick(FMLCommonHandler.java:343) [FMLCommonHandler.class:?]
    	at net.minecraft.client.Minecraft.runTick(Minecraft.java:1833) [Minecraft.class:?]
    	at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1186) [Minecraft.class:?]
    	at net.minecraft.client.Minecraft.run(Minecraft.java:441) [Minecraft.class:?]
    	at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?]
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_181]
    	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_181]
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_181]
    	at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_181]
    	at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?]
    	at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_181]
    	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_181]
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_181]
    	at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_181]
    	at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]
    	at GradleStart.main(GradleStart.java:25) [start/:?]
    Caused by: java.lang.IllegalArgumentException: Can't register for an active phase
    	at com.google.common.base.Preconditions.checkArgument(Preconditions.java:122) ~[guava-21.0.jar:?]
    	at mhfc.net.common.util.services.Services$PhaseEntry.addService(Services.java:383) ~[Services$PhaseEntry.class:?]
    	at mhfc.net.common.util.services.Services.registerServiceForPhase(Services.java:556) ~[Services.class:?]
    	at mhfc.net.common.util.services.Services.access$1(Services.java:549) ~[Services.class:?]
    	at mhfc.net.common.util.services.Services$ServiceEntry.addTo(Services.java:190) ~[Services$ServiceEntry.class:?]
    	at mhfc.net.common.eventhandler.MHFCTickHandler.<clinit>(MHFCTickHandler.java:110) ~[MHFCTickHandler.class:?]
    	... 20 more
    [11:29:15] [main/ERROR] [FML]: Index: 1 Listeners:
    [11:29:15] [main/ERROR] [FML]: 0: NORMAL
    [11:29:15] [main/ERROR] [FML]: 1: ASM: class mhfc.net.common.eventhandler.MHFCTickHandler onClientTick(Lnet/minecraftforge/fml/common/gameevent/TickEvent$ClientTickEvent;)V
    [11:29:15] [main/ERROR] [FML]: 2: ASM: net.minecraftforge.common.ForgeInternalHandler@4975f618 checkSettings(Lnet/minecraftforge/fml/common/gameevent/TickEvent$ClientTickEvent;)V
    [11:29:15] [main/ERROR] [FML]: 3: ASM: com.sk89q.worldedit.forge.ThreadSafeCache@385ceb2e tickStart(Lnet/minecraftforge/fml/common/gameevent/TickEvent;)V
    [11:29:18] [main/FATAL] [net.minecraft.client.Minecraft]: Unreported exception thrown!
    java.lang.ExceptionInInitializerError: null
    	at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_18_MHFCTickHandler_onClientTick_ClientTickEvent.invoke(.dynamic) ~[?:?]
    	at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
    	at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) ~[EventBus.class:?]
    	at net.minecraftforge.fml.common.FMLCommonHandler.onPreClientTick(FMLCommonHandler.java:343) ~[FMLCommonHandler.class:?]
    	at net.minecraft.client.Minecraft.runTick(Minecraft.java:1833) ~[Minecraft.class:?]
    	at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1186) ~[Minecraft.class:?]
    	at net.minecraft.client.Minecraft.run(Minecraft.java:441) [Minecraft.class:?]
    	at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?]
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_181]
    	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_181]
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_181]
    	at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_181]
    	at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?]
    	at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_181]
    	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_181]
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_181]
    	at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_181]
    	at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]
    	at GradleStart.main(GradleStart.java:25) [start/:?]
    Caused by: java.lang.IllegalArgumentException: Can't register for an active phase
    	at com.google.common.base.Preconditions.checkArgument(Preconditions.java:122) ~[guava-21.0.jar:?]
    	at mhfc.net.common.util.services.Services$PhaseEntry.addService(Services.java:383) ~[Services$PhaseEntry.class:?]
    	at mhfc.net.common.util.services.Services.registerServiceForPhase(Services.java:556) ~[Services.class:?]
    	at mhfc.net.common.util.services.Services.access$1(Services.java:549) ~[Services.class:?]
    	at mhfc.net.common.util.services.Services$ServiceEntry.addTo(Services.java:190) ~[Services$ServiceEntry.class:?]
    	at mhfc.net.common.eventhandler.MHFCTickHandler.<clinit>(MHFCTickHandler.java:110) ~[MHFCTickHandler.class:?]
    	... 20 more
    [11:29:18] [main/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:629]: ---- Minecraft Crash Report ----
    // Oops.
    
    Time: 11/18/18 11:29 AM
    Description: Unexpected error
    
    java.lang.ExceptionInInitializerError
    	at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_18_MHFCTickHandler_onClientTick_ClientTickEvent.invoke(.dynamic)
    	at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90)
    	at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182)
    	at net.minecraftforge.fml.common.FMLCommonHandler.onPreClientTick(FMLCommonHandler.java:343)
    	at net.minecraft.client.Minecraft.runTick(Minecraft.java:1833)
    	at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1186)
    	at net.minecraft.client.Minecraft.run(Minecraft.java:441)
    	at net.minecraft.client.main.Main.main(Main.java:118)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    	at java.lang.reflect.Method.invoke(Unknown Source)
    	at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
    	at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    	at java.lang.reflect.Method.invoke(Unknown Source)
    	at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97)
    	at GradleStart.main(GradleStart.java:25)
    Caused by: java.lang.IllegalArgumentException: Can't register for an active phase
    	at com.google.common.base.Preconditions.checkArgument(Preconditions.java:122)
    	at mhfc.net.common.util.services.Services$PhaseEntry.addService(Services.java:383)
    	at mhfc.net.common.util.services.Services.registerServiceForPhase(Services.java:556)
    	at mhfc.net.common.util.services.Services.access$1(Services.java:549)
    	at mhfc.net.common.util.services.Services$ServiceEntry.addTo(Services.java:190)
    	at mhfc.net.common.eventhandler.MHFCTickHandler.<clinit>(MHFCTickHandler.java:110)
    	... 20 more
    
    
    A detailed walkthrough of the error, its code path and all known details is as follows:
    ---------------------------------------------------------------------------------------
    
    -- System Details --
    Details:
    	Minecraft Version: 1.12.2
    	Operating System: Windows 10 (amd64) version 10.0
    	Java Version: 1.8.0_181, Oracle Corporation
    	Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    	Memory: 413416640 bytes (394 MB) / 1082130432 bytes (1032 MB) up to 3797417984 bytes (3621 MB)
    	JVM Flags: 0 total; 
    	IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
    	FML: MCP 9.42 Powered by Forge 14.23.4.2705 7 mods loaded, 7 mods active
    	States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
    
    	| State  | ID        | Version         | Source                                                 | Signature |
    	|:------ |:--------- |:--------------- |:------------------------------------------------------ |:--------- |
    	| UCHIJA | minecraft | 1.12.2          | minecraft.jar                                          | None      |
    	| UCHIJA | mcp       | 9.42            | minecraft.jar                                          | None      |
    	| UCHIJA | FML       | 8.0.99.99       | forgeSrc-1.12.2-14.23.4.2705.jar                       | None      |
    	| UCHIJA | forge     | 14.23.4.2705    | forgeSrc-1.12.2-14.23.4.2705.jar                       | None      |
    	| UCHIJA | mcanm     | 2.7.4.149       | MCAnm-v2.7.46-deobf.jar                                | None      |
    	| UCHIJA | worldedit | 6.1.10-SNAPSHOT | worldedit-forge-mc1.12.2-6.1.10-SNAPSHOT-dev-deobf.jar | None      |
    	| UCHIJA | mhfc      | ${version}      | bin                                                    | None      |
    
    	Loaded coremods (and transformers): 
    	GL info: ' Vendor: 'Intel' Version: '4.4.0 - Build 20.19.15.4835' Renderer: 'Intel(R) HD Graphics 5500'
    	Launched Version: 1.12.2
    	LWJGL: 2.9.4
    	OpenGL: Intel(R) HD Graphics 5500 GL version 4.4.0 - Build 20.19.15.4835, Intel
    	GL Caps: Using GL 1.3 multitexturing.
    Using GL 1.3 texture combiners.
    Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
    Shaders are available because OpenGL 2.1 is supported.
    VBOs are available because OpenGL 1.5 is supported.
    
    	Using VBOs: Yes
    	Is Modded: Definitely; Client brand changed to 'fml,forge'
    	Type: Client (map_client.txt)
    	Resource Packs: 
    	Current Language: English (US)
    	Profiler Position: N/A (disabled)
    	CPU: 4x Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz
    [11:29:18] [main/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:629]: #@!@# Game crashed! Crash report saved to: #@!@# E:\Jayrol\Monster Hunter Frontier Craft\MHFC\run\.\crash-reports\crash-2018-11-18_11.29.18-client.txt
    AL lib: (EE) alc_cleanup: 1 device not closed

     

    Just fixed all this errors and dependencies now im dealing with this error anyone can help?

  6. On 8/18/2018 at 9:53 PM, Cadiboo said:

    If your trying to render lightning I think you will find this useful.

    https://github.com/Cadiboo/WIPTechAlpha/blob/master/src/main/java/cadiboo/wiptech/client/ClientUtil.java#L634-L746

    (the renderLightning method)

    I copied the rendering for lightning in minecraft and made all the variable names make sense & redid a bit of the code. Feel free to look at or use it

    Wow this make sense. ! It's amazing thanks for the help

  7. 23 minutes ago, Animefan8888 said:

    There are down times on here as well as anywhere else. I don't work on the forums I just know my way around the API somewhat, so I spend some of my down time helping other modders.

    For that igive u a plus rep ❤️

  8. 3 minutes ago, Animefan8888 said:

    Maybe your numbers are too big, try making them smaller. A way to find out the proper numbers would be to use set numbers instead of making it random like you are now.

    Can you give me a guess on what specific parameter it is ? HAHA i tried some of my variables and nothing happened :(

  9. 3 minutes ago, Animefan8888 said:

    Without seeing the code your errors are almost endless.

    oh hahaha okay i forgot xD 

    Spoiler
    
    @Override
    	public void doRender(EntityKirin entity, double x, double y, double z, float yaw, float partialTicks) {
    		super.doRender(entity, x, y, z, yaw, partialTicks);
    		renderElectricField((float)x, (float)y, (float)z, entity);
    	}
    	
    	@Override
    	protected void renderModel(EntityKirin entity, float _1, float _2, float _3, float _4, float _5, float _6) {
    		super.renderModel(entity, _1, _2, _3, _4, _5, _6);
    		
    	}
    	
    	
    	
    		
    protected void renderElectricField(float x, float y, float z, EntityLiving entityliving)
    {
    	GL11.glPushMatrix();
    	GL11.glDisable(3553);
    	GL11.glDisable(2896);
    	Tessellator tessellator = Tessellator.getInstance();
    	VertexBuffer buffer = tessellator.getBuffer();
    	int color = 5592575;
    	GL11.glEnable(3042);
    	GL11.glBlendFunc(770, 1);
    	Random rnd = new Random();
    	rnd.setSeed(entityliving.getEntityId() + entityliving.ticksExisted);
    	int steps = 16;
    	GL11.glLineWidth(3.0F);
    	for (int a = 0; a < 5; a++)
    	{
    		steps = rnd.nextInt(26) + 5;
    		buffer.begin(3, DefaultVertexFormats.POSITION_TEX_NORMAL);
    		// buffer.startDrawing(3);
    		//buffer.
    		buffer.color(0.5F, 0.64F, 1.0F, 0.6F);
    		int startX = rnd.nextInt();
    		int startY = rnd.nextInt();
    		int startZ = rnd.nextInt();
    		for (int i = 0; i <= steps; i++)
    		{
    	        float stepVariation = i / steps;
    	        double dist = entityliving.width;
    	        double boltSize = 80.0D;
    	        double varX = Math.sin((i + startX) / boltSize * 3.141592653589793D * 2.0D) * dist + (rnd.nextDouble() - 0.5D) * 0.5D;
    	        double varZ = Math.cos((i + startZ) / boltSize * 3.141592653589793D * 2.0D) * dist + (rnd.nextDouble() - 0.5D) * 0.5D;
    	        double varY = Math.sin((entityliving.ticksExisted + i + startY) / boltSize * 3.141592653589793D) + rnd.nextDouble() + 1.8D;
    	    	
    	        buffer.pos(x + varX, y + varY, z + varZ).endVertex();;
    	      }
    	      tessellator.draw();
    	    }
    	    GL11.glDisable(3042);
    	    GL11.glEnable(3553);
    	    GL11.glEnable(2896);
    	    GL11.glPopMatrix();
    	   
    	  }

     

     

  10. Im trying to render a lightning effects around Kirin just like in the monster hunter series by using light with a lenght popping in a random.

     

    But i manage to make it work however the lightnings length is endless like in the picture.. Anyone can guess what's my error here?

    2018-08-18_12.38.03.png

  11. Hello,
    I'm Heltrato, the founder of the Monster Hunter Mod in Minecraft. I'm searching for some who are making the textures and models for the mod.

    I also have knowledge in modelling and texturing since im an artist apprentice but I want more details and ideas that you guys can help me.

     

    If you haven't seen the mod before this is our mod thread.

     

    http://www.minecraftforum.net/forums/mapping-and-modding-java-edition/minecraft-mods/2702398-monster-hunter-frontier-craft-1-4-4-works-now-for

     

    Here is a 1.11.2 Spotlight for the mod

     

     

    The mod currently features:

     

    - Animated & well AI monsters

    - 3D Modelled Weapon Class Systems (Hunting Horns with Song buffs, Longsword with Spirit Gauge, Greatsword with power blocking, Hammer with stunning critical, and bow with no arrow requirment and coating ) plus they have elemenal attributes and effects

    - 3D Modelled Armor System (Unique Damage System for the armors, Elemental Resistances, and Armor Skill tree eg. Fencing, Fast Eating etc. )

    - Open world Quest ( Up to 1 billion block volume of quest area created for Players to spend time explore a tremendous world, plus weather effects, and render alters )

    - Unique Crafting System which is similar to the Monster Hunter Series itself

     

    So if you are interested please just fill up the form below and u can comment or private message me with the form:

     

    Age:
    Task: <Texturer><Modeller>
    Language:
    How many hours can you work on projects per day/week?:

    Timezone:

    Do you play Monster Hunter series at the moment? (If yes state the game console ):

    How are well knowledge are you in Monster Hunter:
    What at least do you expect to add in the Mod: (You can cite as many as you can )

    Cite your social usernames : (Discord / Skype etc.)

  12. 12 hours ago, oldcheese said:

    The Iterable is basically just a list with one item from each of your armor slots, so yes. If you want to check if the player has every single part equipped then you'd want to check every armorslot to see if your armor was there. 

     

    you could do this with a for loop. 

    Well i just want to have a check whether a player is wearing any equipment with the instanceof my custom armor, no need to check if the player wears it all. I just want to make the armor equipments damage calculation same in my arithmetic :) 

  13. 34 minutes ago, oldcheese said:

     

    Re-check your If statements. If the comment doesn't fire then your code doesn't reach the if statements. I also believe you're missing an bracket. I'm not sure if it'd make a difference here since Java should decide it belongs to the first applicable clause to which it could belong.  

     

    I do believe you might not get past the ent.getArmorInventoryList() instanceof ArmorBase), since that'll return an Iterable of the Itemstack.  Again, I'm not 100% sure. But you could start to check by inserting comments to see where exactly you're not getting further.

     

     

    So i need to check per equipment slots?

  14. Hello im having an issue with my event, i want it to make that whenever my custom entity base class attacks my own custom armor base class it deals the damage based on the calculations shown in the code. but what happens is i think it does not work and the system print wont show.. i have registered the event btw.

     

    @SubscribeEvent
        public static void onDamageDealtToArmor(LivingHurtEvent event) {
            ArmorBase armor = ArmorBase.instance;
            DamageSource damageSrc = event.getSource();
            double damage = event.getAmount();
            Entity ent = event.getEntity();
            if (ent != null && ent instanceof EntityPlayer) {
                if(damageSrc.getSourceOfDamage() instanceof EntityMHFCBase)
                if (ent.getArmorInventoryList() != null && ent.getArmorInventoryList() instanceof ArmorBase) {
                    /** Refines the damage analyzer based from Monster Hunter Series but in a special case which
                     *  the default health is set to 20 for players. **/
                        float newDamage = (float) Math.abs(((damage * 80) / (armor.getInitialDefenseValue() + 80)) * 0.20);
                        event.setAmount(newDamage);
                        //event.getEntity().attackEntityFrom(damageSrc, newDamage);
                        System.out.println("Current AI Damage = " + damage + " Current New Damage = " + newDamage);
                        }
                    }
                }    

     

  15. Hello i've been confused regarding the ArmorProperties parameters specially those 2 arent much of being documentated.

     

    So ArmorProperties has these priority, ratio and absorbmax.

     

    Priority is pretty much understandable.

    But Ratio and Absorb Max is kinda confusing.

     

    Does if i increased my ratio does that mean the absorb will be weaker or will it make it stronger to absorb.?

  16. 17 hours ago, ArmamentHaki said:

    Changing the health system is not really complicated as most times the LivingHurtEvent is called. You could simply make a Capability that stores your entities health and substract the given amount. Then you set the amount to something near 0 so that the actual health doesnt matter. But I think this is to complicated for this simple thing. 

    Or as Major Tuvok said subscribe to LivingHurtEvent, test if your conditions are given and then multiply the amount by something smaller than 1.

    Solved, i did have 3 multiple instances health bar for monsters, but since my mod have lots of features, it still making it more derpy or unbalance looking. So what i did is i just bypassed it with Reflection API.  Solve btw.

  17. 1 hour ago, Major Tuvok said:

    You could (instead of attempting to hack max health) try to reduce damage taken by this entity, so that it simulates having more health than it actually has... 

    Simplest (but definitly not a good way to do that (I think theres probably a callback for that, because I haven't worked with any LivingEntity yet I have no clue how the callback is called) way would be to intercept LivingAttackEvents and reduce any damage done to your Entity. You would have to evaluate that depending on how much you want to scale it up... 

    as a temporary resolve i might do that, but il try to hack still, maybe Reflection API?

×
×
  • Create New...

Important Information

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