Heltrato
-
Posts
261 -
Joined
-
Last visited
Posts posted by Heltrato
-
-
Done this before .
Method 1 .
Look at EntityAILeapAtTarget you can make your own AI and based it to it .
instead of adding motionY how about motionX only .
make a boolean that must be within range to execute.
Method 2. (My method)
Use PathEntitty + AAPool.expand thingy
-
This is how i do it i set a command to tigrex in his Entity then do the animation in the model
public void animate(EntityTigrex tigrex, float f, float f1, float f2, float f3,float f4, float f5){ if(tigrex.getNextAttack == 1 ){ animateBite(); else{ dobreatheAnim(); doWalkAnim[1]; doWalkAnim[2]; doWalkAnim[3]; doWalkAnim[4]; setRotationYawPitch(tigrex.rotationYaw); } }
-
Hello everyone i just first encountered this error it happens since my laptop is not properly shutdown (LOW BAT <- )
Then it become like this
nvm fixed
-
Thanks for the reply mate . Dont mind about the potion event bug its solved btw
-
Was just wondering if might be true. since i check potion.class there is no digspeed aside from registering it.
Also . making a potion event when creating a custom potion is buggy i tried it .
you will see the difference between when you right your method on performEffect with your own event in using the potion.
-
Bump update i tried looking on Entity and yeah i hope this might work .
-
Hello guys im trying to make an Event here that once this entity is in potionActive it will be go stuck to the ground where its standing. But i tried every methods in EntityLiving Base such as setting noClip = true , entityxCoor , entitymotionY , entitysetPosition but what it doesnt work neither. It works if its like this entity.motionY = 2D which makes them go straight up. However when i set them into -2 like that nothing happens. Any help please guys ? i need to make this work
-
I tried to check but still nothing happens on the event when i rightclick my item nothing happens
@SubscribeEvent public void onEntityUpdate(LivingUpdateEvent event){ if(event.entityLiving.isPotionActive(MHFCRegPotion.mhfcpotionpitfall)){ int y = MathHelper.floor_double(event.entityLiving.posY); if(!event.entityLiving.worldObj.isRemote) event.entityLiving.chunkCoordY = y - 4; } if(event.entityLiving.getActivePotionEffect(MHFCRegPotion.mhfcpotionpitfall).getDuration() == 0){ event.entityLiving.removePotionEffect(MHFCRegPotion.mhfcpotionpitfall.id); return; } }
-
bump ? please help
-
I fixed the crash mate its ok now but yeah pls answer my question how can i make the entity render beyond the ground if the potion is active?
-
I got it working now i tweak some of how to expand its array
but how can i make an entity to be motionY under like stuck on ground underneath. Any help please?
HERES MY POTIONEVENTHANDLER ANYWAYS
package mhfc.net.common.eventhandler.potion; import cpw.mods.fml.common.eventhandler.SubscribeEvent; import mhfc.net.common.core.registry.MHFCRegPotion; import net.minecraft.util.DamageSource; import net.minecraftforge.event.entity.living.LivingEvent.LivingUpdateEvent; public class PotionPitfallEventHandler { @SubscribeEvent public void onEntityUpdate(LivingUpdateEvent event){ if(event.entityLiving.isPotionActive(MHFCRegPotion.mhfcpotionpitfall)){ event.entityLiving.noClip = true; event.entityLiving.motionY = -1D; } if(event.entityLiving.getActivePotionEffect(MHFCRegPotion.mhfcpotionpitfall).getDuration() == 0){ event.entityLiving.removePotionEffect(MHFCRegPotion.mhfcpotionpitfall.id); return; } } }
-
I need a help on my my potion effect the crash points out to this line
setPotionEffect(MHFCRegPotion.mhfcpotionpitfall.id, 15, 4, 100);
Heres my console and my codes
[17:52:57] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker [17:52:57] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker [17:52:57] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker [17:52:57] [main/INFO] [FML]: Forge Mod Loader version 7.2.156.1060 for Minecraft 1.7.2 loading [17:52:57] [main/INFO] [FML]: Java is Java HotSpot(TM) Client VM, version 1.7.0_60, running on Windows 7:x86:6.1, installed at C:\Program Files\Java\jre7 [17:52:57] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation [17:52:57] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [17:52:57] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker [17:52:57] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [17:52:57] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [17:52:57] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper [17:52:57] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work! [17:52:58] [main/ERROR] [FML]: The minecraft jar file:/C:/Users/TOSHIBA/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.2-10.12.1.1060/forgeSrc-1.7.2-10.12.1.1060.jar!/net/minecraft/client/ClientBrandRetriever.class appears to be corrupt! There has been CRITICAL TAMPERING WITH MINECRAFT, it is highly unlikely minecraft will work! STOP NOW, get a clean copy and try again! [17:52:58] [main/ERROR] [FML]: FML has been ordered to ignore the invalid or missing minecraft certificate. This is very likely to cause a problem! [17:52:58] [main/ERROR] [FML]: Technical information: ClientBrandRetriever was at jar:file:/C:/Users/TOSHIBA/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.2-10.12.1.1060/forgeSrc-1.7.2-10.12.1.1060.jar!/net/minecraft/client/ClientBrandRetriever.class, there were 0 certificates for it [17:52:58] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing [17:52:58] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper [17:52:58] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker [17:52:59] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main} [17:53:00] [main/INFO]: Setting user: XxHeltratoxX [17:53:02] [Client thread/INFO]: LWJGL Version: 2.9.0 [17:53:03] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization [17:53:03] [Client thread/INFO] [FML]: MinecraftForge v10.12.1.1060 Initialized [17:53:03] [Client thread/INFO] [FML]: Replaced 141 ore recipies [17:53:03] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization [17:53:03] [Client thread/INFO] [FML]: Searching C:\Users\TOSHIBA\Desktop\MHFC 1.7.2\eclipse\mods for mods [17:53:04] [Client thread/ERROR] [FML]: FML has detected a mod that is using a package name based on 'net.minecraft.src' : net.minecraft.src.FMLRenderAccessLibrary. This is generally a severe programming error. There should be no mod code in the minecraft namespace. MOVE YOUR MOD! If you're in eclipse, select your source code and 'refactor' it into a new package. Go on. DO IT NOW! [17:53:07] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load [17:53:07] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Monster Hunter Frontier Craft, Dragon Dance v1.0.zip [17:53:07] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0 Starting up SoundSystem... Initializing LWJGL OpenAL (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) OpenAL initialized. [17:53:09] [sound Library Loader/INFO]: Sound engine started [17:53:16] [Client thread/INFO]: Created: 2048x1024 textures/blocks-atlas [17:53:17] [Client thread/INFO]: Created: 1024x1024 textures/items-atlas [MHFC] Block is now initialize [17:53:17] [Client thread/ERROR] [FML]: Fatal errors were detected during the transition from INITIALIZATION to POSTINITIALIZATION. Loading cannot continue [17:53:17] [Client thread/ERROR] [FML]: mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized FML{7.2.156.1060} [Forge Mod Loader] (forgeSrc-1.7.2-10.12.1.1060.jar) Unloaded->Constructed->Pre-initialized->Initialized Forge{10.12.1.1060} [Minecraft Forge] (forgeSrc-1.7.2-10.12.1.1060.jar) Unloaded->Constructed->Pre-initialized->Initialized mhfc{1.7.2} [Monster Hunter Frontier Craft] (bin) Unloaded->Constructed->Pre-initialized->Errored [17:53:17] [Client thread/ERROR] [FML]: The following problems were captured during this phase [17:53:17] [Client thread/ERROR] [FML]: Caught exception from mhfc java.lang.NullPointerException at mhfc.net.client.item.food.ItemKirinBuff.<init>(ItemKirinBuff.java:19) ~[itemKirinBuff.class:?] at mhfc.net.common.registry.helper.MHFCRegItem.init(MHFCRegItem.java:134) ~[MHFCRegItem.class:?] at mhfc.net.common.registry.MHFCReg.addItems(MHFCReg.java:43) ~[MHFCReg.class:?] at mhfc.net.common.registry.MHFCReg.init(MHFCReg.java:20) ~[MHFCReg.class:?] at mhfc.net.client.MHFCClient.regStuff(MHFCClient.java:21) ~[MHFCClient.class:?] at mhfc.net.MHFCMain.load(MHFCMain.java:83) ~[MHFCMain.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_60] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_60] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_60] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_60] at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:513) ~[FMLModContainer.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_60] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_60] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_60] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_60] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) ~[guava-15.0.jar:?] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:47) ~[guava-15.0.jar:?] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) ~[guava-15.0.jar:?] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) ~[guava-15.0.jar:?] at com.google.common.eventbus.EventBus.post(EventBus.java:267) ~[guava-15.0.jar:?] at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:209) ~[LoadController.class:?] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:188) ~[LoadController.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_60] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_60] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_60] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_60] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) ~[guava-15.0.jar:?] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:47) ~[guava-15.0.jar:?] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) ~[guava-15.0.jar:?] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) ~[guava-15.0.jar:?] at com.google.common.eventbus.EventBus.post(EventBus.java:267) ~[guava-15.0.jar:?] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119) [LoadController.class:?] at cpw.mods.fml.common.Loader.initializeMods(Loader.java:677) [Loader.class:?] at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:268) [FMLClientHandler.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:583) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:890) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_60] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_60] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_60] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_60] at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?] ---- Minecraft Crash Report ---- // Would you like a cupcake? Time: 6/13/14 5:53 PM Description: Initializing game java.lang.NullPointerException: Initializing game at mhfc.net.client.item.food.ItemKirinBuff.<init>(ItemKirinBuff.java:19) at mhfc.net.common.registry.helper.MHFCRegItem.init(MHFCRegItem.java:134) at mhfc.net.common.registry.MHFCReg.addItems(MHFCReg.java:43) at mhfc.net.common.registry.MHFCReg.init(MHFCReg.java:20) at mhfc.net.client.MHFCClient.regStuff(MHFCClient.java:21) at mhfc.net.MHFCMain.load(MHFCMain.java:83) 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 cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:513) 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 com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) at com.google.common.eventbus.EventBus.post(EventBus.java:267) at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:209) at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:188) 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 com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) at com.google.common.eventbus.EventBus.post(EventBus.java:267) at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119) at cpw.mods.fml.common.Loader.initializeMods(Loader.java:677) at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:268) at net.minecraft.client.Minecraft.startGame(Minecraft.java:583) at net.minecraft.client.Minecraft.run(Minecraft.java:890) at net.minecraft.client.main.Main.main(Main.java:112) 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:134) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Stacktrace: at mhfc.net.client.item.food.ItemKirinBuff.<init>(ItemKirinBuff.java:19) at mhfc.net.common.registry.helper.MHFCRegItem.init(MHFCRegItem.java:134) at mhfc.net.common.registry.MHFCReg.addItems(MHFCReg.java:43) at mhfc.net.common.registry.MHFCReg.init(MHFCReg.java:20) at mhfc.net.client.MHFCClient.regStuff(MHFCClient.java:21) at mhfc.net.MHFCMain.load(MHFCMain.java:83) 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 cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:513) 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 com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) at com.google.common.eventbus.EventBus.post(EventBus.java:267) at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:209) at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:188) 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 com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) at com.google.common.eventbus.EventBus.post(EventBus.java:267) at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119) at cpw.mods.fml.common.Loader.initializeMods(Loader.java:677) at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:268) at net.minecraft.client.Minecraft.startGame(Minecraft.java:583) -- Initialization -- Details: Stacktrace: at net.minecraft.client.Minecraft.run(Minecraft.java:890) at net.minecraft.client.main.Main.main(Main.java:112) 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:134) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) -- System Details -- Details: Minecraft Version: 1.7.2 Operating System: Windows 7 (x86) version 6.1 Java Version: 1.7.0_60, Oracle Corporation Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation Memory: 930702744 bytes (887 MB) / 1060372480 bytes (1011 MB) up to 1060372480 bytes (1011 MB) JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: MCP v9.01-pre FML v7.2.156.1060 Minecraft Forge 10.12.1.1060 4 mods loaded, 4 mods active mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized FML{7.2.156.1060} [Forge Mod Loader] (forgeSrc-1.7.2-10.12.1.1060.jar) Unloaded->Constructed->Pre-initialized->Initialized Forge{10.12.1.1060} [Minecraft Forge] (forgeSrc-1.7.2-10.12.1.1060.jar) Unloaded->Constructed->Pre-initialized->Initialized mhfc{1.7.2} [Monster Hunter Frontier Craft] (bin) Unloaded->Constructed->Pre-initialized->Errored Launched Version: 1.6 LWJGL: 2.9.0 OpenGL: Intel 965/963 Graphics Media Accelerator GL version 2.0.0 - Build 8.14.10.1930, Intel Is Modded: Definitely; Client brand changed to 'fml,forge' Type: Client (map_client.txt) Resource Packs: [Dragon Dance v1.0.zip] Current Language: English (US) Profiler Position: N/A (disabled) Vec3 Pool Size: ~~ERROR~~ NullPointerException: null Anisotropic Filtering: Off (1) #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\TOSHIBA\Desktop\MHFC 1.7.2\eclipse\.\crash-reports\crash-2014-06-13_17.53.17-client.txt AL lib: (EE) alc_cleanup: 1 device not closed [code][/spoiler] Potion Hook [code] package mhfc.net.common.hooks; import cpw.mods.fml.common.eventhandler.SubscribeEvent; import mhfc.net.common.registry.helper.MHFCRegPotion; import net.minecraft.util.DamageSource; import net.minecraftforge.event.entity.living.LivingEvent.LivingUpdateEvent; public class PotionHook { @SubscribeEvent public void onEntityUpdate(LivingUpdateEvent event){ if(event.entityLiving.isPotionActive(MHFCRegPotion.mhfcpotionpitfall)){ event.entityLiving.attackEntityFrom(DamageSource.generic, 10); } if(event.entityLiving.getActivePotionEffect(MHFCRegPotion.mhfcpotionpitfall).getDuration() == 0){ event.entityLiving.removePotionEffect(MHFCRegPotion.mhfcpotionpitfall.id); } } }
package mhfc.net.common.registry.helper; import mhfc.net.client.potion.PotionPitfall; import net.minecraft.potion.Potion; public class MHFCRegPotion { public static Potion mhfcpotionpitfall; public static void regPotion(){ mhfcpotionpitfall = new PotionPitfall(); } }
package mhfc.net.client.potion; import net.minecraft.potion.Potion; public class PotionPitfall extends Potion { public PotionPitfall() { super(40, false, 581833); setPotionName("potionpitfall"); setIconIndex(0, 0); } public Potion setIconIndex(int par1, int par2) { super.setIconIndex(par1, par2); return this; } }
-
Hello guys i want to learn about how structures are made in minecraft. yeah before i begin i need some questions first so they can be a handy
guide for me .
1.) Is it true that theres a tool that can convert to java for structure planning . <- IM NOT A MAPMAKER.
2.)Does structure generating is different with adding structure components for villages?.
Extra ad.
3.)Rendering particles using tesselator any guide?
Well thats all for now
-
I told u man if u know java well u can use that but that doesnt mean u only wrote that code yes i do that but i also got some other methods like what the upper guy says. It needs a meaning to minecraft in short
-
if u know java well this is the only help i can help u
ex. metadata
public class ItemX extends Item public int m; public ItemX(int metaData) super(); m = metaData; setUnlocalizedName("texturename" + m);
-
I did that however it still nothing happens .
If i move on the other side it looks normal
but on the otherside
-
I also got a similar problem mine is a techne model but i think it must be just the same the lighting issues i dont know why in superflat it doesnt cause this buggy thing but in the real overworld it becomes like this
any help?
-
At some point it now works fine but still some when my steve goes in some short angles it does the dark lighting again
-
Hello Guys i found a glitchy thing over my custom render block .
in super flat the lighting is fine however when i got to the real overworld this strange thingy happens.
When i move on some sides the lightings gone like this.
I followed the tutorial on how to rendering the model block but the lighting fix dint work
thou the getBlockBrightness was i think replaced i tried to change it into getMixedBrightness
anyways heres my render block code
package mhfc.net.client.render.block; import org.lwjgl.opengl.GL11; import mhfc.net.client.model.block.ModelArmorStandBase; import net.minecraft.block.Block; import net.minecraft.client.renderer.OpenGlHelper; import net.minecraft.client.renderer.Tessellator; import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer; import net.minecraft.init.Blocks; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.ResourceLocation; import net.minecraft.world.World; public class RenderArmorStandBase extends TileEntitySpecialRenderer { private ModelArmorStandBase model; private static final ResourceLocation texture = new ResourceLocation("mhfc:textures/tile/armorstandbase.png"); public RenderArmorStandBase() { model = new ModelArmorStandBase(); } public void renderTileEntityAt(TileEntity tileentity, double x, double y,double z, float f) { GL11.glPushMatrix(); GL11.glTranslatef((float)x + 0.5F, (float)y - -1.5F, (float)z + 0.5F); GL11.glRotatef(180F, 0F, 0F, 1F); bindTexture(texture); GL11.glPushMatrix(); model.renderModel(0.0625F); GL11.glPopMatrix(); GL11.glPopMatrix(); } private void adjustLightFixture(World world, int i, int j, int k, Block block) { Tessellator tess = Tessellator.instance; float brightness = block.getMixedBrightnessForBlock(world, i, j, k); int skyLight = world.getLightBrightnessForSkyBlocks(i, j, k, 0); int modulousModifier = skyLight % 65536; int divModifier = skyLight / 65536; tess.setColorOpaque_F(brightness, brightness, brightness); OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, (float) modulousModifier, divModifier); } }
-
Nevermind i think i fixed it by adding this to the method isOpaqueCube
@Override //<---------- GGWP public boolean isOpaqueCube(){ return false; }
-
Thanks bro it works fine now lastly how do i fast the lighting its all dark side and front
-
Hello Everyone i found a glitchy part on my custom tile block which i cant find out whats the problem with my code.
Apparently whenever i placed my block beside any vanilla blocks or any block aside from itself the block texture is become error or invinsible should i say.
Here's an example
Any help? I setup my render correctly my block bounds fine.
RenderBlock
package mhfc.net.client.render.block; import org.lwjgl.opengl.GL11; import mhfc.net.client.model.block.ModelArmorStandBase; import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.ResourceLocation; public class RenderArmorStandBase extends TileEntitySpecialRenderer { private ModelArmorStandBase model; private static final ResourceLocation texture = new ResourceLocation("mhfc:textures/tile/armorstandbase.png"); public RenderArmorStandBase() { model = new ModelArmorStandBase(); } public void renderTileEntityAt(TileEntity tileentity, double x, double y,double z, float f) { GL11.glPushMatrix(); GL11.glTranslatef((float)x + 0.5F, (float)y - -1.5F, (float)z + 0.5F); GL11.glRotatef(180F, 0F, 0F, 1F); bindTexture(texture); GL11.glPushMatrix(); model.renderModel(0.0625F); GL11.glPopMatrix(); GL11.glPopMatrix(); } }
BlockCode
package mhfc.net.client.block.container; import mhfc.net.MHFCMain; import mhfc.net.client.tile.TileArmorStandBase; import net.minecraft.block.BlockContainer; import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.tileentity.TileEntity; import net.minecraft.world.World; public class BlockArmorStandBase extends BlockContainer { public BlockArmorStandBase() { super(Material.iron); setBlockBounds(1F/16F* -0.1f, 0, 1F/16F*-0.1f, 1F-1F/16F*-0.1f, 1F-1F/16F*12F, 1F-1F/16F*-0.1f); setBlockName("armorstandblock"); setBlockTextureName("mhfc:armorstandblock"); setHardness(1.3F); setCreativeTab(MHFCMain.mhfctabs); } public TileEntity createNewTileEntity(World var1, int var2) { return new TileArmorStandBase(); } public int getRenderType(){ return -1; } public void registerIcons(IIconRegister par1IconRegister){ blockIcon = par1IconRegister.registerIcon("mhfc:armorstandblock"); } }
-
hey i just found a mods folder in eclipse folder inside my modding folder however it just shows crash
heres the console in Eclipse
[11:10:49] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker [11:10:49] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker [11:10:49] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker [11:10:49] [main/INFO] [FML]: Forge Mod Loader version 7.2.156.1060 for Minecraft 1.7.2 loading [11:10:49] [main/INFO] [FML]: Java is Java HotSpot(TM) Client VM, version 1.7.0_51, running on Windows 7:x86:6.1, installed at C:\Program Files\Java\jre7 [11:10:49] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation [11:10:49] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [11:10:49] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker [11:10:49] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [11:10:49] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [11:10:49] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper [11:10:49] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work! [11:10:50] [main/ERROR] [FML]: The minecraft jar file:/C:/Users/TOSHIBA/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.2-10.12.1.1060/forgeSrc-1.7.2-10.12.1.1060.jar!/net/minecraft/client/ClientBrandRetriever.class appears to be corrupt! There has been CRITICAL TAMPERING WITH MINECRAFT, it is highly unlikely minecraft will work! STOP NOW, get a clean copy and try again! [11:10:50] [main/ERROR] [FML]: FML has been ordered to ignore the invalid or missing minecraft certificate. This is very likely to cause a problem! [11:10:50] [main/ERROR] [FML]: Technical information: ClientBrandRetriever was at jar:file:/C:/Users/TOSHIBA/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.2-10.12.1.1060/forgeSrc-1.7.2-10.12.1.1060.jar!/net/minecraft/client/ClientBrandRetriever.class, there were 0 certificates for it [11:10:50] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing [11:10:50] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper [11:10:50] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker [11:10:51] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main} [11:10:54] [main/INFO]: Setting user: Player691 [11:10:57] [Client thread/INFO]: LWJGL Version: 2.9.0 [11:10:58] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization [11:10:58] [Client thread/INFO] [FML]: MinecraftForge v10.12.1.1060 Initialized [11:10:58] [Client thread/INFO] [FML]: Replaced 141 ore recipies [11:10:58] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization [11:10:59] [Client thread/INFO] [FML]: Searching C:\Users\TOSHIBA\Desktop\MHFC 1.7.2\eclipse\mods for mods [11:11:00] [Client thread/ERROR] [FML]: FML has detected a mod that is using a package name based on 'net.minecraft.src' : net.minecraft.src.FMLRenderAccessLibrary. This is generally a severe programming error. There should be no mod code in the minecraft namespace. MOVE YOUR MOD! If you're in eclipse, select your source code and 'refactor' it into a new package. Go on. DO IT NOW! [11:11:04] [Client thread/WARN] [DamageIndicatorsMod]: Mod DamageIndicatorsMod is missing the required element 'version' and a version.properties file could not be found. Falling back to metadata version 3.1.1 [11:11:04] [Client thread/INFO] [FML]: Forge Mod Loader has identified 5 mods to load [11:11:04] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Monster Hunter Frontier Craft, FMLFileResourcePack:Damage Indicators [11:11:05] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0 Starting up SoundSystem... Initializing LWJGL OpenAL (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [11:11:08] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas [11:11:09] [Client thread/INFO]: Created: 256x256 textures/items-atlas OpenAL initialized. [MHCF] Block is now initialize [11:11:09] [sound Library Loader/INFO]: Sound engine started [MHFC] Items is now initialize [MHFC] Rendering is now initialize [MHFC] Recipes is now initialize [MHFC] Smelting is now initialize [MHFC] Tile Entity is now initialize [11:11:09] [Client thread/ERROR] [FML]: The entity ID 309 for mod mhfc is not an unsigned byte and may not work [11:11:09] [Client thread/ERROR] [FML]: The mod mhfc has attempted to register an entity ID 309 which is already reserved. This could cause severe problems [MHFC] Rendering is now initialize [11:11:09] [Client thread/ERROR] [FML]: Fatal errors were detected during the transition from INITIALIZATION to POSTINITIALIZATION. Loading cannot continue [11:11:09] [Client thread/ERROR] [FML]: mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized FML{7.2.156.1060} [Forge Mod Loader] (forgeSrc-1.7.2-10.12.1.1060.jar) Unloaded->Constructed->Pre-initialized->Initialized Forge{10.12.1.1060} [Minecraft Forge] (forgeSrc-1.7.2-10.12.1.1060.jar) Unloaded->Constructed->Pre-initialized->Initialized mhfc{0.9.164} [Monster Hunter Frontier Craft] (bin) Unloaded->Constructed->Pre-initialized->Initialized DamageIndicatorsMod{3.1.1} [Damage Indicators] ([1.7.2]DamageIndicatorsMod-3.1.1.jar) Unloaded->Constructed->Pre-initialized->Errored [11:11:09] [Client thread/ERROR] [FML]: The following problems were captured during this phase [11:11:09] [Client thread/ERROR] [FML]: Caught exception from DamageIndicatorsMod java.lang.NoSuchMethodError: net.minecraft.client.Minecraft.func_71410_x()Lnet/minecraft/client/Minecraft; at DamageIndicatorsMod.core.Tools.<init>(Tools.java:33) ~[Tools.class:?] at DamageIndicatorsMod.core.Tools.getInstance(Tools.java:39) ~[Tools.class:?] at DamageIndicatorsMod.client.DIClientProxy.register(DIClientProxy.java:48) ~[DIClientProxy.class:?] at DamageIndicatorsMod.DIMod.load(DIMod.java:97) ~[DIMod.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_51] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_51] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_51] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_51] at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:513) ~[FMLModContainer.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_51] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_51] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_51] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_51] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) ~[guava-15.0.jar:?] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:47) ~[guava-15.0.jar:?] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) ~[guava-15.0.jar:?] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) ~[guava-15.0.jar:?] at com.google.common.eventbus.EventBus.post(EventBus.java:267) ~[guava-15.0.jar:?] at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:209) ~[LoadController.class:?] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:188) ~[LoadController.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_51] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_51] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_51] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_51] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) ~[guava-15.0.jar:?] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:47) ~[guava-15.0.jar:?] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) ~[guava-15.0.jar:?] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) ~[guava-15.0.jar:?] at com.google.common.eventbus.EventBus.post(EventBus.java:267) ~[guava-15.0.jar:?] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119) [LoadController.class:?] at cpw.mods.fml.common.Loader.initializeMods(Loader.java:677) [Loader.class:?] at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:268) [FMLClientHandler.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:583) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:890) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_51] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_51] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_51] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_51] at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?] ---- Minecraft Crash Report ---- // Uh... Did I do that? Time: 6/4/14 11:11 AM Description: There was a severe problem during mod loading that has caused the game to fail cpw.mods.fml.common.LoaderException: java.lang.NoSuchMethodError: net.minecraft.client.Minecraft.func_71410_x()Lnet/minecraft/client/Minecraft; at cpw.mods.fml.common.LoadController.transition(LoadController.java:163) at cpw.mods.fml.common.Loader.initializeMods(Loader.java:678) at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:268) at net.minecraft.client.Minecraft.startGame(Minecraft.java:583) at net.minecraft.client.Minecraft.run(Minecraft.java:890) at net.minecraft.client.main.Main.main(Main.java:112) 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:134) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) Caused by: java.lang.NoSuchMethodError: net.minecraft.client.Minecraft.func_71410_x()Lnet/minecraft/client/Minecraft; at DamageIndicatorsMod.core.Tools.<init>(Tools.java:33) at DamageIndicatorsMod.core.Tools.getInstance(Tools.java:39) at DamageIndicatorsMod.client.DIClientProxy.register(DIClientProxy.java:48) at DamageIndicatorsMod.DIMod.load(DIMod.java:97) 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 cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:513) 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 com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) at com.google.common.eventbus.EventBus.post(EventBus.java:267) at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:209) at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:188) 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 com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) at com.google.common.eventbus.EventBus.post(EventBus.java:267) at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119) at cpw.mods.fml.common.Loader.initializeMods(Loader.java:677) ... 10 more A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- System Details -- Details: Minecraft Version: 1.7.2 Operating System: Windows 7 (x86) version 6.1 Java Version: 1.7.0_51, Oracle Corporation Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation Memory: 948027704 bytes (904 MB) / 1060372480 bytes (1011 MB) up to 1060372480 bytes (1011 MB) JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: MCP v9.01-pre FML v7.2.156.1060 Minecraft Forge 10.12.1.1060 5 mods loaded, 5 mods active mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized FML{7.2.156.1060} [Forge Mod Loader] (forgeSrc-1.7.2-10.12.1.1060.jar) Unloaded->Constructed->Pre-initialized->Initialized Forge{10.12.1.1060} [Minecraft Forge] (forgeSrc-1.7.2-10.12.1.1060.jar) Unloaded->Constructed->Pre-initialized->Initialized mhfc{0.9.164} [Monster Hunter Frontier Craft] (bin) Unloaded->Constructed->Pre-initialized->Initialized DamageIndicatorsMod{3.1.1} [Damage Indicators] ([1.7.2]DamageIndicatorsMod-3.1.1.jar) Unloaded->Constructed->Pre-initialized->Errored #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\TOSHIBA\Desktop\MHFC 1.7.2\eclipse\.\crash-reports\crash-2014-06-04_11.11.09-client.txt AL lib: (EE) alc_cleanup: 1 device not closed
-
Yeah how do i put mods in eclipse so i can use it for my test damage specifically damage indicator
Thanks
[1.7.2] Animation Help
in Modder Support
Posted
There are other ways aside that look at EntityGolem , EntitySheep and EntityChicken