Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

f1rSt1kChannel

Members
  • Joined

  • Last visited

Everything posted by f1rSt1kChannel

  1. Create custom ItemBlock class.
  2. public void init(FMLInitializationEvent e){ if(Config.activateMod){ ModItems.register(); ... } }
  3. 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; } }
  4. Write instead BlockAncientAnvil extends Block.. BlockAncientAnvil extends BlockAnvil
  5. 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});
  6. 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); } } }
  7. 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; }

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.