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

SackCastellon

Members
  • Posts

    180
  • Joined

  • Last visited

Converted

  • Gender
    Male
  • Location
    Spain
  • Personal Text
    Modding Minecraft on my free time!

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

SackCastellon's Achievements

Creeper Killer

Creeper Killer (4/8)

21

Reputation

  1. Oh, that's it. Looks like I could have searched a bit better. Thank you very much.
  2. Hi, I am wondering how can I register an ItemColorHandler for may custom Item. I have seen that the Item.getColorFromItemstack(ItemStack stack, int index) in 1.8, has been moved to ItemColors.getColorFromItemstack(ItemStack stack, int tintIndex) in 1.9, so I have been looking in the code for some hook but I found any. So I would like to know whether there is a way to do it or not. Thanks, SackCastellon.
  3. Take a look about how the glass block is rendered (json, texture and class). It should help you.
  4. Ok... excuse me if i'm very ignorant but, how do I get an ISmartItemModel as the ibakedmodel variable to use the handleItemState(stack) later?? Because all the ibakedmodel are IFlexibleBakedModel (I hope you understood me) <<net.minecraft.client.renderer.ItemModelMesher>> public IBakedModel getItemModel(ItemStack stack) { Item item = stack.getItem(); IBakedModel ibakedmodel = this.getItemModel(item, this.getMetadata(stack)); if (ibakedmodel == null) { ItemMeshDefinition itemmeshdefinition = (ItemMeshDefinition)this.shapers.get(item); if (itemmeshdefinition != null) { ibakedmodel = this.modelManager.getModel(itemmeshdefinition.getModelLocation(stack)); } } if(ibakedmodel instanceof net.minecraftforge.client.model.ISmartItemModel) { ibakedmodel = ((net.minecraftforge.client.model.ISmartItemModel)ibakedmodel).handleItemState(stack); } if (ibakedmodel == null) { ibakedmodel = this.modelManager.getMissingModel(); } return ibakedmodel; }
  5. Hi, i have a bunch of item variables based on NBT Tags, so the same item has got more than 100 variables, and its not cool to create 100 json files, which are completely identical with the difference of the texture location, so i was wondering if is there any way to set dynamically the location of the texture. Something like: public ResourceLocation getTextureLocation(ItemStack stack, int layer) { // You stuff return new ResourceLocation("modid:itemVariable"); } I hope I explained correctly Thanks in advance for helping.
  6. Ok, I have decide to return a texture of the soup but without the bowl so it can work with all the soup variants
  7. I'm creating wood based item variations (only wooden items), for example: Stick --> Oak Stick, Spruce Stick, ... , Acacia Stick; and I also have thought about adding support for other mods by the way that if we only consider Vanilla, Extrabiomes XL and Biomes o' Plenty with their respective wood we'd have about 30 different wood types, which implies 30 sticks, 30 bowls, etc. But the greatness comes with the tools, because on them what variates is the head and the handle, so only with the Swords we already have 30*30=900 variations!! now apply it to the rest of tools ;D
  8. Hi, I have created a bunch of Item variants based on NBT Tags, i have also created an "ItemSoup" item, which generates particles from the item texture on being eaten, this far so good, but the real problem is that on the way the texture is requested, the ItemStack where the NBT Tags are stored, is reseted. Basically what minecraft does to get the texture of an item to later generate particles is, oversimplified, the following: "ItemSoup" is used --{ onUpdate() }--> ItemStack w/ NBT Tag --{ getIdFromItem(ItemStack.getItem()), getItemDamage() }--> ID, Damage --{ getItemFromId() }--> Item, Damage --{ new ItemStack(Item, 0, Damage) }--> ItemStack w/o NBT So it erases all the possible information stored on the NBT Tags, what from my point of view is no sense. Finally my question is: Is there any workaround to get what I'm looking for? or must I create a pull request? Thank in advance for helping
  9. Ok, and yes i know folders can have hyphens Now Minecraft seems to find the .json, as nothing strange is shown on the console, but it's how it looks inside a world: https://dl.dropboxusercontent.com/u/184200482/img/2014-12-07_21.38.23.png[/img]
  10. But Minecraft is looking for a model at a folder named as my mod's id (which contains a hyphen): java.io.FileNotFoundException: skc-craftablehorsearmor:models/item/Knot.json Even when i am specifying another folder location: Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(CHAItems.Knot, 0, new ModelResourceLocation("craftablehorsearmor:Knot", "inventory"));
  11. Then I'll need to change my mod's id, as far as package names cannot contain hyphens, right?
  12. I am getting this error every time i run Minecraft (on Eclipse): [20:13:52] [main/INFO] [GradleStart]: userProperties: {} [20:13:52] [main/INFO] [GradleStart]: assetIndex: 1.8 [20:13:52] [main/INFO] [GradleStart]: accessToken: FML [20:13:52] [main/INFO] [GradleStart]: Extra: [] [20:13:52] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/Juanjo hijo/.gradle/caches/minecraft/assets, --assetIndex, 1.8, --accessToken, {REDACTED}, --version, 1.8, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.GradleStartCommon$GradleStartTweaker] [20:13:52] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [20:13:52] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [20:13:52] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.GradleStartCommon$GradleStartTweaker [20:13:52] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker [20:13:52] [main/INFO] [FML]: Forge Mod Loader version 8.0.12.1252 for Minecraft 1.8 loading [20:13:52] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_25, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jre1.8.0_25 [20:13:52] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation [20:13:52] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.GradleStartCommon$GradleStartTweaker [20:13:52] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin [20:13:52] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin [20:13:52] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [20:13:52] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [20:13:52] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [20:13:52] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [20:13:52] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [20:13:52] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work! [20:13:55] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing [20:13:55] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [20:13:55] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [20:13:56] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker [20:13:56] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker [20:13:56] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main} [20:13:57] [Client thread/INFO]: Setting user: Player318 [20:14:04] [Client thread/INFO]: LWJGL Version: 2.9.1 [20:14:06] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization [20:14:06] [Client thread/INFO] [FML]: MinecraftForge v11.14.0.1252 Initialized [20:14:06] [Client thread/INFO] [FML]: Replaced 215 ore recipies [20:14:06] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization [20:14:06] [Client thread/INFO] [FML]: Searching C:\Modding\Github\CraftableHorseArmor\mods for mods [20:14:12] [Client thread/INFO] [FML]: Forge Mod Loader has identified 5 mods to load [20:14:13] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, SKC-CraftableHorseArmor, SKC-Core] at CLIENT [20:14:13] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, SKC-CraftableHorseArmor, SKC-Core] at SERVER [20:14:14] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Craftable Horse Armor, FMLFileResourcePack:SKC Core [20:14:14] [Client thread/INFO] [FML]: Processing ObjectHolder annotations [20:14:14] [Client thread/INFO] [FML]: Found 384 ObjectHolder annotations [20:14:14] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0 [20:14:14] [Client thread/INFO] [sKC Logger]: [sKC-Core] Loading configuration file [20:14:14] [Client thread/INFO] [sKC Logger]: [sKC-Core] Configuration file successfully loaded [20:14:15] [Client thread/INFO] [sKC Logger]: [sKC-CraftableHorseArmor] Loading configuration file [20:14:15] [Client thread/INFO] [sKC Logger]: [sKC-CraftableHorseArmor] Configuration file successfully loaded [20:14:16] [Client thread/INFO] [sKC Logger]: [sKC-CraftableHorseArmor] Loading items [20:14:16] [Client thread/INFO] [sKC Logger]: [sKC-CraftableHorseArmor] Items successfully loaded [20:14:16] [Client thread/INFO] [FML]: Applying holder lookups [20:14:16] [Client thread/INFO] [FML]: Holder lookups applied [20:14:16] [sound Library Loader/INFO]: Starting up SoundSystem... [20:14:17] [Thread-7/INFO]: Initializing LWJGL OpenAL [20:14:17] [Thread-7/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [20:14:17] [Thread-7/INFO]: OpenAL initialized. [20:14:17] [sound Library Loader/INFO]: Sound engine started [20:14:20] [Client thread/WARN]: Unable to load item model: 'skc-craftablehorsearmor:item/Knot' for item: 'skc-craftablehorsearmor:Knot' java.io.FileNotFoundException: skc-craftablehorsearmor:models/item/Knot.json at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:71) ~[simpleReloadableResourceManager.class:?] at net.minecraft.client.resources.model.ModelBakery.loadModel(ModelBakery.java:260) ~[ModelBakery.class:?] at net.minecraft.client.resources.model.ModelBakery.loadItemModels(ModelBakery.java:307) [ModelBakery.class:?] at net.minecraft.client.resources.model.ModelBakery.loadVariantItemModels(ModelBakery.java:105) [ModelBakery.class:?] at net.minecraft.client.resources.model.ModelBakery.setupModelRegistry(ModelBakery.java:88) [ModelBakery.class:?] at net.minecraft.client.resources.model.ModelManager.onResourceManagerReload(ModelManager.java:29) [ModelManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.registerReloadListener(SimpleReloadableResourceManager.java:124) [simpleReloadableResourceManager.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:470) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:325) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:117) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_25] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_25] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_25] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_25] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:78) [start/:?] at GradleStart.main(GradleStart.java:45) [start/:?] [20:14:21] [Client thread/INFO]: Created: 512x512 textures-atlas [20:14:22] [Client thread/WARN]: Missing model for: skc-craftablehorsearmor:item/Knot [20:14:23] [Client thread/INFO] [sKC Logger]: [sKC-CraftableHorseArmor] Loading crafting recipes [20:14:23] [Client thread/INFO] [sKC Logger]: [sKC-CraftableHorseArmor] Crafting recipes successfully loaded [20:14:23] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 5 mods [20:14:23] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Craftable Horse Armor, FMLFileResourcePack:SKC Core [20:14:23] [Client thread/INFO]: SoundSystem shutting down... [20:14:24] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com [20:14:24] [sound Library Loader/INFO]: Starting up SoundSystem... [20:14:24] [Thread-9/INFO]: Initializing LWJGL OpenAL [20:14:24] [Thread-9/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [20:14:24] [Thread-9/INFO]: OpenAL initialized. [20:14:24] [sound Library Loader/INFO]: Sound engine started [20:14:27] [Client thread/WARN]: Unable to load item model: 'skc-craftablehorsearmor:item/Knot' for item: 'skc-craftablehorsearmor:Knot' java.io.FileNotFoundException: skc-craftablehorsearmor:models/item/Knot.json at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:71) ~[simpleReloadableResourceManager.class:?] at net.minecraft.client.resources.model.ModelBakery.loadModel(ModelBakery.java:260) ~[ModelBakery.class:?] at net.minecraft.client.resources.model.ModelBakery.loadItemModels(ModelBakery.java:307) [ModelBakery.class:?] at net.minecraft.client.resources.model.ModelBakery.loadVariantItemModels(ModelBakery.java:105) [ModelBakery.class:?] at net.minecraft.client.resources.model.ModelBakery.setupModelRegistry(ModelBakery.java:88) [ModelBakery.class:?] at net.minecraft.client.resources.model.ModelManager.onResourceManagerReload(ModelManager.java:29) [ModelManager.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:727) [Minecraft.class:?] at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:298) [FMLClientHandler.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:484) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:325) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:117) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_25] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_25] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_25] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_25] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:78) [start/:?] at GradleStart.main(GradleStart.java:45) [start/:?] [20:14:27] [Client thread/INFO]: Created: 512x512 textures-atlas [20:14:27] [Client thread/WARN]: Missing model for: skc-craftablehorsearmor:item/Knot [20:15:19] [Client thread/INFO]: Stopping! [20:15:19] [Client thread/INFO]: SoundSystem shutting down... [20:15:19] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com This is my init() method: @Mod.EventHandler public void init(FMLInitializationEvent event) { FMLCommonHandler.instance().bus().register(new CHAEvents.init()); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(CHAItems.Knot, 0, new ModelResourceLocation("craftablehorsearmor:Knot", "inventory")); CHARecipeLoader.init(); } The item is loaded on the preInit() method. Also NOTICE that my mod id is: public static final String ID = "SKC-CraftableHorseArmor"; This is the .json file: { "parent": "builtin/generated", "textures": { "layer0": "craftablehorsearmor:items/Knot" }, "display": { "thirdperson": { "rotation": [ -90, 0, 0 ], "translation": [ 0, 1, -3 ], "scale": [ 0.55, 0.55, 0.55 ] }, "firstperson": { "rotation": [ 0, -135, 25 ], "translation": [ 0, 4, 2 ], "scale": [ 1.7, 1.7, 1.7 ] } } } And this is where the .json file is located: https://dl.dropboxusercontent.com/u/184200482/img/Captura%20de%20pantalla%202014-12-07%2020.20.20.png[/img] Thanks in advance for helping
×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.