Jump to content

Bomb787

Members
  • Posts

    7
  • Joined

  • Last visited

Bomb787's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Whenever I try to play on my server it occasionally kicks me because a packet was larger than expected. It's getting really annoying to have to restart it every time and I want to fix it. Latest log: https://pastebin.com/1EeqBHag I had to delete the stuff that didn't have to do with the server because pastebin didn't let me have one that big. The debug log didn't have anything to do with the server.
  2. You have the option to export as either a flans mod or generic java model
  3. Toolbox 2.0 is a pretty good program that we use for Flans Mod
  4. What would be a good tutorial for me to follow? 1.7.10 is the only version I've made a mod for.
  5. I'm making a mod that adds decorations and I can't seem to get the textures working. When I hold the item I in my hand it shows up as a black and purple square in the middle of my screen with "vmm:LH_new#inventory" in front. Here is my code: Common Proxy: Client Proxy: RegistryHandler: IHasModel: Item Base: ItemInit: Am I doing something wrong? I'm following this as the tutorial:
  6. I'm making a mod focused on 3d models but I can't figure out how to set the model rotation when placed. Block: package com.bomb787.modelingmod.Blocks; import com.bomb787.modelingmod.rendering.tiles.TileEntityTable; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.block.BlockContainer; import net.minecraft.block.material.Material; import net.minecraft.entity.EntityLivingBase; import net.minecraft.init.Blocks; import net.minecraft.item.ItemStack; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.AxisAlignedBB; import net.minecraft.util.IIcon; import net.minecraft.util.MathHelper; import net.minecraft.world.World; public class BlockTable extends BlockContainer{ public BlockTable() { super(Material.wood); this.setBlockName("table"); this.setResistance(1.0F); this.setHardness(1.0F); } @Override public int getRenderType() { return -1; } public boolean isOpaqueCube() { return false; } public boolean isNormalCube() { return false; } public boolean renderAsNormalBlock() { return false; } @SideOnly(Side.CLIENT) public IIcon getIcon(int p_149691_1_, int p_149691_2_) { return Blocks.planks.getBlockTextureFromSide(p_149691_1_); } @Override public TileEntity createNewTileEntity(World world, int id) { return new TileEntityTable(); } } Render Class: package com.bomb787.modelingmod.rendering.tileentities; import org.lwjgl.opengl.GL11; import com.bomb787.modelingmod.ModelingMod; import com.bomb787.modelingmod.models.ModelTable; import com.bomb787.modelingmod.rendering.tiles.TileEntityTable; import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer; import net.minecraft.entity.Entity; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.ResourceLocation; import net.minecraft.world.World; public class RenderTable extends TileEntitySpecialRenderer{ private ModelTable model; private ResourceLocation texture = new ResourceLocation("modelingmod:textures/blocks/Table.png"); public RenderTable() { this.model = new ModelTable(); } public void renderTileEntityAt(TileEntity tile, double x, double y, double z, float scale) { GL11.glPushMatrix(); GL11.glTranslated(x+1, y, z-0.5); GL11.glRotated(180, 0, 0, 1); this.bindTexture(texture); this.model.render((Entity)null, 0, -0.1f, 0, 0, 0, 0.0625f); GL11.glPopMatrix(); } } Tile Entity Class: package com.bomb787.modelingmod.rendering.tiles; import cpw.mods.fml.common.registry.GameRegistry; import net.minecraft.tileentity.TileEntity; public class TileEntityTable extends TileEntity{ } How do I make it rotate?
×
×
  • Create New...

Important Information

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