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

SackCastellon

Members
  • Content Count

    180
  • Joined

  • Last visited

Community Reputation

21 Excellent

About SackCastellon

  • Rank
    Creeper Killer

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.

  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 = (ItemMeshD
  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()
  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.grad
×
×
  • Create New...

Important Information

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