Thanks for the tutorials! I watched the first few trying to see if I need windows for anything and It looks like I don't! Great job on the tutorials
You shouldn't, no. I've learned a lot since I started doing these videos, so when 1.8 comes out I'm going to do a better job of taking care of all of the OS's out there so everyone can play. I should probably include IntelliJ as well...
Rollback Post to RevisionRollBack
If someone helps you out, don't hesitate to hit the green button to give them some props.
The Meaning of Life, the Universe, and Everything.
Location:
Where do you think penguins are?
Join Date:
3/24/2014
Posts:
54
Location:
Antartica
Minecraft:
penguin1737
Xbox:
Don't need this
PSN:
Don't need this
Member Details
So I started to work on getting this started and do the 1st episode and it took me a while to get gradlew to go on this mac but once I did it was saying do 'run gradlew <task>' but run isn't a command and it also won't do gradlew help needed
Rollback Post to RevisionRollBack
If you like my post give me one of those green arrows
So I started to work on getting this started and do the 1st episode and it took me a while to get gradlew to go on this mac but once I did it was saying do 'run gradlew <task>' but run isn't a command and it also won't do gradlew help needed
Nevermind, i looked around and figured out how to run it on my way to making a mod
Rollback Post to RevisionRollBack
If you like my post give me one of those green arrows
Hey Neale. Your videos are fantastic and you should be proud of yourself. They have really helped me out and I hope to become an author of a major mod someday because of you.
So, I need your help with a few things.
I have made a block that i want to burn like logs and i have no idea how to do it. I wanted to know if instead of spawning an ore in every chunk, you could do it over a larger area say 64x64. Also, I want to know how to disable vanilla minecraft blocks and items.
Also. Just wanted to know. Can you make a MultiBlock structure tutorial soon? I have allot of machines that I want to create but I want them to be huge.
Hey Neale. Your videos are fantastic and you should be proud of yourself. They have really helped me out and I hope to become an author of a major mod someday because of you.
So, I need your help with a few things.
I have made a block that i want to burn like logs and i have no idea how to do it. I wanted to know if instead of spawning an ore in every chunk, you could do it over a larger area say 64x64. Also, I want to know how to disable vanilla minecraft blocks and items.
Thanks in advance.
To my knowledge, if you want something to be flammable, just put a .setBurning() on it when you initialize it and that should do it.
I know that you can remove the recipes for vanilla items, but I am not sure how to remove blocks or items completely from the game. Which would you be looking for?
In your worldgen file under generateSurface you could probably do the following and change it from this:
To my knowledge, if you want something to be flammable, just put a .setBurning() on it when you initialize it and that should do it.
I know that you can remove the recipes for vanilla items, but I am not sure how to remove blocks or items completely from the game. Which would you be looking for?
In your worldgen file under generateSurface you could probably do the following and change it from this:
That should increase the rarity of the ore dramatically, a la iridium from the old FTB Ultimate days.
MultiBlock structures elude me. Although I haven't given up on them. Hopefully something soon.
I can get the ore gen to work like that, although, it wont let me go any farther than that. Also it wont let me create very large deposits around 100 blocks. I was thinking that if i could make a structure generator i could make large deposits like Gregtech does with granite. Also the .setBurning() is not working for me.
The Meaning of Life, the Universe, and Everything.
Location:
The Island of Koridai
Join Date:
8/7/2013
Posts:
78
Location:
Look behind you...
Minecraft:
RandomMcSomethin
Member Details
Please help! I crashed with this crash report:
java.lang.RuntimeException: Invalid shapeless recipy!
at net.minecraft.item.crafting.CraftingManager.addShapelessRecipe(CraftingManager.java:271) ~[CraftingManager.class:?]
at cpw.mods.fml.common.registry.GameRegistry.addShapelessRecipe(GameRegistry.java:222) ~[GameRegistry.class:?]
at net.LCM.mod.LCM.init(LCM.java:36) ~[LCM.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_25]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_25]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_25]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_25]
at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:513) ~[FMLModContainer.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_25]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_25]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_25]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_25]
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_25]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_25]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_25]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_25]
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_25]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_25]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_25]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_25]
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 ----
// You're mean.
Time: 6/12/14 11:06 PM
Description: Initializing game
java.lang.RuntimeException: Invalid shapeless recipy!
at net.minecraft.item.crafting.CraftingManager.addShapelessRecipe(CraftingManager.java:271)
at cpw.mods.fml.common.registry.GameRegistry.addShapelessRecipe(GameRegistry.java:222)
at net.LCM.mod.LCM.init(LCM.java:36)
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 net.minecraft.item.crafting.CraftingManager.addShapelessRecipe(CraftingManager.java:271)
at cpw.mods.fml.common.registry.GameRegistry.addShapelessRecipe(GameRegistry.java:222)
at net.LCM.mod.LCM.init(LCM.java:36)
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)
Sorry if there's no spoiler, I haven't posted in a while, and it appears I have forgotten how to make a spoiler...
Incredibly great job with the vids =DIm fnialy sitting down and actually learning the basics of modding its way better than copy pasta xDi started watching your vids last night but i got stuck on the second one..My code works and all up to the point with the textures it wont recognize the texture or cant find it for some reason if you could help me out id be greatly in your dept even more n.nhttp://tinypic.com/v...=8#.U5yKDPldVtUand this is the error that pops up even though i have the file in the correct place (or at least i think so unless im doing something wrong..)
[10:48:12] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas[10:48:13] [Client thread/ERROR]: Using missing texture, unable to load firstcraft:textures/items/MachaliteIngot.pngjava.io.FileNotFoundException: firstcraft:textures/items/MachaliteIngot.png at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:71) ~[SimpleReloadableResourceManager.class:?] at net.minecraft.client.renderer.texture.TextureMap.loadTextureAtlas(TextureMap.java:126) [TextureMap.class:?] at net.minecraft.client.renderer.texture.TextureMap.loadTexture(TextureMap.java:91) [TextureMap.class:?] at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?] at net.minecraft.client.renderer.texture.TextureManager.loadTickableTexture(TextureManager.java:71) [TextureManager.class:?] at net.minecraft.client.renderer.texture.TextureManager.loadTextureMap(TextureManager.java:58) [TextureManager.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:582) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:892) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_05] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_05] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_05] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_05] 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:?][10:48:13] [Client thread/INFO]: Created: 256x256 textures/items-atlas[10:48:13] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods[10:48:13] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:FirstCraft[10:48:13] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas[10:48:13] [Client thread/ERROR]: Using missing texture, unable to load firstcraft:textures/items/MachaliteIngot.pngjava.io.FileNotFoundException: firstcraft:textures/items/MachaliteIngot.png at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:71) ~[SimpleReloadableResourceManager.class:?] at net.minecraft.client.renderer.texture.TextureMap.loadTextureAtlas(TextureMap.java:126) [TextureMap.class:?] at net.minecraft.client.renderer.texture.TextureMap.loadTexture(TextureMap.java:91) [TextureMap.class:?] at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?] at net.minecraft.client.renderer.texture.TextureManager.onResourceManagerReload(TextureManager.java:170) [TextureManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.notifyReloadListeners(SimpleReloadableResourceManager.java:134) [SimpleReloadableResourceManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.reloadResources(SimpleReloadableResourceManager.java:118) [SimpleReloadableResourceManager.class:?] at net.minecraft.client.Minecraft.refreshResources(Minecraft.java:626) [Minecraft.class:?] at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:303) [FMLClientHandler.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:585) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:892) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_05] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_05] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_05] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_05] 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:?]
I solved it on my own already =P
im such a derp xD
I spelled assets - assest haha xD
on to number 3! woot woot!
soon i shall rival the master for supremacy of the coding kingdom ;D
I have a little issue, with the textures. I did the items video, created a few ingots and the textures worked flawlessly.
Now I'm at creating Blocks video. everything works but the textures. The folder names have no Caps and for some reason the .png image doesn't appear in the texture package I created for the blocks.
here is the code from my main .java
package net.planetsteam.mod;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.item.Item;
import net.planetsteam.mod.blocks.CopperOre;
import net.planetsteam.mod.blocks.ZincOre;
import net.planetsteam.mod.items.PSItems;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.EventHandler;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.registry.GameRegistry;
@Mod(modid = PlanetSteam.modid, version = PlanetSteam.version)
public class PlanetSteam {
public static final String modid= "planetsteam";
public static final String version = "Alpha v0.1";
public static Item itemCopperIngot;
public static Item itemZincIngot;
public static Item itemSteelIngot;
public static Item itemBrassIngot;
public static Block oreCopperOre;
public static Block oreZincOre;
@EventHandler
public void PreInit(FMLPreInitializationEvent preEvent){
itemCopperIngot = new PSItems().setUnlocalizedName("CopperIngot");
GameRegistry.registerItem(itemCopperIngot, "CopperIngot");
itemZincIngot = new PSItems().setUnlocalizedName("ZincIngot");
GameRegistry.registerItem(itemZincIngot, "ZincIngot");
itemSteelIngot = new PSItems().setUnlocalizedName("SteelIngot");
GameRegistry.registerItem(itemSteelIngot,"SteelIngot");
itemBrassIngot = new PSItems().setUnlocalizedName("BrassIngot");
GameRegistry.registerItem(itemBrassIngot,"BrassIngot");
oreCopperOre = new CopperOre(Material.rock).setBlockName("CopperOre");
GameRegistry.registerBlock(oreCopperOre, "CopperOre");
oreZincOre = new ZincOre(Material.rock).setBlockName("ZincOre");
GameRegistry.registerBlock(oreZincOre, "ZincOre");
}
@EventHandler
public void Init(FMLInitializationEvent event){
}
@EventHandler
public void Postinit(FMLPostInitializationEvent postevent){
}
}
*edit* Ok the .png is appearing in eclipse, still trying to make it work ingame
here is the debug script
Initializing LWJGL OpenAL
(The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org)
OpenAL initialized.
[15:49:14] [Client thread/ERROR]: Using missing texture, unable to load planetsteam :textures/blocks/ ZincOre.png
java.io.FileNotFoundException: planetsteam :textures/blocks/ ZincOre.png
at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:71) ~[SimpleReloadableResourceManager.class:?]
at net.minecraft.client.renderer.texture.TextureMap.loadTextureAtlas(TextureMap.java:126) [TextureMap.class:?]
at net.minecraft.client.renderer.texture.TextureMap.loadTexture(TextureMap.java:91) [TextureMap.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTickableTexture(TextureManager.java:71) [TextureManager.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTextureMap(TextureManager.java:58) [TextureManager.class:?]
at net.minecraft.client.Minecraft.startGame(Minecraft.java:581) [Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:892) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_05]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_05]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_05]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_05]
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:?]
[15:49:14] [Client thread/ERROR]: Using missing texture, unable to load planetsteam :textures/blocks/ CopperOre.png
java.io.FileNotFoundException: planetsteam :textures/blocks/ CopperOre.png
at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:71) ~[SimpleReloadableResourceManager.class:?]
at net.minecraft.client.renderer.texture.TextureMap.loadTextureAtlas(TextureMap.java:126) [TextureMap.class:?]
at net.minecraft.client.renderer.texture.TextureMap.loadTexture(TextureMap.java:91) [TextureMap.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTickableTexture(TextureManager.java:71) [TextureManager.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTextureMap(TextureManager.java:58) [TextureManager.class:?]
at net.minecraft.client.Minecraft.startGame(Minecraft.java:581) [Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:892) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_05]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_05]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_05]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_05]
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:?]
[15:49:14] [Sound Library Loader/INFO]: Sound engine started
[15:49:14] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas
[15:49:14] [Client thread/INFO]: Created: 256x256 textures/items-atlas
[15:49:14] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods
[15:49:14] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:planetsteam
[15:49:14] [Client thread/ERROR]: Using missing texture, unable to load planetsteam :textures/blocks/ ZincOre.png
java.io.FileNotFoundException: planetsteam :textures/blocks/ ZincOre.png
at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:71) ~[SimpleReloadableResourceManager.class:?]
at net.minecraft.client.renderer.texture.TextureMap.loadTextureAtlas(TextureMap.java:126) [TextureMap.class:?]
at net.minecraft.client.renderer.texture.TextureMap.loadTexture(TextureMap.java:91) [TextureMap.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?]
at net.minecraft.client.renderer.texture.TextureManager.onResourceManagerReload(TextureManager.java:170) [TextureManager.class:?]
at net.minecraft.client.resources.SimpleReloadableResourceManager.notifyReloadListeners(SimpleReloadableResourceManager.java:134) [SimpleReloadableResourceManager.class:?]
at net.minecraft.client.resources.SimpleReloadableResourceManager.reloadResources(SimpleReloadableResourceManager.java:118) [SimpleReloadableResourceManager.class:?]
at net.minecraft.client.Minecraft.refreshResources(Minecraft.java:626) [Minecraft.class:?]
at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:303) [FMLClientHandler.class:?]
at net.minecraft.client.Minecraft.startGame(Minecraft.java:585) [Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:892) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_05]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_05]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_05]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_05]
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:?]
[15:49:14] [Client thread/ERROR]: Using missing texture, unable to load planetsteam :textures/blocks/ CopperOre.png
java.io.FileNotFoundException: planetsteam :textures/blocks/ CopperOre.png
at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:71) ~[SimpleReloadableResourceManager.class:?]
at net.minecraft.client.renderer.texture.TextureMap.loadTextureAtlas(TextureMap.java:126) [TextureMap.class:?]
at net.minecraft.client.renderer.texture.TextureMap.loadTexture(TextureMap.java:91) [TextureMap.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?]
at net.minecraft.client.renderer.texture.TextureManager.onResourceManagerReload(TextureManager.java:170) [TextureManager.class:?]
at net.minecraft.client.resources.SimpleReloadableResourceManager.notifyReloadListeners(SimpleReloadableResourceManager.java:134) [SimpleReloadableResourceManager.class:?]
at net.minecraft.client.resources.SimpleReloadableResourceManager.reloadResources(SimpleReloadableResourceManager.java:118) [SimpleReloadableResourceManager.class:?]
at net.minecraft.client.Minecraft.refreshResources(Minecraft.java:626) [Minecraft.class:?]
at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:303) [FMLClientHandler.class:?]
at net.minecraft.client.Minecraft.startGame(Minecraft.java:585) [Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:892) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_05]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_05]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_05]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_05]
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:?]
[15:49:15] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas
[15:49:15] [Client thread/INFO]: Created: 256x256 textures/items-atlas
Initializing LWJGL OpenAL
(The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org)
OpenAL initialized.
[15:49:14] [Client thread/ERROR]: Using missing texture, unable to load planetsteam :textures/blocks/ ZincOre.png
java.io.FileNotFoundException: planetsteam :textures/blocks/ ZincOre.png
at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:71) ~[SimpleReloadableResourceManager.class:?]
at net.minecraft.client.renderer.texture.TextureMap.loadTextureAtlas(TextureMap.java:126) [TextureMap.class:?]
at net.minecraft.client.renderer.texture.TextureMap.loadTexture(TextureMap.java:91) [TextureMap.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTickableTexture(TextureManager.java:71) [TextureManager.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTextureMap(TextureManager.java:58) [TextureManager.class:?]
at net.minecraft.client.Minecraft.startGame(Minecraft.java:581) [Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:892) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_05]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_05]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_05]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_05]
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:?]
[15:49:14] [Client thread/ERROR]: Using missing texture, unable to load planetsteam :textures/blocks/ CopperOre.png
java.io.FileNotFoundException: planetsteam :textures/blocks/ CopperOre.png
at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:71) ~[SimpleReloadableResourceManager.class:?]
at net.minecraft.client.renderer.texture.TextureMap.loadTextureAtlas(TextureMap.java:126) [TextureMap.class:?]
at net.minecraft.client.renderer.texture.TextureMap.loadTexture(TextureMap.java:91) [TextureMap.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTickableTexture(TextureManager.java:71) [TextureManager.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTextureMap(TextureManager.java:58) [TextureManager.class:?]
at net.minecraft.client.Minecraft.startGame(Minecraft.java:581) [Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:892) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_05]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_05]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_05]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_05]
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:?]
[15:49:14] [Sound Library Loader/INFO]: Sound engine started
[15:49:14] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas
[15:49:14] [Client thread/INFO]: Created: 256x256 textures/items-atlas
[15:49:14] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods
[15:49:14] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:planetsteam
[15:49:14] [Client thread/ERROR]: Using missing texture, unable to load planetsteam :textures/blocks/ ZincOre.png
java.io.FileNotFoundException: planetsteam :textures/blocks/ ZincOre.png
at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:71) ~[SimpleReloadableResourceManager.class:?]
at net.minecraft.client.renderer.texture.TextureMap.loadTextureAtlas(TextureMap.java:126) [TextureMap.class:?]
at net.minecraft.client.renderer.texture.TextureMap.loadTexture(TextureMap.java:91) [TextureMap.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?]
at net.minecraft.client.renderer.texture.TextureManager.onResourceManagerReload(TextureManager.java:170) [TextureManager.class:?]
at net.minecraft.client.resources.SimpleReloadableResourceManager.notifyReloadListeners(SimpleReloadableResourceManager.java:134) [SimpleReloadableResourceManager.class:?]
at net.minecraft.client.resources.SimpleReloadableResourceManager.reloadResources(SimpleReloadableResourceManager.java:118) [SimpleReloadableResourceManager.class:?]
at net.minecraft.client.Minecraft.refreshResources(Minecraft.java:626) [Minecraft.class:?]
at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:303) [FMLClientHandler.class:?]
at net.minecraft.client.Minecraft.startGame(Minecraft.java:585) [Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:892) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_05]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_05]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_05]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_05]
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:?]
[15:49:14] [Client thread/ERROR]: Using missing texture, unable to load planetsteam :textures/blocks/ CopperOre.png
java.io.FileNotFoundException: planetsteam :textures/blocks/ CopperOre.png
at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:71) ~[SimpleReloadableResourceManager.class:?]
at net.minecraft.client.renderer.texture.TextureMap.loadTextureAtlas(TextureMap.java:126) [TextureMap.class:?]
at net.minecraft.client.renderer.texture.TextureMap.loadTexture(TextureMap.java:91) [TextureMap.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?]
at net.minecraft.client.renderer.texture.TextureManager.onResourceManagerReload(TextureManager.java:170) [TextureManager.class:?]
at net.minecraft.client.resources.SimpleReloadableResourceManager.notifyReloadListeners(SimpleReloadableResourceManager.java:134) [SimpleReloadableResourceManager.class:?]
at net.minecraft.client.resources.SimpleReloadableResourceManager.reloadResources(SimpleReloadableResourceManager.java:118) [SimpleReloadableResourceManager.class:?]
at net.minecraft.client.Minecraft.refreshResources(Minecraft.java:626) [Minecraft.class:?]
at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:303) [FMLClientHandler.class:?]
at net.minecraft.client.Minecraft.startGame(Minecraft.java:585) [Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:892) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_05]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_05]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_05]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_05]
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:?]
[15:49:15] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas
[15:49:15] [Client thread/INFO]: Created: 256x256 textures/items-atlas
Ok, so I am working on the furnace tutorials, and I finished ep.10 last night...
My furnace is working, and the gui shows up just fine, but the animation wont start when the furnace is cooking...
It was suggested to put a system println in the gui class to see if isBurning updates properly. It doesn't :/
when I open the gui, it starts spam printing false, and that doesn't change when the furnace starts. It just keeps printing false, even though the furnace is clearly burning...
My block icon changes just fine, and I get cooked items out of the furnace just fine, so the mechanics are there, just not updating the gui properly.
I dropped a isBurning println check in the gui handler, in the method to update the progress bar. It prints out false once when I open the gui, and then nothing. if I close and re-open the gui while it is still burning, it prints out true once, and stops.
I would assume the progress bar update should be a continuous thing, so I am thinking that is where my problem is.
I have been sifting through the code on GitHub, but I can't find what is different between my code and the source code, beyond the variables I named to suit my mod.
Any suggestions on what I should be looking at, or for would be greatly appreciated.
I can post code up if needed, but I am trying to trouble shoot on my own as much as possible, for the sake of learning just what the hell I am doing
Just looking for some suggestions I could try that maybe I am not thinking of
ETA: I put a isBurning println check in the addCraftingToCrafters method, and it will only print once true or false when the gui is opened. But if I put it in the getAndSendUpdates method, it prints the corrects state continually while the gui is open
both methods are identical to the source code on github.
Rollback Post to RevisionRollBack
My brand new Minecraft modded Let's Play channel -
it prints the correct state continuously, false if the furnace isn't on, and true if it is.
but if I place it outside that part of the method and place it lower down, where it is checking if it can smelt, I get alternating true/false, more heavy on the false.
not sure if this is the way it is supposed to be, but comparing my code to the github code, I don't see anything different in the entire TileEntity class...
So confused.
I might just move on, and see if I can't debug it later, once the rest of the furnace code is done. I have been wrestling with this for close to 24 hours now, with little rest, so I might just need a nap and a break...
I hate bugs :/
ETA: Ok, I fixed it... had to fill out the updateProgressBar method in the container class. That wasn't done in video 10, but the animation was working in that video. I decided to move on to video 11 and noticed it was filled out already, so I did that and BAM arrow and flames working, but not I am having some issues figuring out how to get the flames to animate properly.
I am using the same thing the vanilla furnace does, and need it to disappear from the top down, just like vanilla minecraft furnace. When I do it the way I figured it would work, the whole flames image moves down. Any suggestion on how to get the image to wipe down like it should.
going to keep noodling on it, but math isn't my strong suit...
I am guessing I am going to need to alter the top position at the same time as the bottom postilion, but everything I have tried so far just moves the whole image up or down, and doesn't wipe it away...
nice to see it working though, and I also have to animate one more arrow for my gui, which will be facing the opposite direction, so I imagine I will have some similar tweaking to do on that one as well.
ETA(2): Well, it never fails. I sit and stair at these things, and can't figure it out, then I post a question on here, and find the answer myself nearly immediately. I finally found the vanilla code, and just adapted it for what I needed. Everything seems to be working fine now.
Moving on with the tutorial, and happily going to put this damned furnace behind me :/
Great Tutorial series BTW! Best I have seen on youtube, and I have looked at A LOT of them. Most move too fast, and don't explain enough. I finally feel like I am learning what I am doing while following along, and not just re-typing words from the video to my code....
thanks so much for taking the extreme time and effort it takes to put something like this out!
looking forward to finishing up my mod and getting it released!
just have to put the armor in the code, and what I need for release will be done. I have more I want to learn and add to it, but my original idea is nearly finished, and I want to put it out, and then just add to it as I learn more!
Thanks again for the great videos!
Nate
Rollback Post to RevisionRollBack
My brand new Minecraft modded Let's Play channel -
So first, your tutorials are really great, and I've learned a TON from them.
I was still getting errors for the Ingot Masher on a shift click in the inventory after overriding the transferStackInSlot method... they were index out of range errors, but I managed to figure it out, so I'm posting my solution here for anyone who was having the same problem.
so it turns out that the way this method works is gets the number of the slot you clicked on, and then compares it to the inventory slots and the machine slots, and using if statements, determines where a valid slot to dump the itemstack is.
For the Ingot Masher, the machine slot numbers are 0 through 3, and the player inventory slots (inclucding the hotbar) are numbered 4 to 39. These numbers are determined by the way you added slots to the container in the ContainerIngotMasher constructor.
here is my final code for the transferStackInSlot function. I included some comments, so hopefully it's easy to understand.
public ItemStack transferStackInSlot(EntityPlayer player, int slotNum) {
ItemStack itemstack = null;
Slot slot = (Slot)this.inventorySlots.get(slotNum);
if (slot != null && slot.getHasStack()) { //if there is an itemstack in the slot
ItemStack itemstack1 = slot.getStack(); //stores the itemstack into a variable
itemstack = itemstack1.copy();
if (slotNum >= 0 && slotNum <= 3) { //if the slot is one of the input/output slots(numbers 0 to 3)
//mergeItemStack params: (itemstack, startSlot, endSlot+1 , startAtEnd?)
if (!this.mergeItemStack(itemstack1, 4, 40, true)) { //tries to merge the stack with one in slots 4-39(player inventory and hotbar) **remember that the endSlot param requires you add 1 to the real value (slot 39 would change to 40)
return null;
}
slot.onSlotChange(itemstack1, itemstack);
} else if (slotNum >= 4 && slotNum < 39) { //if the slot is one of the player slots(numbers 4-39)
//TODO check if has smelting recipe
if (ingotMasher.hasItemPower(itemstack1)) { //if the itemstack is fuel
if (!this.mergeItemStack(itemstack1, 2, 3, false)) { //try to store in fuel slot (slot 2)
return null;
}
} else {
if (!this.mergeItemStack(itemstack1, 0, 2, false)) { //try to store in inputs **notice no method to try to store in output (you dont want to be putting things there)
return null;
}
}
} else if (!this.mergeItemStack(itemstack1, 4, 40, false)) { //failsafe
return null;
}
if (itemstack1.stackSize == 0) { //if there is nothing in the stack
slot.putStack((ItemStack) null); //put an empty stack in the slot you clicked
} else {
slot.onSlotChanged();
}
if (itemstack1.stackSize == itemstack.stackSize) {
return null;
}
slot.onPickupFromSlot(player, itemstack1);
}
return itemstack;
}
Hey Neale =D i have some requests maybe you can have fun figuring these out =P
Blocks when stepd on something happens: (like in slime you bounce, in clouds you dont take fall damage, soulsand you get slowed etc)
custom mob AI: like bigger fireballs, call lightning/change weather, charge attacks, special behaviors after taking a certain amount of damage like going into rage mode(which would change the texture if possible) and other special behaviors.
and this is more of a question, is it possible for any one block to drop items while it is being broken and for it to save the damage it took?
i wanna make a couple of generic ore stone that drop different types of ore and if possible for it to save the damage it took while being mined
I love your Tutorial series and I watch them frequently. They're amazingly easy to follow and provide more insight into the mechanics of the code than any other series I've seen. And yet, I am having trouble with my mob code. More specifically, with my EntityHandler. Its the strangest thing. There are no errors in my code-- I've meticulously accounted for every space and comma in the class-- and even so, I get yellow squiggles with odd warnings. They are the only outstanding anomaly in the entirety of the code. I know this is the reason why my mod crashes when I try to give it a test run. Here is my code.
public static void registerMonsters(Class entityClass, String name) {
int entityId = EntityRegistry.findGlobalUniqueEntityId();
long x = name.hashCode();
Random random = new Random(x);
int mainColor = random.nextInt() * 16777215;
int subColor = random.nextInt() * 16777215;
Class on the registerMonsters method tells me "Class is a raw type. References to a generic Class<T> should be parameterized." entityClass in the registry below tells me "Type safety: The expression of type Class needs unchecked conversion to conform to Class<? extends EntityLiving>" and finally all of the last line brings up "Type safety: The method put(Object, Object) belongs to the raw type HashMap. References to generic type HashMap<K,V> should be parameterized."
I am very confused. Is there something I missed? If you could help me out here I would appreciate it greatly. I want to get back to modding!
I made a thread in the Mod Developement area about he Textures Problem i and it seems still others are having issues with...
I have tried for 3 days to figure it out and still come up short but I am posting the link for you, nxwhitney and/or anyone else that may know the answer.
Just wanted to let you know that in my searchings around I found these tutorials of yours. Been going through them (currently starting #7) and I have to say that wow, have I ever learned a lot. And not just how to copy pasta as you mention in the videos. I was actually implementing my own stuff starting right away in the second episode after learning the basics behind creating an item. And all my stuff is named like I want it to be for my own mod. Not just outright copying the demonstrations.
Brilliant job. Thank you so much. I subscribed on YouTube as well.
Your tutorials have taught me soooo much. And they are so easy to follow. I can't wait for the biomes/dimensions tutorials!
Additionally, I wanted to ask, - are you planning on perhaps doing something on custom particles? In addition to having the standard flame particle, perhaps colored flames?
I have been following the tutorials and have reached the "Custom Crafting Table" episode. But before I follow that tutorial, I wanted to get the block down itself, and then insert what is needed to make it a crafting table. This block in particular, is a custom rendered block. I have the block rendering in game, and have yet to get to the texture. What I have been doing is sifting through vanilla code (Stair and Anvil block code mainly) to check how to make the block face the player when placed. I haven't managed to get it to do so yet. Could somebody explain what I am missing? I have pasted my block's code below.
Any help is appreciated.
I am guessing I might have to put something in the renderer for this.
Also, if you could tell me how I could make a block spawn in a specific shape in the world gen? I am trying to make a sort of hard stone spawn in spherical shapes in the ground.
public IngotMasher(Material material) {
super(material);
this.setHardness(2.0F);
this.setResistance(5.0F);
this.setBlockBounds(0F, 0F, 0F, 1F, 1F, 1F);
this.setCreativeTab(Arcron.arcronTab);
}
/*public void onBlockAdded(World world, int x, int y, int z){
super.onBlockAdded(world, x, y, z);
this.setDefaultDirection(world, x, y, z);
}*/
public void onBlockPlacedBy(World p_149689_1_, int p_149689_2_, int p_149689_3_, int p_149689_4_, EntityLivingBase p_149689_5_, ItemStack p_149689_6_)
{
int l = MathHelper.floor_double((double)(p_149689_5_.rotationYaw * 4.0F / 360.0F) + 0.5D) & 4;
int i1 = p_149689_1_.getBlockMetadata(p_149689_2_, p_149689_3_, p_149689_4_) & 4;
/*private void setDefaultDirection(World world, int x, int y, int z) {
if(world.isRemote){
Block b1 = world.getBlock(x, y, z - 1);
Block b2 = world.getBlock(x, y, z + 1);
Block b3 = world.getBlock(x - 1, y, z);
Block b4 = world.getBlock(x + 1, y, z);
I appreciate it!
You shouldn't, no. I've learned a lot since I started doing these videos, so when 1.8 comes out I'm going to do a better job of taking care of all of the OS's out there so everyone can play. I should probably include IntelliJ as well...
I appreciate it!
I appreciate it!
So, I need your help with a few things.
I have made a block that i want to burn like logs and i have no idea how to do it. I wanted to know if instead of spawning an ore in every chunk, you could do it over a larger area say 64x64. Also, I want to know how to disable vanilla minecraft blocks and items.
Thanks in advance.
Thanks Again.
To my knowledge, if you want something to be flammable, just put a .setBurning() on it when you initialize it and that should do it.
I know that you can remove the recipes for vanilla items, but I am not sure how to remove blocks or items completely from the game. Which would you be looking for?
In your worldgen file under generateSurface you could probably do the following and change it from this:
this.addOreSpawn(Nealecraft.oreCopperOre, world, random, x, z, 16, 16, 4+random.nextInt(6), 25, 38, 100);
to this:
this.addOreSpawn(Nealecraft.oreCopperOre, world, random, x, z, 64, 64, 4+random.nextInt(6), 25, 38, 100);
That should increase the rarity of the ore dramatically, a la iridium from the old FTB Ultimate days.
MultiBlock structures elude me. Although I haven't given up on them. Hopefully something soon.
I can get the ore gen to work like that, although, it wont let me go any farther than that. Also it wont let me create very large deposits around 100 blocks. I was thinking that if i could make a structure generator i could make large deposits like Gregtech does with granite. Also the .setBurning() is not working for me.
-
View User Profile
-
View Posts
-
Send Message
Curse Premiumjava.lang.RuntimeException: Invalid shapeless recipy!
at net.minecraft.item.crafting.CraftingManager.addShapelessRecipe(CraftingManager.java:271) ~[CraftingManager.class:?]
at cpw.mods.fml.common.registry.GameRegistry.addShapelessRecipe(GameRegistry.java:222) ~[GameRegistry.class:?]
at net.LCM.mod.LCM.init(LCM.java:36) ~[LCM.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_25]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_25]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_25]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_25]
at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:513) ~[FMLModContainer.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_25]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_25]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_25]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_25]
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_25]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_25]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_25]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_25]
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_25]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_25]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_25]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_25]
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 ----
// You're mean.
Time: 6/12/14 11:06 PM
Description: Initializing game
java.lang.RuntimeException: Invalid shapeless recipy!
at net.minecraft.item.crafting.CraftingManager.addShapelessRecipe(CraftingManager.java:271)
at cpw.mods.fml.common.registry.GameRegistry.addShapelessRecipe(GameRegistry.java:222)
at net.LCM.mod.LCM.init(LCM.java:36)
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 net.minecraft.item.crafting.CraftingManager.addShapelessRecipe(CraftingManager.java:271)
at cpw.mods.fml.common.registry.GameRegistry.addShapelessRecipe(GameRegistry.java:222)
at net.LCM.mod.LCM.init(LCM.java:36)
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)
Sorry if there's no spoiler, I haven't posted in a while, and it appears I have forgotten how to make a spoiler...
Insert generic overused signature here
I solved it on my own already =P
im such a derp xD
I spelled assets - assest haha xD
on to number 3! woot woot!
soon i shall rival the master for supremacy of the coding kingdom ;D
Great videos!! Finally I can learn to code
I have a little issue, with the textures. I did the items video, created a few ingots and the textures worked flawlessly.
Now I'm at creating Blocks video. everything works but the textures. The folder names have no Caps and for some reason the .png image doesn't appear in the texture package I created for the blocks.
here is the code from my main .java
package net.planetsteam.mod; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.item.Item; import net.planetsteam.mod.blocks.CopperOre; import net.planetsteam.mod.blocks.ZincOre; import net.planetsteam.mod.items.PSItems; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.EventHandler; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.event.FMLPostInitializationEvent; import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.common.registry.GameRegistry; @Mod(modid = PlanetSteam.modid, version = PlanetSteam.version) public class PlanetSteam { public static final String modid= "planetsteam"; public static final String version = "Alpha v0.1"; public static Item itemCopperIngot; public static Item itemZincIngot; public static Item itemSteelIngot; public static Item itemBrassIngot; public static Block oreCopperOre; public static Block oreZincOre; @EventHandler public void PreInit(FMLPreInitializationEvent preEvent){ itemCopperIngot = new PSItems().setUnlocalizedName("CopperIngot"); GameRegistry.registerItem(itemCopperIngot, "CopperIngot"); itemZincIngot = new PSItems().setUnlocalizedName("ZincIngot"); GameRegistry.registerItem(itemZincIngot, "ZincIngot"); itemSteelIngot = new PSItems().setUnlocalizedName("SteelIngot"); GameRegistry.registerItem(itemSteelIngot,"SteelIngot"); itemBrassIngot = new PSItems().setUnlocalizedName("BrassIngot"); GameRegistry.registerItem(itemBrassIngot,"BrassIngot"); oreCopperOre = new CopperOre(Material.rock).setBlockName("CopperOre"); GameRegistry.registerBlock(oreCopperOre, "CopperOre"); oreZincOre = new ZincOre(Material.rock).setBlockName("ZincOre"); GameRegistry.registerBlock(oreZincOre, "ZincOre"); } @EventHandler public void Init(FMLInitializationEvent event){ } @EventHandler public void Postinit(FMLPostInitializationEvent postevent){ } }And one of the Ore .java
package net.planetsteam.mod.blocks; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IIconRegister; import net.planetsteam.mod.PlanetSteam; public class CopperOre extends Block{ public CopperOre(Material material) { super(material); this.setHardness(3.0F); this.setResistance(5.0F); this.setStepSound(soundTypeStone); this.setCreativeTab(getCreativeTabToDisplayOn().tabBlock); } @SideOnly(Side.CLIENT) public void registerBlockIcons(IIconRegister iconRegister) { this.blockIcon = iconRegister.registerIcon(PlanetSteam.modid + " : " + this.getUnlocalizedName().substring(5)); } }Am I missing something?
*edit* Ok the .png is appearing in eclipse, still trying to make it work ingame
here is the debug script
Initializing LWJGL OpenAL
(The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org)
OpenAL initialized.
[15:49:14] [Client thread/ERROR]: Using missing texture, unable to load planetsteam :textures/blocks/ ZincOre.png
java.io.FileNotFoundException: planetsteam :textures/blocks/ ZincOre.png
at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:71) ~[SimpleReloadableResourceManager.class:?]
at net.minecraft.client.renderer.texture.TextureMap.loadTextureAtlas(TextureMap.java:126) [TextureMap.class:?]
at net.minecraft.client.renderer.texture.TextureMap.loadTexture(TextureMap.java:91) [TextureMap.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTickableTexture(TextureManager.java:71) [TextureManager.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTextureMap(TextureManager.java:58) [TextureManager.class:?]
at net.minecraft.client.Minecraft.startGame(Minecraft.java:581) [Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:892) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_05]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_05]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_05]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_05]
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:?]
[15:49:14] [Client thread/ERROR]: Using missing texture, unable to load planetsteam :textures/blocks/ CopperOre.png
java.io.FileNotFoundException: planetsteam :textures/blocks/ CopperOre.png
at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:71) ~[SimpleReloadableResourceManager.class:?]
at net.minecraft.client.renderer.texture.TextureMap.loadTextureAtlas(TextureMap.java:126) [TextureMap.class:?]
at net.minecraft.client.renderer.texture.TextureMap.loadTexture(TextureMap.java:91) [TextureMap.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTickableTexture(TextureManager.java:71) [TextureManager.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTextureMap(TextureManager.java:58) [TextureManager.class:?]
at net.minecraft.client.Minecraft.startGame(Minecraft.java:581) [Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:892) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_05]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_05]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_05]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_05]
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:?]
[15:49:14] [Sound Library Loader/INFO]: Sound engine started
[15:49:14] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas
[15:49:14] [Client thread/INFO]: Created: 256x256 textures/items-atlas
[15:49:14] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods
[15:49:14] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:planetsteam
[15:49:14] [Client thread/ERROR]: Using missing texture, unable to load planetsteam :textures/blocks/ ZincOre.png
java.io.FileNotFoundException: planetsteam :textures/blocks/ ZincOre.png
at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:71) ~[SimpleReloadableResourceManager.class:?]
at net.minecraft.client.renderer.texture.TextureMap.loadTextureAtlas(TextureMap.java:126) [TextureMap.class:?]
at net.minecraft.client.renderer.texture.TextureMap.loadTexture(TextureMap.java:91) [TextureMap.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?]
at net.minecraft.client.renderer.texture.TextureManager.onResourceManagerReload(TextureManager.java:170) [TextureManager.class:?]
at net.minecraft.client.resources.SimpleReloadableResourceManager.notifyReloadListeners(SimpleReloadableResourceManager.java:134) [SimpleReloadableResourceManager.class:?]
at net.minecraft.client.resources.SimpleReloadableResourceManager.reloadResources(SimpleReloadableResourceManager.java:118) [SimpleReloadableResourceManager.class:?]
at net.minecraft.client.Minecraft.refreshResources(Minecraft.java:626) [Minecraft.class:?]
at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:303) [FMLClientHandler.class:?]
at net.minecraft.client.Minecraft.startGame(Minecraft.java:585) [Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:892) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_05]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_05]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_05]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_05]
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:?]
[15:49:14] [Client thread/ERROR]: Using missing texture, unable to load planetsteam :textures/blocks/ CopperOre.png
java.io.FileNotFoundException: planetsteam :textures/blocks/ CopperOre.png
at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:71) ~[SimpleReloadableResourceManager.class:?]
at net.minecraft.client.renderer.texture.TextureMap.loadTextureAtlas(TextureMap.java:126) [TextureMap.class:?]
at net.minecraft.client.renderer.texture.TextureMap.loadTexture(TextureMap.java:91) [TextureMap.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?]
at net.minecraft.client.renderer.texture.TextureManager.onResourceManagerReload(TextureManager.java:170) [TextureManager.class:?]
at net.minecraft.client.resources.SimpleReloadableResourceManager.notifyReloadListeners(SimpleReloadableResourceManager.java:134) [SimpleReloadableResourceManager.class:?]
at net.minecraft.client.resources.SimpleReloadableResourceManager.reloadResources(SimpleReloadableResourceManager.java:118) [SimpleReloadableResourceManager.class:?]
at net.minecraft.client.Minecraft.refreshResources(Minecraft.java:626) [Minecraft.class:?]
at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:303) [FMLClientHandler.class:?]
at net.minecraft.client.Minecraft.startGame(Minecraft.java:585) [Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:892) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_05]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_05]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_05]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_05]
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:?]
[15:49:15] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas
[15:49:15] [Client thread/INFO]: Created: 256x256 textures/items-atlas
Initializing LWJGL OpenAL
(The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org)
OpenAL initialized.
[15:49:14] [Client thread/ERROR]: Using missing texture, unable to load planetsteam :textures/blocks/ ZincOre.png
java.io.FileNotFoundException: planetsteam :textures/blocks/ ZincOre.png
at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:71) ~[SimpleReloadableResourceManager.class:?]
at net.minecraft.client.renderer.texture.TextureMap.loadTextureAtlas(TextureMap.java:126) [TextureMap.class:?]
at net.minecraft.client.renderer.texture.TextureMap.loadTexture(TextureMap.java:91) [TextureMap.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTickableTexture(TextureManager.java:71) [TextureManager.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTextureMap(TextureManager.java:58) [TextureManager.class:?]
at net.minecraft.client.Minecraft.startGame(Minecraft.java:581) [Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:892) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_05]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_05]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_05]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_05]
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:?]
[15:49:14] [Client thread/ERROR]: Using missing texture, unable to load planetsteam :textures/blocks/ CopperOre.png
java.io.FileNotFoundException: planetsteam :textures/blocks/ CopperOre.png
at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:71) ~[SimpleReloadableResourceManager.class:?]
at net.minecraft.client.renderer.texture.TextureMap.loadTextureAtlas(TextureMap.java:126) [TextureMap.class:?]
at net.minecraft.client.renderer.texture.TextureMap.loadTexture(TextureMap.java:91) [TextureMap.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTickableTexture(TextureManager.java:71) [TextureManager.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTextureMap(TextureManager.java:58) [TextureManager.class:?]
at net.minecraft.client.Minecraft.startGame(Minecraft.java:581) [Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:892) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_05]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_05]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_05]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_05]
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:?]
[15:49:14] [Sound Library Loader/INFO]: Sound engine started
[15:49:14] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas
[15:49:14] [Client thread/INFO]: Created: 256x256 textures/items-atlas
[15:49:14] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods
[15:49:14] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:planetsteam
[15:49:14] [Client thread/ERROR]: Using missing texture, unable to load planetsteam :textures/blocks/ ZincOre.png
java.io.FileNotFoundException: planetsteam :textures/blocks/ ZincOre.png
at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:71) ~[SimpleReloadableResourceManager.class:?]
at net.minecraft.client.renderer.texture.TextureMap.loadTextureAtlas(TextureMap.java:126) [TextureMap.class:?]
at net.minecraft.client.renderer.texture.TextureMap.loadTexture(TextureMap.java:91) [TextureMap.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?]
at net.minecraft.client.renderer.texture.TextureManager.onResourceManagerReload(TextureManager.java:170) [TextureManager.class:?]
at net.minecraft.client.resources.SimpleReloadableResourceManager.notifyReloadListeners(SimpleReloadableResourceManager.java:134) [SimpleReloadableResourceManager.class:?]
at net.minecraft.client.resources.SimpleReloadableResourceManager.reloadResources(SimpleReloadableResourceManager.java:118) [SimpleReloadableResourceManager.class:?]
at net.minecraft.client.Minecraft.refreshResources(Minecraft.java:626) [Minecraft.class:?]
at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:303) [FMLClientHandler.class:?]
at net.minecraft.client.Minecraft.startGame(Minecraft.java:585) [Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:892) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_05]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_05]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_05]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_05]
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:?]
[15:49:14] [Client thread/ERROR]: Using missing texture, unable to load planetsteam :textures/blocks/ CopperOre.png
java.io.FileNotFoundException: planetsteam :textures/blocks/ CopperOre.png
at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:71) ~[SimpleReloadableResourceManager.class:?]
at net.minecraft.client.renderer.texture.TextureMap.loadTextureAtlas(TextureMap.java:126) [TextureMap.class:?]
at net.minecraft.client.renderer.texture.TextureMap.loadTexture(TextureMap.java:91) [TextureMap.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?]
at net.minecraft.client.renderer.texture.TextureManager.onResourceManagerReload(TextureManager.java:170) [TextureManager.class:?]
at net.minecraft.client.resources.SimpleReloadableResourceManager.notifyReloadListeners(SimpleReloadableResourceManager.java:134) [SimpleReloadableResourceManager.class:?]
at net.minecraft.client.resources.SimpleReloadableResourceManager.reloadResources(SimpleReloadableResourceManager.java:118) [SimpleReloadableResourceManager.class:?]
at net.minecraft.client.Minecraft.refreshResources(Minecraft.java:626) [Minecraft.class:?]
at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:303) [FMLClientHandler.class:?]
at net.minecraft.client.Minecraft.startGame(Minecraft.java:585) [Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:892) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_05]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_05]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_05]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_05]
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:?]
[15:49:15] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas
[15:49:15] [Client thread/INFO]: Created: 256x256 textures/items-atlas
Ok, so I am working on the furnace tutorials, and I finished ep.10 last night...
My furnace is working, and the gui shows up just fine, but the animation wont start when the furnace is cooking...
It was suggested to put a system println in the gui class to see if isBurning updates properly. It doesn't :/
when I open the gui, it starts spam printing false, and that doesn't change when the furnace starts. It just keeps printing false, even though the furnace is clearly burning...
My block icon changes just fine, and I get cooked items out of the furnace just fine, so the mechanics are there, just not updating the gui properly.
I dropped a isBurning println check in the gui handler, in the method to update the progress bar. It prints out false once when I open the gui, and then nothing. if I close and re-open the gui while it is still burning, it prints out true once, and stops.
I would assume the progress bar update should be a continuous thing, so I am thinking that is where my problem is.
I have been sifting through the code on GitHub, but I can't find what is different between my code and the source code, beyond the variables I named to suit my mod.
Any suggestions on what I should be looking at, or for would be greatly appreciated.
I can post code up if needed, but I am trying to trouble shoot on my own as much as possible, for the sake of learning just what the hell I am doing
Just looking for some suggestions I could try that maybe I am not thinking of
ETA: I put a isBurning println check in the addCraftingToCrafters method, and it will only print once true or false when the gui is opened. But if I put it in the getAndSendUpdates method, it prints the corrects state continually while the gui is open
both methods are identical to the source code on github.
https://www.youtube.com/user/picturen8
New video every day!
If I place the isBurning println check in here -
if(this.burnTime == 0 && this.canSmelt()) {
this.currentItemBurnTime = this.burnTime = getItemBurnTime(this.slots[1]);
if(this.isBurning()) {
flag1 = true;
if(this.slots[1] != null) {
this.slots[1].stackSize--;
if(this.slots[1].stackSize == 0) {
this.slots[1] = slots[1].getItem().getContainerItem(this.slots[1]);
}
}
}
}
but if I place it outside that part of the method and place it lower down, where it is checking if it can smelt, I get alternating true/false, more heavy on the false.
not sure if this is the way it is supposed to be, but comparing my code to the github code, I don't see anything different in the entire TileEntity class...
So confused.
I might just move on, and see if I can't debug it later, once the rest of the furnace code is done. I have been wrestling with this for close to 24 hours now, with little rest, so I might just need a nap and a break...
I hate bugs :/
ETA: Ok, I fixed it... had to fill out the updateProgressBar method in the container class. That wasn't done in video 10, but the animation was working in that video. I decided to move on to video 11 and noticed it was filled out already, so I did that and BAM arrow and flames working, but not I am having some issues figuring out how to get the flames to animate properly.
I am using the same thing the vanilla furnace does, and need it to disappear from the top down, just like vanilla minecraft furnace. When I do it the way I figured it would work, the whole flames image moves down. Any suggestion on how to get the image to wipe down like it should.
going to keep noodling on it, but math isn't my strong suit...
I am guessing I am going to need to alter the top position at the same time as the bottom postilion, but everything I have tried so far just moves the whole image up or down, and doesn't wipe it away...
nice to see it working though, and I also have to animate one more arrow for my gui, which will be facing the opposite direction, so I imagine I will have some similar tweaking to do on that one as well.
ETA(2): Well, it never fails. I sit and stair at these things, and can't figure it out, then I post a question on here, and find the answer myself nearly immediately. I finally found the vanilla code, and just adapted it for what I needed. Everything seems to be working fine now.
Moving on with the tutorial, and happily going to put this damned furnace behind me :/
Great Tutorial series BTW! Best I have seen on youtube, and I have looked at A LOT of them. Most move too fast, and don't explain enough. I finally feel like I am learning what I am doing while following along, and not just re-typing words from the video to my code....
thanks so much for taking the extreme time and effort it takes to put something like this out!
looking forward to finishing up my mod and getting it released!
just have to put the armor in the code, and what I need for release will be done. I have more I want to learn and add to it, but my original idea is nearly finished, and I want to put it out, and then just add to it as I learn more!
Thanks again for the great videos!
Nate
https://www.youtube.com/user/picturen8
New video every day!
I was still getting errors for the Ingot Masher on a shift click in the inventory after overriding the transferStackInSlot method... they were index out of range errors, but I managed to figure it out, so I'm posting my solution here for anyone who was having the same problem.
so it turns out that the way this method works is gets the number of the slot you clicked on, and then compares it to the inventory slots and the machine slots, and using if statements, determines where a valid slot to dump the itemstack is.
For the Ingot Masher, the machine slot numbers are 0 through 3, and the player inventory slots (inclucding the hotbar) are numbered 4 to 39. These numbers are determined by the way you added slots to the container in the ContainerIngotMasher constructor.
here is my final code for the transferStackInSlot function. I included some comments, so hopefully it's easy to understand.
public ItemStack transferStackInSlot(EntityPlayer player, int slotNum) { ItemStack itemstack = null; Slot slot = (Slot)this.inventorySlots.get(slotNum); if (slot != null && slot.getHasStack()) { //if there is an itemstack in the slot ItemStack itemstack1 = slot.getStack(); //stores the itemstack into a variable itemstack = itemstack1.copy(); if (slotNum >= 0 && slotNum <= 3) { //if the slot is one of the input/output slots(numbers 0 to 3) //mergeItemStack params: (itemstack, startSlot, endSlot+1 , startAtEnd?) if (!this.mergeItemStack(itemstack1, 4, 40, true)) { //tries to merge the stack with one in slots 4-39(player inventory and hotbar) **remember that the endSlot param requires you add 1 to the real value (slot 39 would change to 40) return null; } slot.onSlotChange(itemstack1, itemstack); } else if (slotNum >= 4 && slotNum < 39) { //if the slot is one of the player slots(numbers 4-39) //TODO check if has smelting recipe if (ingotMasher.hasItemPower(itemstack1)) { //if the itemstack is fuel if (!this.mergeItemStack(itemstack1, 2, 3, false)) { //try to store in fuel slot (slot 2) return null; } } else { if (!this.mergeItemStack(itemstack1, 0, 2, false)) { //try to store in inputs **notice no method to try to store in output (you dont want to be putting things there) return null; } } } else if (!this.mergeItemStack(itemstack1, 4, 40, false)) { //failsafe return null; } if (itemstack1.stackSize == 0) { //if there is nothing in the stack slot.putStack((ItemStack) null); //put an empty stack in the slot you clicked } else { slot.onSlotChanged(); } if (itemstack1.stackSize == itemstack.stackSize) { return null; } slot.onPickupFromSlot(player, itemstack1); } return itemstack; }Blocks when stepd on something happens: (like in slime you bounce, in clouds you dont take fall damage, soulsand you get slowed etc)
custom mob AI: like bigger fireballs, call lightning/change weather, charge attacks, special behaviors after taking a certain amount of damage like going into rage mode(which would change the texture if possible) and other special behaviors.
and this is more of a question, is it possible for any one block to drop items while it is being broken and for it to save the damage it took?
i wanna make a couple of generic ore stone that drop different types of ore and if possible for it to save the damage it took while being mined
i think thats all for now n.n
Keep up the good work Neale! =D
I love your Tutorial series and I watch them frequently. They're amazingly easy to follow and provide more insight into the mechanics of the code than any other series I've seen. And yet, I am having trouble with my mob code. More specifically, with my EntityHandler. Its the strangest thing. There are no errors in my code-- I've meticulously accounted for every space and comma in the class-- and even so, I get yellow squiggles with odd warnings. They are the only outstanding anomaly in the entirety of the code. I know this is the reason why my mod crashes when I try to give it a test run. Here is my code.
package com.Paxfer.testmod.handler;
import java.util.Random;
import net.minecraft.entity.EntityList;
import net.minecraft.entity.EnumCreatureType;
import net.minecraft.world.biome.BiomeGenBase;
import com.Paxfer.testmod.TestMod;
import cpw.mods.fml.common.registry.EntityRegistry;
public class EntityHandler {
public static void registerMonsters(Class entityClass, String name) {
int entityId = EntityRegistry.findGlobalUniqueEntityId();
long x = name.hashCode();
Random random = new Random(x);
int mainColor = random.nextInt() * 16777215;
int subColor = random.nextInt() * 16777215;
EntityRegistry.registerGlobalEntityID(entityClass, name, entityId);
EntityRegistry.addSpawn(entityClass, 50, 2, 4, EnumCreatureType.monster, BiomeGenBase.beach, BiomeGenBase.desert, BiomeGenBase.forest);
EntityRegistry.registerModEntity(entityClass, name, entityId, TestMod.instance, 64, 1, true);
EntityList.entityEggs.put(Integer.valueOf(entityId), new EntityList.EntityEggInfo(entityId, mainColor, subColor));
}
}
I am very confused. Is there something I missed? If you could help me out here I would appreciate it greatly. I want to get back to modding!
Thanks for your dedication,
Paxfer
I have tried for 3 days to figure it out and still come up short but I am posting the link for you, nxwhitney and/or anyone else that may know the answer.
http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/modification-development/2135193-textures-arent-loading-in-eclipse
Just wanted to let you know that in my searchings around I found these tutorials of yours. Been going through them (currently starting #7) and I have to say that wow, have I ever learned a lot. And not just how to copy pasta as you mention in the videos. I was actually implementing my own stuff starting right away in the second episode after learning the basics behind creating an item. And all my stuff is named like I want it to be for my own mod. Not just outright copying the demonstrations.
Brilliant job. Thank you so much. I subscribed on YouTube as well.
Additionally, I wanted to ask, - are you planning on perhaps doing something on custom particles? In addition to having the standard flame particle, perhaps colored flames?
Any help is appreciated.
I am guessing I might have to put something in the renderer for this.
Also, if you could tell me how I could make a block spawn in a specific shape in the world gen? I am trying to make a sort of hard stone spawn in spherical shapes in the ground.
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.arcron.mod.Arcron;
import net.arcron.mod.tileentity.TileEntityIngotMasher;
import net.minecraft.block.Block;
import net.minecraft.block.BlockContainer;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.entity.EntityLiving;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.MathHelper;
import net.minecraft.world.World;
public class IngotMasher extends BlockContainer{
public IngotMasher(Material material) {
super(material);
this.setHardness(2.0F);
this.setResistance(5.0F);
this.setBlockBounds(0F, 0F, 0F, 1F, 1F, 1F);
this.setCreativeTab(Arcron.arcronTab);
}
/*public void onBlockAdded(World world, int x, int y, int z){
super.onBlockAdded(world, x, y, z);
this.setDefaultDirection(world, x, y, z);
}*/
public void onBlockPlacedBy(World p_149689_1_, int p_149689_2_, int p_149689_3_, int p_149689_4_, EntityLivingBase p_149689_5_, ItemStack p_149689_6_)
{
int l = MathHelper.floor_double((double)(p_149689_5_.rotationYaw * 4.0F / 360.0F) + 0.5D) & 4;
int i1 = p_149689_1_.getBlockMetadata(p_149689_2_, p_149689_3_, p_149689_4_) & 4;
if (l == 0)
{
p_149689_1_.setBlockMetadataWithNotify(p_149689_2_, p_149689_3_, p_149689_4_, 2 | i1, 1);
}
if (l == 1)
{
p_149689_1_.setBlockMetadataWithNotify(p_149689_2_, p_149689_3_, p_149689_4_, 1 | i1, 2);
}
if (l == 2)
{
p_149689_1_.setBlockMetadataWithNotify(p_149689_2_, p_149689_3_, p_149689_4_, 3 | i1, 3);
}
if (l == 3)
{
p_149689_1_.setBlockMetadataWithNotify(p_149689_2_, p_149689_3_, p_149689_4_, 0 | i1, 4);
}
}
/*private void setDefaultDirection(World world, int x, int y, int z) {
if(world.isRemote){
Block b1 = world.getBlock(x, y, z - 1);
Block b2 = world.getBlock(x, y, z + 1);
Block b3 = world.getBlock(x - 1, y, z);
Block b4 = world.getBlock(x + 1, y, z);
byte b0 = 3;
if(b1.func_149730_j() && !b2.func_149730_j()){
b0 = 3;
}
if(b2.func_149730_j() && !b1.func_149730_j()){
b0 = 2;
}
if(b3.func_149730_j() && !b4.func_149730_j()){
b0 = 5;
}
if(b4.func_149730_j() && !b3.func_149730_j()){
b0 = 4;
}
world.setBlockMetadataWithNotify(x, y, z, b0, 2);
}
}*/
public int getRenderType() {
return-1;
}
public boolean isOpaqueCube(){
return false;
}
public boolean renderAsNormalBlock(){
return false;
}
@Override
public TileEntity createNewTileEntity(World var1, int var2) {
return new TileEntityIngotMasher();
}
@SideOnly(Side.CLIENT)
public void registerBlockIcons(IIconRegister iconRegister) {
this.blockIcon = iconRegister.registerIcon(Arcron.modid + ":" + this.getUnlocalizedName().substring(5));
}
}