Everything posted by f1rSt1kChannel
-
[1.6.4] maxStackSize for Block Help?
Create custom ItemBlock class.
-
[1.6.x] Disabling a mod through a config file.
public void init(FMLInitializationEvent e){ if(Config.activateMod){ ModItems.register(); ... } }
-
[SOLVED]Making Mob Bigger
Increase in preRenderCallback method. public class FCRenderLiving extends RenderLiving{ public FCRenderLiving(ModelBase model, float shadowSize){ super(model, shadowSize); } protected void preRenderCallback(EntityLivingBase entity, float f){ GL11.glScalef(2F, 2F, 2F); } protected ResourceLocation getEntityTexture(Entity entity){ return null; } }
-
Help with random skins
Wolf, cat?
-
Custom anvil
Write instead BlockAncientAnvil extends Block.. BlockAncientAnvil extends BlockAnvil
-
How do you close a GuiScreen? [SOLVED]
currentScreen = null;
-
Damaging an item after using in crafting
Here is my github: https://github.com/f1rSt1k/f1rSt1kCraft/blob/master/f1rSt1k/items/ItemsContainerItem.java And recipe: GameRegistry.addShapelessRecipe(new ItemStack(foodDough, 2, 0), new Object[] {new ItemStack(Items.itemMortarWithPestle, 1, OreDictionary.WILDCARD_VALUE), Item.wheat});
-
Making Vanilla Mobs drop Custom Items [1.5.2]
check damage type: if(event.source == event.source.inFire || event.source == event.source.onFire || event.source == event.source.lava){ if (event.entityLiving instanceof EntityZombie || event.entityLiving instanceof EntityPigZombie) { if (RandomUtil.randomPercent() < 0.25D) { event.entityLiving.dropItem(Foods.foodCookedFlesh.itemID, RandomUtil.getRandom().nextInt(2) + 1); } } }
-
Inaccurate lightning strikes?
My sword: public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer) { float f = 1.0F; float f1 = par3EntityPlayer.prevRotationPitch + (par3EntityPlayer.rotationPitch - par3EntityPlayer.prevRotationPitch) * f; float f2 = par3EntityPlayer.prevRotationYaw + (par3EntityPlayer.rotationYaw - par3EntityPlayer.prevRotationYaw) * f; double d = par3EntityPlayer.prevPosX + (par3EntityPlayer.posX - par3EntityPlayer.prevPosX) * (double)f; double d1 = (par3EntityPlayer.prevPosY + (par3EntityPlayer.posY - par3EntityPlayer.prevPosY) * (double)f + 1.6200000000000001D) - (double)par3EntityPlayer.yOffset; double d2 = par3EntityPlayer.prevPosZ + (par3EntityPlayer.posZ - par3EntityPlayer.prevPosZ) * (double)f; Vec3 vec3d = Vec3.createVectorHelper(d, d1, d2); float f3 = MathHelper.cos(-f2 * 0.01745329F - 3.141593F); float f4 = MathHelper.sin(-f2 * 0.01745329F - 3.141593F); float f5 = -MathHelper.cos(-f1 * 0.01745329F); float f6 = MathHelper.sin(-f1 * 0.01745329F); float f7 = f4 * f5; float f8 = f6; float f9 = f3 * f5; double d3 = 5000D; Vec3 vec3d1 = vec3d.addVector((double)f7 * d3, (double)f8 * d3, (double)f9 * d3); MovingObjectPosition movingobjectposition = par2World.rayTraceBlocks_do_do(vec3d, vec3d1, false, true); if (movingobjectposition == null){ return par1ItemStack; } if (movingobjectposition.typeOfHit == EnumMovingObjectType.TILE){ int i = movingobjectposition.blockX; int j = movingobjectposition.blockY; int k = movingobjectposition.blockZ; for(int m = 0; m < 5; m++){ par2World.spawnEntityInWorld(new EntityLightningBolt(par2World, i, j, k)); } par1ItemStack.damageItem(20, par3EntityPlayer); } return par1ItemStack; }
-
[SOLVED] Custom Music in Custom Dimension WONT WORK !!!
Full code, please!
IPS spam blocked by CleanTalk.