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

oreo

Members
  • Posts

    12
  • Joined

  • Last visited

Recent Profile Visitors

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

oreo's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. I already had the shade tags, still didn't work It took me a long time to figure it out, but I finally managed to get it to work with your method. You were a huge help, thank you!
  2. I have a previous post explaining what I want to accomplish here: And as of now it seems like using a TileEntitySpecialRenderer is what I need to draw the model with no light shading.
  3. Use the player.getPitchYaw(); player.getPosition(); properties along with the entity.getPosition(); vector and do some quick trig to detect if the entity is infront of the camera's view? I probably wouldn't be much help with the trig part but I know it's possible.
  4. 2 questions that I'd really like to know: How do I tell minecraft to render with my TileEntitySpecialRenderer instance? How do I link my TileEntitySpecialRenderer with my TileEntity? This has been bugging my for days. Just a description or a link that could help me understand this better would be really appreciated. Thanks!
  5. The renderTileEntityFast function has an argument net.minecraft.client.renderer.BufferBuilder buffer Is this what I need to use? I saw something online that named a BufferBuilder type as VertexBuffer.
  6. (Bump) I did a little bit of searching and it seems like the last option is a TileEntitySpecialRenderer class tessellator (I barely even know what that is). Does anyone have any input on this? Is this wrong, or is there a better way? Also, can anyone give some help on how to link the tessellator to the block? I have it registered but I don't know how to assign the block to execute this renderTileEntity function. Plus I would need some help on actually rendering the block with GlStateManager or whatever I'm supposed to use. I would really appreciate any sort of input! I've been stressing over this simple feature for a whole day. Thanks! ClientRegistry.bindTileEntitySpecialRenderer(TileEntity.class, new RenderGlow()); @SideOnly(Side.CLIENT) public class RenderGlow extends TileEntitySpecialRenderer<TileEntity> { @Override public void renderTileEntityFast(TileEntity te, double x, double y, double z, float partialTicks, int destroyStage, float partial, net.minecraft.client.renderer.BufferBuilder buffer) { Tessellator tessellator = Tessellator.getInstance(); bindTexture(TextureMap.LOCATION_BLOCKS_TEXTURE); //I don't know what to put in here :( } }
  7. In the past I've experienced this by mistake, but now I want it to happen but I can't get it to work. Here's what I have: And here's what I want: I've tried so many different things and I've looked through google for hours, but I just can't get it to work. If anyone has advice for helping me out, I would really appreciate it. Thanks
  8. Besides the vanilla furnace, is there at least a way to check if an ItemStack is just a bottle of water?
  9. Sorry about that, I actually forgot that was my class, lol. public static void newFurnace(ItemStack output, ItemStack input, float exp) { FurnaceRecipes.instance().addSmeltingRecipe(output, input, exp); }
  10. You could probably make it extend BlockFurnace and override any methods that you want to change from the vanilla furnace such as setDefaultFacing to disable directional placement, onBlockActivated to change what GUI you want to display, and of course other methods like getItem to make it drop your furnace instead of the vanilla furnace. But my best advice would be exploring net.minecraft.block.BlockFurnace to get a feel for how it works. I know this doesn't answer everything but I hope it helps you out.
  11. I'm having trouble with making a smelting recipe using a water bottle. Since a water bottle is not it's own item but rather a potion, I'm having trouble specifying that I only want to be able to smelt a bottle of water, and not any other potion. RecipeHelper.newFurnace( new ItemStack(Items.POTIONITEM), new ItemStack(ItemsMain.STERILE_WATER), 0.1F); This is my best working code as of now, but it's not what I want. Using this code, I'm still able to smelt any potion and receive STERILE_WATER, but I only want to be able to smelt a bottle of water. I haven't found anything useful online. Thanks for any help, it's very appreciated.
×
×
  • Create New...

Important Information

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