Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Dawars

Members
  • Posts

    33
  • Joined

  • Last visited

Everything posted by Dawars

  1. Ooookay, so I have overriden the following deprecated method and now the lighting is working as expected: @Override public boolean isOpaqueCube(IBlockState state) { return false; } How can I find a potential non-deprecated method for this? (and isFullCube). Also I found the isVisuallyOpaque method, does it do anything?
  2. I'm the co-developer of this mod and we tried it on 3 different versions (1.12, 1.10.2.2016, 1.10.2.recommended) but the items are still dark, we followed the video as close as we could with no luck. Here is the code, it would be nice if someone could try it out/take a look: https://github.com/Dawars/CraftingPillars
  3. You don't have to call the render function on the children since they will be rendered automatically.
  4. Hi, I'd like to have an events which gets call every time a player enchants something. It'd be like the ItemCraftedEvent. I'm planning to turn enchanted silver ingots into Mythril ingot as soon as it gets enchanted. I'm sure it would be useful for other things too... Thanks, Dawars
  5. I also need it but found an other way (craft them to each other)
  6. Time based animation and it won't be used in that huge quantity. What's TESR? And I'll try the code I have in mind after this conversation in 2 hours.
  7. I thougt that I make a blockrenderer because that's where I can disable lighting I think but then I think it won't display the breaking textures. I have like 10 textures in a file and the block changes the current one constatnly and if I make a new renderer I don't know how to change them regularly
  8. Okay, I think I've got it and what about animation? How can I render the breaking texture on the top?
  9. But where because I don't want to the whole block side only some pixels?
  10. Hello, I'm trying to make a block which has parts in it which is not affected by lighting like in Thaumcraft and XyCraft so it looks glowing in the dark but doesn't emmit light. Do you have idea how to do it?
  11. I don't see how it solved the problem Can you help me?
  12. Ok, I solved it. It wasn't that easy though... This helped a lot: http://www.minecraftforge.net/forum/index.php?topic=3038.0
  13. I changed my code a little bit and now it gives this error: Error in class 'LibraryLWJGLOpenAL' 2013-06-08 11:22:28 [iNFO] [sTDOUT] Unable to open file 'flute/track.ogg' in method 'loadSound' 2013-06-08 11:22:28 [iNFO] [sTDOUT] Error in class 'LibraryLWJGLOpenAL' 2013-06-08 11:22:28 [iNFO] [sTDOUT] Source 'sound_2' was not created because an error occurred while loading flute/track.ogg 2013-06-08 11:22:28 [iNFO] [sTDOUT] Error in class 'LibraryLWJGLOpenAL' 2013-06-08 11:22:28 [iNFO] [sTDOUT] Source 'sound_2' not found in method 'play' I relocated the file to jars/bin/item/flute/track.ogg The modified code: Item: world.playSoundEffect((double)x + 0.5D, (double)y + 0.5D, (double)z + 0.5D, "flute.track", 1.0F, world.rand.nextFloat() * 0.1F + 0.9F); SoundHandler: event.manager.soundPoolSounds.addSound("flute/track.ogg", Main.class.getResource("/item/flute/track.ogg")); I hope this message helps
  14. Try this: public int idDropped(int par1, Random random, int par3) { int k = random.nextInt(6); if (k == 0) { return Block.gem.blockID; //the id of the 1st gem } if (k == 1) { return yr.m.bQ; //the id of the 2nd etc. } if (k == 2) { return yr.m.bQ; } if (k == 3) { return yr.m.bQ; } if (k == 4) { return pb.H.bO; } if (k == 5) { return 0; // nothing } return 0; }
  15. I used the same code to play vanilla registered music and it works but when I try to play my own music it doesn't give an error message but no sound
  16. Hi, I followed this tutorial but I can't hear any sound http://www.minecraftforge.net/wiki/Sounds_For_Forge_1.3.2 Please help me find out what's wrong! My code: Item: package dimension; import net.minecraft.block.Block; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.util.MathHelper; import net.minecraft.world.World; public class ItemPortalPlacer extends Item { public ItemPortalPlacer(int par1) { super(par1); setCreativeTab(CreativeTabs.tabTools); } public boolean onItemUse(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, World world, int x, int y, int z, int par7, float par8, float par9, float par10) { world.playSoundEffect((double)x + 0.5D, (double)y + 0.5D, (double)z + 0.5D, "sound.FluteTrack", 1.0F, world.rand.nextFloat() * 0.1F + 0.9F); return true; } } Sound handler: package dimension; import net.minecraftforge.client.event.sound.SoundLoadEvent; import net.minecraftforge.event.ForgeSubscribe; public class YourMod_EventSounds { @ForgeSubscribe public void onSound(SoundLoadEvent event) { try { event.manager.soundPoolSounds.addSound("/sound/FluteTrack.ogg", Main.class.getResource("/sound/FluteTrack.ogg")); System.out.println("Managed to register one or more sounds."); } catch (Exception e) { System.err.println("Failed to register one or more sounds."); } } } Main mod file: @PreInit public void preInit(FMLPreInitializationEvent event){ MinecraftForge.EVENT_BUS.register(new YourMod_EventSounds()); } The sound file is located inside mcp in jars\bin\sound Here is the sound file: http://www.mediafire.com/listen/fp2q40tewvrbpre/FluteTrack.ogg
  17. Hi, I have wav files with 44100Hz with sample size 16 I think and minecraft can't play it. What bitrate and sample size do I need to use? Thanks, Dawars
  18. Thank you for this answer it's really useful but I can't get the player's dimension. The Minecraft() says that 'Cannot instantiate the type Minecraft' How can I fix it?
  19. Hi, I'm making a block with different textures on the sides and I'd like to rotate the top when placing it from another direction and I'd like to flip the textures on the sides so I don't have to use more textures. Is this possible? Thank you in advance, Dawars
  20. No problem, I can finish the other side of the stat system And you can help when you are next to a computer Thanks!
  21. 2013-05-20 10:09:04 [sEVERE] [ForgeModLoader] Fatal errors were detected during the transition from PREINITIALIZATION to INITIALIZATION. Loading cannot continue 2013-05-20 10:09:04 [sEVERE] [ForgeModLoader] mcp [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized FML [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized Forge [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized Suggestions [suggestions mod] (bin) Unloaded->Constructed->Errored 2013-05-20 10:09:04 [sEVERE] [ForgeModLoader] The following problems were captured during this phase 2013-05-20 10:09:04 [sEVERE] [ForgeModLoader] Caught exception from Suggestions java.lang.IllegalArgumentException: Method public void mods.suggestions.webstats.WebStats.FunctionNameHere(cpw.mods.fml.common.event.FMLInitializationEvent) has @ForgeSubscribe annotation, but takes a argument that is not a Event class cpw.mods.fml.common.event.FMLInitializationEvent at net.minecraftforge.event.EventBus.register(EventBus.java:50) at mods.suggestions.Suggestions.preInit(Suggestions.java:62) 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:515) 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:45) 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.propogateStateMessage(LoadController.java:165) 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:45) 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:98) at cpw.mods.fml.common.Loader.loadMods(Loader.java:514) at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:160) at net.minecraft.client.Minecraft.startGame(Minecraft.java:407) at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44) at net.minecraft.client.Minecraft.run(Minecraft.java:729) at java.lang.Thread.run(Unknown Source)
  22. Yes I meant class. I tried it and it crashed: package.package.FunctionNameHere(cpw.mods.fml.common.event.FMLInitializationEvent) has @ForgeSubscribe annotation, but takes a argument that is not a Event class cpw.mods.fml.common.event.FMLInitializationEvent What I'd like to do is a program that modders can put into their mods and register in their mod file maximum once. It'd send data to my website and they could see theirs stats there... I don't want it to be to complicated for them.
  23. Hello, I'd like to call a function from outside the main mod class when for example the game starts. It'd be in the main mod class like this: @PreInit public static void preInit(FMLPreInitializationEvent event){ function(); } I hope I explained well if not please tell me! Thank you in advance, Dawars
×
×
  • Create New...

Important Information

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