Jump to content

Fox_McCloud

Members
  • Posts

    7
  • Joined

  • Last visited

Everything posted by Fox_McCloud

  1. Yeah frame, sorry for that mistake I will look into that, thank you
  2. Hi guys, Is there a way to render an ItemStack with the model system? Something like when the ItemStack (or more precisely, a Sword) is in the Inventory, its rendered on top of the block model. (I am using a TileEntity, and it has its own .obj model, and it renders fine) I also tried out the submodel definition in the Forge BlockState json, but the problem here is, I dont know exactly which Sword is present in the Inventory and it can be change to another one. I could use a TESR but I dont really want to because TESR a rendering every tick and there is no need to render an solid model every tick.
  3. 1) You don't need a TESR to render tile entities. You can use baked models just fine 2) If you ARE using a TESR, you can render one in the inventory by using a fake TE that supplies default data to the renderer. The TileEntity renders fine(I am not using a TESR for this, its an obj model that is loaded with the model system). I want to render an ItemStack ontop of the TileEntity and the ItemStack is stored in the Inventory of the TileEntity. (Properly I wasnt too clear on this point, sorry for that)
  4. The TileEntity is using an obj to render its model. I am searching for a way to render the ItemStack in its Inventory.
  5. 1. well thats then kinda bad, because my TileEntity is using an obj model 2. Will take a look in there but will proberly stick to the TESR then 3. Then its just as i thought, wasnt sure because its still calling the render each frame. I was thinking of using it because its kinda bad to use the TESR for rendering the ItemStack, when its static, and moving around etc.
  6. Hi there, got some questions about rendering: 1. I want to render an ItemStack on top of my TileEntity, where the ItemStack is also stored. As far as i could find out, the best way is with IBackedModel and not with a TESR. I kinda know how to get the model for the ItemStack, but i dont understand where to exactly put the code. 2. Besides an TESR, are there others methods to make the rendered ItemStack move. (like floating above the TileEntity, and asuming the ItemStack is rendered as a IBackedModel) 3. When I have an TESR, in the time where it does nothing (for example code that only is used in certain situations), how "bad" in term of performance is it?
  7. Hi Guys Right now I am trying to update my Mod to 1.8. Everything fine, except for my stained glass slabs. I read the tuts for slab and meta blocks, and the slabs are working, except for the textures and the slabs wont stack. I think the error is somewhere in the blockState and/or meta. Comment to meta: I know that the max of meta is 16 (0 to 15). So I need two instances. I am not sure if the way to handle the meta is correct (i think i have to do it different but all slabs are in the inventory and the names are also correct.) And beware of my code, it may be a bit messy BaseMetaSlab.class https://github.com/Fox-Mc-Cloud/Mystic-Water/blob/master/src/main/java/mysticwater/blocks/SingleMetaSlab.java SingleMetaSlab.class https://github.com/Fox-Mc-Cloud/Mystic-Water/blob/master/src/main/java/mysticwater/blocks/SingleMetaSlab.java DoubleMetaSlab.class https://github.com/Fox-Mc-Cloud/Mystic-Water/blob/master/src/main/java/mysticwater/blocks/DoubleMetaSlab.java EnumHandler.class https://github.com/Fox-Mc-Cloud/Mystic-Water/blob/master/src/main/java/mysticwater/core/handler/EnumHandler.java ModBlocks.class https://github.com/Fox-Mc-Cloud/Mystic-Water/blob/master/src/main/java/mysticwater/init/ModBlocks.java ItemBlockStainedGlassSlab.class https://github.com/Fox-Mc-Cloud/Mystic-Water/blob/master/src/main/java/mysticwater/items/block/ItemBlockStainedGlassSlab.java ItemBlockStainedGlassSlab2.class https://github.com/Fox-Mc-Cloud/Mystic-Water/blob/master/src/main/java/mysticwater/items/block/ItemBlockStainedGlassSlab2.java Models.class https://github.com/Fox-Mc-Cloud/Mystic-Water/blob/master/src/main/java/mysticwater/init/Models.java
×
×
  • Create New...

Important Information

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