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.

terraya

Members
  • Joined

  • Last visited

Everything posted by terraya

  1. Hello @ all , after using my skill for example: public class IceBall extends EntityThrowable { public IceBall(World par1World) { super(par1World); } public IceBall(World par1World, EntityPlayer par3EntityPlayer) { super(par1World, par3EntityPlayer); } public IceBall(World par1World, double par2, double par4, double par6) { super(par1World, par2, par4, par6); } public int ticks = 20; public void onEntityUpdate() { if (this.ticks <= 0) { this.ticks = 20; setDead(); } else { this.ticks -= 1; } } protected void onImpact(MovingObjectPosition par1MovingObjectPosition) { if (par1MovingObjectPosition.entityHit != null) { double x = 0.0D; double y = 0.0D; double z = 0.0D; EntityLivingBase living = (EntityLivingBase)par1MovingObjectPosition.entityHit; living.addPotionEffect(new PotionEffect(Potion.moveSlowdown.getId(), 300, 3000)); x = par1MovingObjectPosition.entityHit.posX; y = par1MovingObjectPosition.entityHit.posY; z = par1MovingObjectPosition.entityHit.posZ; worldObj.setBlockState(new BlockPos(x , y + 2, z), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x + 1, y + 2, z), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x - 1, y + 2, z), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x , y + 2, z + 1), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x , y + 2, z - 1), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x + 1, y + 2, z + 1), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x + 1, y + 2, z - 1), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x - 1, y + 2, z + 1), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x - 1, y + 2, z - 1), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x + 2, y + 1, z), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x + 2, y , z), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x - 2, y + 1, z), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x - 2, y , z), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x , y + 1, z + 2), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x , y , z + 2), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x , y + 1, z - 2), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x , y , z - 2), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x + 2, y + 1, z + 1), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x + 2, y , z + 1), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x + 2, y + 1, z - 1), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x + 2, y , z - 1), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x - 1, y + 1, z + 2), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x - 1, y , z + 2), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x + 1, y + 1, z + 2), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x + 1, y , z + 2), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x - 2, y + 1, z + 1), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x - 2, y , z + 1), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x - 2, y + 1, z - 1), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x - 2, y , z - 1), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x - 1, y + 1, z - 2), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x - 1, y , z - 2), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x + 1, y + 1, z - 2), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x + 1, y , z - 2), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x + 2, y + 1, z + 2), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x + 2, y , z + 2), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x - 2, y + 1, z + 2), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x - 2, y , z + 2), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x + 2, y + 1, z- 2), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x + 2, y , z - 2), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x - 2, y + 1, z -2), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x - 2, y , z - 2), Blocks.packed_ice.getDefaultState()); par1MovingObjectPosition.entityHit.attackEntityFrom(DamageSource.causeThrownDamage(this, getThrower()), 5.0F); } if (!this.worldObj.isRemote) { int x = par1MovingObjectPosition.getBlockPos().getX(); int y = par1MovingObjectPosition.getBlockPos().getY(); int z = par1MovingObjectPosition.getBlockPos().getZ(); worldObj.setBlockState(new BlockPos(x , y + 2, z), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x + 1, y + 2, z), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x - 1, y + 2, z), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x , y + 2, z + 1), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x , y + 2, z - 1), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x + 1, y + 2, z + 1), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x + 1, y + 2, z - 1), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x - 1, y + 2, z + 1), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x - 1, y + 2, z - 1), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x + 2, y + 1, z), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x + 2, y, z), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x - 2, y + 1, z), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x - 2, y, z), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x , y + 1, z + 2), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x , y, z + 2), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x , y + 1, z - 2), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x , y, z - 2), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x + 2, y + 1, z + 1), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x + 2, y, z + 1), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x + 2, y + 1, z - 1), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x + 2, y, z - 1), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x - 1, y + 1, z + 2), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x - 1, y, z + 2), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x + 1, y + 1, z + 2), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x + 1, y, z + 2), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x - 2, y + 1, z + 1), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x - 2, y, z + 1), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x - 2, y + 1, z - 1), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x - 2, y, z - 1), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x - 1, y + 1, z - 2), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x - 1, y, z - 2), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x + 1, y + 1, z - 2), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x + 1, y, z - 2), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x + 2, y + 1, z + 2), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x + 2, y, z + 2), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x - 2, y + 1, z + 2), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x - 2, y, z + 2), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x + 2, y + 1, z - 2), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x + 2, y, z - 2), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x - 2, y + 1, z - 2), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x - 2, y, z - 2), Blocks.packed_ice.getDefaultState()); setDead(); } } } when an "Entity" gets into the blocks ... the game crashes and the error log says "Entity Ticking" ... any idea?
  2. Hello Dear Forum, i did a custom "lets say Ball" and i use it as a "Block", the only thing is, how can i add a custom texture on it/make it bigger? so how can i apply this here: { "parent": "builtin/generated", "textures": { "layer0": "blockupdate:item/IceBlock1" }, "display": { "thirdperson": { "rotation": [ -90, 0, 0 ], "translation": [ 0, 1, -3 ], "scale": [ 0.55, 0.55, 0.55 ] }, "firstperson": { "rotation": [ 0, -135, 25 ], "translation": [ 0, 4, 2 ], "scale": [ 1.7, 1.7, 1.7 ] } } } to this here: { "textures": { "0": "blockupdate:block/planks1" }, "elements": [ { "name": "Cube", "from": [ 7.0, 0.0, 7.0 ], "to": [ 9.0, 1.0, 9.0 ], "faces": { "north": { "texture": "#-1", "uv": [ 0.0, 0.0, 2.0, 1.0 ] }, "east": { "texture": "#-1", "uv": [ 0.0, 0.0, 2.0, 1.0 ] }, "south": { "texture": "#-1", "uv": [ 0.0, 0.0, 2.0, 1.0 ] }, "west": { "texture": "#-1", "uv": [ 0.0, 0.0, 2.0, 1.0 ] }, "up": { "texture": "#-1", "uv": [ 0.0, 0.0, 2.0, 2.0 ] }, "down": { "texture": "#-1", "uv": [ 0.0, 0.0, 2.0, 2.0 ] } } }, { "name": "Cube", "from": [ 6.0, 1.0, 6.0 ], "to": [ 10.0, 2.0, 10.0 ], "faces": { "north": { "texture": "#-1", "uv": [ 0.0, 0.0, 4.0, 1.0 ] }, "east": { "texture": "#-1", "uv": [ 0.0, 0.0, 4.0, 1.0 ] }, "south": { "texture": "#-1", "uv": [ 0.0, 0.0, 4.0, 1.0 ] }, "west": { "texture": "#-1", "uv": [ 0.0, 0.0, 4.0, 1.0 ] }, "up": { "texture": "#-1", "uv": [ 0.0, 0.0, 4.0, 4.0 ] }, "down": { "texture": "#-1", "uv": [ 0.0, 0.0, 4.0, 4.0 ] } } }, { "name": "Cube", "from": [ 5.0, 2.0, 5.0 ], "to": [ 11.0, 3.0, 11.0 ], "faces": { "north": { "texture": "#-1", "uv": [ 0.0, 0.0, 6.0, 1.0 ] }, "east": { "texture": "#-1", "uv": [ 0.0, 0.0, 6.0, 1.0 ] }, "south": { "texture": "#-1", "uv": [ 0.0, 0.0, 6.0, 1.0 ] }, "west": { "texture": "#-1", "uv": [ 0.0, 0.0, 6.0, 1.0 ] }, "up": { "texture": "#-1", "uv": [ 0.0, 0.0, 6.0, 6.0 ] }, "down": { "texture": "#-1", "uv": [ 0.0, 0.0, 6.0, 6.0 ] } } }, { "name": "Cube", "from": [ 4.0, 3.0, 4.0 ], "to": [ 12.0, 4.0, 12.0 ], "faces": { "north": { "texture": "#-1", "uv": [ 0.0, 0.0, 8.0, 1.0 ] }, "east": { "texture": "#-1", "uv": [ 0.0, 0.0, 8.0, 1.0 ] }, "south": { "texture": "#-1", "uv": [ 0.0, 0.0, 8.0, 1.0 ] }, "west": { "texture": "#-1", "uv": [ 0.0, 0.0, 8.0, 1.0 ] }, "up": { "texture": "#-1", "uv": [ 0.0, 0.0, 8.0, 8.0 ] }, "down": { "texture": "#-1", "uv": [ 0.0, 0.0, 8.0, 8.0 ] } } }, { "name": "Cube", "from": [ 3.0, 4.0, 3.0 ], "to": [ 13.0, 5.0, 13.0 ], "faces": { "north": { "texture": "#-1", "uv": [ 0.0, 0.0, 10.0, 1.0 ] }, "east": { "texture": "#-1", "uv": [ 0.0, 0.0, 10.0, 1.0 ] }, "south": { "texture": "#-1", "uv": [ 0.0, 0.0, 10.0, 1.0 ] }, "west": { "texture": "#-1", "uv": [ 0.0, 0.0, 10.0, 1.0 ] }, "up": { "texture": "#-1", "uv": [ 0.0, 0.0, 10.0, 10.0 ] }, "down": { "texture": "#-1", "uv": [ 0.0, 0.0, 10.0, 10.0 ] } } }, { "name": "Cube", "from": [ 2.0, 5.0, 2.0 ], "to": [ 14.0, 6.0, 14.0 ], "faces": { "north": { "texture": "#-1", "uv": [ 0.0, 0.0, 12.0, 1.0 ] }, "east": { "texture": "#-1", "uv": [ 0.0, 0.0, 12.0, 1.0 ] }, "south": { "texture": "#-1", "uv": [ 0.0, 0.0, 12.0, 1.0 ] }, "west": { "texture": "#-1", "uv": [ 0.0, 0.0, 12.0, 1.0 ] }, "up": { "texture": "#-1", "uv": [ 0.0, 0.0, 12.0, 12.0 ] }, "down": { "texture": "#-1", "uv": [ 0.0, 0.0, 12.0, 12.0 ] } } }, { "name": "Cube", "from": [ 1.0, 6.0, 1.0 ], "to": [ 15.0, 7.0, 15.0 ], "faces": { "north": { "texture": "#-1", "uv": [ 0.0, 0.0, 14.0, 1.0 ] }, "east": { "texture": "#-1", "uv": [ 0.0, 0.0, 14.0, 1.0 ] }, "south": { "texture": "#-1", "uv": [ 0.0, 0.0, 14.0, 1.0 ] }, "west": { "texture": "#-1", "uv": [ 0.0, 0.0, 14.0, 1.0 ] }, "up": { "texture": "#-1", "uv": [ 0.0, 0.0, 14.0, 14.0 ] }, "down": { "texture": "#-1", "uv": [ 0.0, 0.0, 14.0, 14.0 ] } } }, { "name": "Cube", "from": [ 0.0, 7.0, 0.0 ], "to": [ 16.0, 8.0, 16.0 ], "faces": { "north": { "texture": "#-1", "uv": [ 0.0, 0.0, 16.0, 1.0 ] }, "east": { "texture": "#-1", "uv": [ 0.0, 0.0, 16.0, 1.0 ] }, "south": { "texture": "#-1", "uv": [ 0.0, 0.0, 16.0, 1.0 ] }, "west": { "texture": "#-1", "uv": [ 0.0, 0.0, 16.0, 1.0 ] }, "up": { "texture": "#-1", "uv": [ 0.0, 0.0, 16.0, 16.0 ] }, "down": { "texture": "#-1", "uv": [ 0.0, 0.0, 16.0, 16.0 ] } } }, { "name": "Cube", "from": [ -1.0, 8.0, -1.0 ], "to": [ 17.0, 10.0, 17.0 ], "faces": { "north": { "texture": "#-1", "uv": [ 0.0, 0.0, 18.0, 2.0 ] }, "east": { "texture": "#-1", "uv": [ 0.0, 0.0, 18.0, 2.0 ] }, "south": { "texture": "#-1", "uv": [ 0.0, 0.0, 18.0, 2.0 ] }, "west": { "texture": "#-1", "uv": [ 0.0, 0.0, 18.0, 2.0 ] }, "up": { "texture": "#-1", "uv": [ 0.0, 0.0, 18.0, 18.0 ] }, "down": { "texture": "#-1", "uv": [ 0.0, 0.0, 18.0, 18.0 ] } } }, { "name": "Cube", "from": [ -1.0, 9.0, -1.0 ], "to": [ 17.0, 10.0, 17.0 ], "faces": { "north": { "texture": "#-1", "uv": [ 0.0, 0.0, 18.0, 1.0 ] }, "east": { "texture": "#-1", "uv": [ 0.0, 0.0, 18.0, 1.0 ] }, "south": { "texture": "#-1", "uv": [ 0.0, 0.0, 18.0, 1.0 ] }, "west": { "texture": "#-1", "uv": [ 0.0, 0.0, 18.0, 1.0 ] }, "up": { "texture": "#-1", "uv": [ 0.0, 0.0, 18.0, 18.0 ] }, "down": { "texture": "#-1", "uv": [ 0.0, 0.0, 18.0, 18.0 ] } } }, { "name": "Cube", "from": [ 0.0, 10.0, 0.0 ], "to": [ 16.0, 11.0, 16.0 ], "faces": { "north": { "texture": "#-1", "uv": [ 0.0, 0.0, 16.0, 1.0 ] }, "east": { "texture": "#-1", "uv": [ 0.0, 0.0, 16.0, 1.0 ] }, "south": { "texture": "#-1", "uv": [ 0.0, 0.0, 16.0, 1.0 ] }, "west": { "texture": "#-1", "uv": [ 0.0, 0.0, 16.0, 1.0 ] }, "up": { "texture": "#-1", "uv": [ 0.0, 0.0, 16.0, 16.0 ] }, "down": { "texture": "#-1", "uv": [ 0.0, 0.0, 16.0, 16.0 ] } } }, { "name": "Cube", "from": [ 1.0, 11.0, 1.0 ], "to": [ 15.0, 12.0, 15.0 ], "faces": { "north": { "texture": "#-1", "uv": [ 0.0, 0.0, 14.0, 1.0 ] }, "east": { "texture": "#-1", "uv": [ 0.0, 0.0, 14.0, 1.0 ] }, "south": { "texture": "#-1", "uv": [ 0.0, 0.0, 14.0, 1.0 ] }, "west": { "texture": "#-1", "uv": [ 0.0, 0.0, 14.0, 1.0 ] }, "up": { "texture": "#-1", "uv": [ 0.0, 0.0, 14.0, 14.0 ] }, "down": { "texture": "#-1", "uv": [ 0.0, 0.0, 14.0, 14.0 ] } } }, { "name": "Cube", "from": [ 2.0, 12.0, 2.0 ], "to": [ 14.0, 13.0, 14.0 ], "faces": { "north": { "texture": "#-1", "uv": [ 0.0, 0.0, 12.0, 1.0 ] }, "east": { "texture": "#-1", "uv": [ 0.0, 0.0, 12.0, 1.0 ] }, "south": { "texture": "#-1", "uv": [ 0.0, 0.0, 12.0, 1.0 ] }, "west": { "texture": "#-1", "uv": [ 0.0, 0.0, 12.0, 1.0 ] }, "up": { "texture": "#-1", "uv": [ 0.0, 0.0, 12.0, 12.0 ] }, "down": { "texture": "#-1", "uv": [ 0.0, 0.0, 12.0, 12.0 ] } } }, { "name": "Cube", "from": [ 3.0, 13.0, 3.0 ], "to": [ 13.0, 14.0, 13.0 ], "faces": { "north": { "texture": "#-1", "uv": [ 0.0, 0.0, 10.0, 1.0 ] }, "east": { "texture": "#-1", "uv": [ 0.0, 0.0, 10.0, 1.0 ] }, "south": { "texture": "#-1", "uv": [ 0.0, 0.0, 10.0, 1.0 ] }, "west": { "texture": "#-1", "uv": [ 0.0, 0.0, 10.0, 1.0 ] }, "up": { "texture": "#-1", "uv": [ 0.0, 0.0, 10.0, 10.0 ] }, "down": { "texture": "#-1", "uv": [ 0.0, 0.0, 10.0, 10.0 ] } } }, { "name": "Cube", "from": [ 4.0, 14.0, 4.0 ], "to": [ 12.0, 15.0, 12.0 ], "faces": { "north": { "texture": "#-1", "uv": [ 0.0, 0.0, 8.0, 1.0 ] }, "east": { "texture": "#-1", "uv": [ 0.0, 0.0, 8.0, 1.0 ] }, "south": { "texture": "#-1", "uv": [ 0.0, 0.0, 8.0, 1.0 ] }, "west": { "texture": "#-1", "uv": [ 0.0, 0.0, 8.0, 1.0 ] }, "up": { "texture": "#-1", "uv": [ 0.0, 0.0, 8.0, 8.0 ] }, "down": { "texture": "#-1", "uv": [ 0.0, 0.0, 8.0, 8.0 ] } } }, { "name": "Cube", "from": [ 5.0, 15.0, 5.0 ], "to": [ 11.0, 16.0, 11.0 ], "faces": { "north": { "texture": "#-1", "uv": [ 0.0, 0.0, 6.0, 1.0 ] }, "east": { "texture": "#-1", "uv": [ 0.0, 0.0, 6.0, 1.0 ] }, "south": { "texture": "#-1", "uv": [ 0.0, 0.0, 6.0, 1.0 ] }, "west": { "texture": "#-1", "uv": [ 0.0, 0.0, 6.0, 1.0 ] }, "up": { "texture": "#-1", "uv": [ 0.0, 0.0, 6.0, 6.0 ] }, "down": { "texture": "#-1", "uv": [ 0.0, 0.0, 6.0, 6.0 ] } } }, { "name": "Cube", "from": [ 6.0, 16.0, 6.0 ], "to": [ 10.0, 17.0, 10.0 ], "faces": { "north": { "texture": "#-1", "uv": [ 0.0, 0.0, 4.0, 1.0 ] }, "east": { "texture": "#-1", "uv": [ 0.0, 0.0, 4.0, 1.0 ] }, "south": { "texture": "#-1", "uv": [ 0.0, 0.0, 4.0, 1.0 ] }, "west": { "texture": "#-1", "uv": [ 0.0, 0.0, 4.0, 1.0 ] }, "up": { "texture": "#-1", "uv": [ 0.0, 0.0, 4.0, 4.0 ] }, "down": { "texture": "#-1", "uv": [ 0.0, 0.0, 4.0, 4.0 ] } } }, { "name": "Cube", "from": [ 7.0, 17.0, 7.0 ], "to": [ 9.0, 18.0, 9.0 ], "faces": { "north": { "texture": "#-1", "uv": [ 0.0, 0.0, 2.0, 1.0 ] }, "east": { "texture": "#-1", "uv": [ 0.0, 0.0, 2.0, 1.0 ] }, "south": { "texture": "#-1", "uv": [ 0.0, 0.0, 2.0, 1.0 ] }, "west": { "texture": "#-1", "uv": [ 0.0, 0.0, 2.0, 1.0 ] }, "up": { "texture": "#-1", "uv": [ 0.0, 0.0, 2.0, 2.0 ] }, "down": { "texture": "#-1", "uv": [ 0.0, 0.0, 2.0, 2.0 ] } } } ] } i tryed it as : { "parent": "builtin/generated", "textures": { "layer0": "blockupdate:item/IceBlock1" }, "display": { "thirdperson": { "rotation": [ -90, 0, 0 ], "translation": [ 0, 1, -3 ], "scale": [ 0.55, 0.55, 0.55 ] }, "firstperson": { "rotation": [ 0, -135, 25 ], "translation": [ 0, 4, 2 ], "scale": [ 1.7, 1.7, 1.7 ] } } "elements": [ { "name": "Cube", "from": [ 7.0, 0.0, 7.0 ], "to": [ 9.0, 1.0, 9.0 ], "faces": { "north": { "texture": "#-1", "uv": [ 0.0, 0.0, 2.0, 1.0 ] }, "east": { "texture": "#-1", "uv": [ 0.0, 0.0, 2.0, 1.0 ] }, "south": { "texture": "#-1", "uv": [ 0.0, 0.0, 2.0, 1.0 ] }, "west": { "texture": "#-1", "uv": [ 0.0, 0.0, 2.0, 1.0 ] }, "up": { "texture": "#-1", "uv": [ 0.0, 0.0, 2.0, 2.0 ] }, "down": { "texture": "#-1", "uv": [ 0.0, 0.0, 2.0, 2.0 ] } } }, { "name": "Cube", "from": [ 6.0, 1.0, 6.0 ], "to": [ 10.0, 2.0, 10.0 ], "faces": { "north": { "texture": "#-1", "uv": [ 0.0, 0.0, 4.0, 1.0 ] }, "east": { "texture": "#-1", "uv": [ 0.0, 0.0, 4.0, 1.0 ] }, "south": { "texture": "#-1", "uv": [ 0.0, 0.0, 4.0, 1.0 ] }, "west": { "texture": "#-1", "uv": [ 0.0, 0.0, 4.0, 1.0 ] }, "up": { "texture": "#-1", "uv": [ 0.0, 0.0, 4.0, 4.0 ] }, "down": { "texture": "#-1", "uv": [ 0.0, 0.0, 4.0, 4.0 ] } } }, { "name": "Cube", "from": [ 5.0, 2.0, 5.0 ], "to": [ 11.0, 3.0, 11.0 ], "faces": { "north": { "texture": "#-1", "uv": [ 0.0, 0.0, 6.0, 1.0 ] }, "east": { "texture": "#-1", "uv": [ 0.0, 0.0, 6.0, 1.0 ] }, "south": { "texture": "#-1", "uv": [ 0.0, 0.0, 6.0, 1.0 ] }, "west": { "texture": "#-1", "uv": [ 0.0, 0.0, 6.0, 1.0 ] }, "up": { "texture": "#-1", "uv": [ 0.0, 0.0, 6.0, 6.0 ] }, "down": { "texture": "#-1", "uv": [ 0.0, 0.0, 6.0, 6.0 ] } } }, { "name": "Cube", "from": [ 4.0, 3.0, 4.0 ], "to": [ 12.0, 4.0, 12.0 ], "faces": { "north": { "texture": "#-1", "uv": [ 0.0, 0.0, 8.0, 1.0 ] }, "east": { "texture": "#-1", "uv": [ 0.0, 0.0, 8.0, 1.0 ] }, "south": { "texture": "#-1", "uv": [ 0.0, 0.0, 8.0, 1.0 ] }, "west": { "texture": "#-1", "uv": [ 0.0, 0.0, 8.0, 1.0 ] }, "up": { "texture": "#-1", "uv": [ 0.0, 0.0, 8.0, 8.0 ] }, "down": { "texture": "#-1", "uv": [ 0.0, 0.0, 8.0, 8.0 ] } } }, { "name": "Cube", "from": [ 3.0, 4.0, 3.0 ], "to": [ 13.0, 5.0, 13.0 ], "faces": { "north": { "texture": "#-1", "uv": [ 0.0, 0.0, 10.0, 1.0 ] }, "east": { "texture": "#-1", "uv": [ 0.0, 0.0, 10.0, 1.0 ] }, "south": { "texture": "#-1", "uv": [ 0.0, 0.0, 10.0, 1.0 ] }, "west": { "texture": "#-1", "uv": [ 0.0, 0.0, 10.0, 1.0 ] }, "up": { "texture": "#-1", "uv": [ 0.0, 0.0, 10.0, 10.0 ] }, "down": { "texture": "#-1", "uv": [ 0.0, 0.0, 10.0, 10.0 ] } } }, { "name": "Cube", "from": [ 2.0, 5.0, 2.0 ], "to": [ 14.0, 6.0, 14.0 ], "faces": { "north": { "texture": "#-1", "uv": [ 0.0, 0.0, 12.0, 1.0 ] }, "east": { "texture": "#-1", "uv": [ 0.0, 0.0, 12.0, 1.0 ] }, "south": { "texture": "#-1", "uv": [ 0.0, 0.0, 12.0, 1.0 ] }, "west": { "texture": "#-1", "uv": [ 0.0, 0.0, 12.0, 1.0 ] }, "up": { "texture": "#-1", "uv": [ 0.0, 0.0, 12.0, 12.0 ] }, "down": { "texture": "#-1", "uv": [ 0.0, 0.0, 12.0, 12.0 ] } } }, { "name": "Cube", "from": [ 1.0, 6.0, 1.0 ], "to": [ 15.0, 7.0, 15.0 ], "faces": { "north": { "texture": "#-1", "uv": [ 0.0, 0.0, 14.0, 1.0 ] }, "east": { "texture": "#-1", "uv": [ 0.0, 0.0, 14.0, 1.0 ] }, "south": { "texture": "#-1", "uv": [ 0.0, 0.0, 14.0, 1.0 ] }, "west": { "texture": "#-1", "uv": [ 0.0, 0.0, 14.0, 1.0 ] }, "up": { "texture": "#-1", "uv": [ 0.0, 0.0, 14.0, 14.0 ] }, "down": { "texture": "#-1", "uv": [ 0.0, 0.0, 14.0, 14.0 ] } } }, { "name": "Cube", "from": [ 0.0, 7.0, 0.0 ], "to": [ 16.0, 8.0, 16.0 ], "faces": { "north": { "texture": "#-1", "uv": [ 0.0, 0.0, 16.0, 1.0 ] }, "east": { "texture": "#-1", "uv": [ 0.0, 0.0, 16.0, 1.0 ] }, "south": { "texture": "#-1", "uv": [ 0.0, 0.0, 16.0, 1.0 ] }, "west": { "texture": "#-1", "uv": [ 0.0, 0.0, 16.0, 1.0 ] }, "up": { "texture": "#-1", "uv": [ 0.0, 0.0, 16.0, 16.0 ] }, "down": { "texture": "#-1", "uv": [ 0.0, 0.0, 16.0, 16.0 ] } } }, { "name": "Cube", "from": [ -1.0, 8.0, -1.0 ], "to": [ 17.0, 10.0, 17.0 ], "faces": { "north": { "texture": "#-1", "uv": [ 0.0, 0.0, 18.0, 2.0 ] }, "east": { "texture": "#-1", "uv": [ 0.0, 0.0, 18.0, 2.0 ] }, "south": { "texture": "#-1", "uv": [ 0.0, 0.0, 18.0, 2.0 ] }, "west": { "texture": "#-1", "uv": [ 0.0, 0.0, 18.0, 2.0 ] }, "up": { "texture": "#-1", "uv": [ 0.0, 0.0, 18.0, 18.0 ] }, "down": { "texture": "#-1", "uv": [ 0.0, 0.0, 18.0, 18.0 ] } } }, { "name": "Cube", "from": [ -1.0, 9.0, -1.0 ], "to": [ 17.0, 10.0, 17.0 ], "faces": { "north": { "texture": "#-1", "uv": [ 0.0, 0.0, 18.0, 1.0 ] }, "east": { "texture": "#-1", "uv": [ 0.0, 0.0, 18.0, 1.0 ] }, "south": { "texture": "#-1", "uv": [ 0.0, 0.0, 18.0, 1.0 ] }, "west": { "texture": "#-1", "uv": [ 0.0, 0.0, 18.0, 1.0 ] }, "up": { "texture": "#-1", "uv": [ 0.0, 0.0, 18.0, 18.0 ] }, "down": { "texture": "#-1", "uv": [ 0.0, 0.0, 18.0, 18.0 ] } } }, { "name": "Cube", "from": [ 0.0, 10.0, 0.0 ], "to": [ 16.0, 11.0, 16.0 ], "faces": { "north": { "texture": "#-1", "uv": [ 0.0, 0.0, 16.0, 1.0 ] }, "east": { "texture": "#-1", "uv": [ 0.0, 0.0, 16.0, 1.0 ] }, "south": { "texture": "#-1", "uv": [ 0.0, 0.0, 16.0, 1.0 ] }, "west": { "texture": "#-1", "uv": [ 0.0, 0.0, 16.0, 1.0 ] }, "up": { "texture": "#-1", "uv": [ 0.0, 0.0, 16.0, 16.0 ] }, "down": { "texture": "#-1", "uv": [ 0.0, 0.0, 16.0, 16.0 ] } } }, { "name": "Cube", "from": [ 1.0, 11.0, 1.0 ], "to": [ 15.0, 12.0, 15.0 ], "faces": { "north": { "texture": "#-1", "uv": [ 0.0, 0.0, 14.0, 1.0 ] }, "east": { "texture": "#-1", "uv": [ 0.0, 0.0, 14.0, 1.0 ] }, "south": { "texture": "#-1", "uv": [ 0.0, 0.0, 14.0, 1.0 ] }, "west": { "texture": "#-1", "uv": [ 0.0, 0.0, 14.0, 1.0 ] }, "up": { "texture": "#-1", "uv": [ 0.0, 0.0, 14.0, 14.0 ] }, "down": { "texture": "#-1", "uv": [ 0.0, 0.0, 14.0, 14.0 ] } } }, { "name": "Cube", "from": [ 2.0, 12.0, 2.0 ], "to": [ 14.0, 13.0, 14.0 ], "faces": { "north": { "texture": "#-1", "uv": [ 0.0, 0.0, 12.0, 1.0 ] }, "east": { "texture": "#-1", "uv": [ 0.0, 0.0, 12.0, 1.0 ] }, "south": { "texture": "#-1", "uv": [ 0.0, 0.0, 12.0, 1.0 ] }, "west": { "texture": "#-1", "uv": [ 0.0, 0.0, 12.0, 1.0 ] }, "up": { "texture": "#-1", "uv": [ 0.0, 0.0, 12.0, 12.0 ] }, "down": { "texture": "#-1", "uv": [ 0.0, 0.0, 12.0, 12.0 ] } } }, { "name": "Cube", "from": [ 3.0, 13.0, 3.0 ], "to": [ 13.0, 14.0, 13.0 ], "faces": { "north": { "texture": "#-1", "uv": [ 0.0, 0.0, 10.0, 1.0 ] }, "east": { "texture": "#-1", "uv": [ 0.0, 0.0, 10.0, 1.0 ] }, "south": { "texture": "#-1", "uv": [ 0.0, 0.0, 10.0, 1.0 ] }, "west": { "texture": "#-1", "uv": [ 0.0, 0.0, 10.0, 1.0 ] }, "up": { "texture": "#-1", "uv": [ 0.0, 0.0, 10.0, 10.0 ] }, "down": { "texture": "#-1", "uv": [ 0.0, 0.0, 10.0, 10.0 ] } } }, { "name": "Cube", "from": [ 4.0, 14.0, 4.0 ], "to": [ 12.0, 15.0, 12.0 ], "faces": { "north": { "texture": "#-1", "uv": [ 0.0, 0.0, 8.0, 1.0 ] }, "east": { "texture": "#-1", "uv": [ 0.0, 0.0, 8.0, 1.0 ] }, "south": { "texture": "#-1", "uv": [ 0.0, 0.0, 8.0, 1.0 ] }, "west": { "texture": "#-1", "uv": [ 0.0, 0.0, 8.0, 1.0 ] }, "up": { "texture": "#-1", "uv": [ 0.0, 0.0, 8.0, 8.0 ] }, "down": { "texture": "#-1", "uv": [ 0.0, 0.0, 8.0, 8.0 ] } } }, { "name": "Cube", "from": [ 5.0, 15.0, 5.0 ], "to": [ 11.0, 16.0, 11.0 ], "faces": { "north": { "texture": "#-1", "uv": [ 0.0, 0.0, 6.0, 1.0 ] }, "east": { "texture": "#-1", "uv": [ 0.0, 0.0, 6.0, 1.0 ] }, "south": { "texture": "#-1", "uv": [ 0.0, 0.0, 6.0, 1.0 ] }, "west": { "texture": "#-1", "uv": [ 0.0, 0.0, 6.0, 1.0 ] }, "up": { "texture": "#-1", "uv": [ 0.0, 0.0, 6.0, 6.0 ] }, "down": { "texture": "#-1", "uv": [ 0.0, 0.0, 6.0, 6.0 ] } } }, { "name": "Cube", "from": [ 6.0, 16.0, 6.0 ], "to": [ 10.0, 17.0, 10.0 ], "faces": { "north": { "texture": "#-1", "uv": [ 0.0, 0.0, 4.0, 1.0 ] }, "east": { "texture": "#-1", "uv": [ 0.0, 0.0, 4.0, 1.0 ] }, "south": { "texture": "#-1", "uv": [ 0.0, 0.0, 4.0, 1.0 ] }, "west": { "texture": "#-1", "uv": [ 0.0, 0.0, 4.0, 1.0 ] }, "up": { "texture": "#-1", "uv": [ 0.0, 0.0, 4.0, 4.0 ] }, "down": { "texture": "#-1", "uv": [ 0.0, 0.0, 4.0, 4.0 ] } } }, { "name": "Cube", "from": [ 7.0, 17.0, 7.0 ], "to": [ 9.0, 18.0, 9.0 ], "faces": { "north": { "texture": "#-1", "uv": [ 0.0, 0.0, 2.0, 1.0 ] }, "east": { "texture": "#-1", "uv": [ 0.0, 0.0, 2.0, 1.0 ] }, "south": { "texture": "#-1", "uv": [ 0.0, 0.0, 2.0, 1.0 ] }, "west": { "texture": "#-1", "uv": [ 0.0, 0.0, 2.0, 1.0 ] }, "up": { "texture": "#-1", "uv": [ 0.0, 0.0, 2.0, 2.0 ] }, "down": { "texture": "#-1", "uv": [ 0.0, 0.0, 2.0, 2.0 ] } } } ] } but it do not work
  3. Hello Dear Forum, i think many of you see my problems , since 2 days im trying to figure out how to render a normal "Entity", after 1 day it did work, now i try to figure out , how to render a "throwable" entity, well actualy i got it but i dont understand how it actualy work, i tryed to render my "Modellball" but it didnt work, so i was searching for some functions or ideas, and "Somehow" i got a "Throwable Item" Renderer now , so i can render all items i want and they work as a arrow, but without the bow which is pretty cool for me, now im still hanging on "how 2 render my Modellball" as throwable item ... i realy dont understand i tryed so many things and nothing work ... public class ModelBall extends ModelBase { ModelRenderer Shape1; ModelRenderer Shape2; ModelRenderer Shape3; ModelRenderer Shape4; ModelRenderer Shape5; ModelRenderer Shape6; ModelRenderer Shape7; public ModelBall() { this.textureWidth = 64; this.textureHeight = 64; this.Shape1 = new ModelRenderer(this, 0, 0); this.Shape1.addBox(0.0F, 0.0F, 0.0F, 4, 4, 4); this.Shape1.setRotationPoint(-1.0F, 0.0F, -3.0F); this.Shape1.setTextureSize(64, 64); this.Shape1.mirror = true; setRotation(this.Shape1, 0.0F, 0.0F, 0.0F); this.Shape2 = new ModelRenderer(this, 0, 0); this.Shape2.addBox(0.0F, 0.0F, 0.0F, 3, 1, 3); this.Shape2.setRotationPoint(-0.5F, -0.7F, -2.5F); this.Shape2.setTextureSize(64, 64); this.Shape2.mirror = true; setRotation(this.Shape2, 0.0F, 0.0F, 0.0F); this.Shape3 = new ModelRenderer(this, 0, 0); this.Shape3.addBox(0.0F, 0.0F, 0.0F, 3, 1, 3); this.Shape3.setRotationPoint(-0.5F, 3.7F, -2.5F); this.Shape3.setTextureSize(64, 64); this.Shape3.mirror = true; setRotation(this.Shape3, 0.0F, 0.0F, 0.0F); this.Shape4 = new ModelRenderer(this, 0, 0); this.Shape4.addBox(0.0F, 0.0F, 0.0F, 1, 3, 3); this.Shape4.setRotationPoint(-1.7F, 0.5F, -2.5F); this.Shape4.setTextureSize(64, 64); this.Shape4.mirror = true; setRotation(this.Shape4, 0.0F, 0.0F, 0.0F); this.Shape5 = new ModelRenderer(this, 0, 0); this.Shape5.addBox(0.0F, 0.0F, 0.0F, 1, 3, 3); this.Shape5.setRotationPoint(2.7F, 0.5F, -2.5F); this.Shape5.setTextureSize(64, 64); this.Shape5.mirror = true; setRotation(this.Shape5, 0.0F, 0.0F, 0.0F); this.Shape6 = new ModelRenderer(this, 0, 0); this.Shape6.addBox(0.0F, 0.0F, 0.0F, 3, 3, 1); this.Shape6.setRotationPoint(-0.5F, 0.5F, 0.7F); this.Shape6.setTextureSize(64, 64); this.Shape6.mirror = true; setRotation(this.Shape6, 0.0F, 0.0F, 0.0F); this.Shape7 = new ModelRenderer(this, 0, 0); this.Shape7.addBox(0.0F, 0.0F, 0.0F, 3, 3, 1); this.Shape7.setRotationPoint(-0.5F, 0.5F, -3.7F); this.Shape7.setTextureSize(64, 64); this.Shape7.mirror = true; setRotation(this.Shape7, 0.0F, 0.0F, 0.0F); } public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) { super.render(entity, f, f1, f2, f3, f4, f5); setRotationAngles(f, f1, f2, f3, f4, f5); this.Shape1.render(f5); this.Shape2.render(f5); this.Shape3.render(f5); this.Shape4.render(f5); this.Shape5.render(f5); this.Shape6.render(f5); this.Shape7.render(f5); } private void setRotation(ModelRenderer model, float x, float y, float z) { model.rotateAngleX = x; model.rotateAngleY = y; model.rotateAngleZ = z; } public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5) { super.setRotationAngles(f, f1, f2, f3, f4, f5, null); } }
  4. now the last problem is ... i cannot render that model , idk why ... import net.minecraft.client.model.ModelBase; import net.minecraft.client.model.ModelRenderer; import net.minecraft.entity.Entity; public class ModelBall extends ModelBase { ModelRenderer Shape1; ModelRenderer Shape2; ModelRenderer Shape3; ModelRenderer Shape4; ModelRenderer Shape5; ModelRenderer Shape6; ModelRenderer Shape7; public ModelBall() { this.textureWidth = 64; this.textureHeight = 64; this.Shape1 = new ModelRenderer(this, 0, 0); this.Shape1.addBox(0.0F, 0.0F, 0.0F, 4, 4, 4); this.Shape1.setRotationPoint(-1.0F, 0.0F, -3.0F); this.Shape1.setTextureSize(64, 64); this.Shape1.mirror = true; setRotation(this.Shape1, 0.0F, 0.0F, 0.0F); this.Shape2 = new ModelRenderer(this, 0, 0); this.Shape2.addBox(0.0F, 0.0F, 0.0F, 3, 1, 3); this.Shape2.setRotationPoint(-0.5F, -0.7F, -2.5F); this.Shape2.setTextureSize(64, 64); this.Shape2.mirror = true; setRotation(this.Shape2, 0.0F, 0.0F, 0.0F); this.Shape3 = new ModelRenderer(this, 0, 0); this.Shape3.addBox(0.0F, 0.0F, 0.0F, 3, 1, 3); this.Shape3.setRotationPoint(-0.5F, 3.7F, -2.5F); this.Shape3.setTextureSize(64, 64); this.Shape3.mirror = true; setRotation(this.Shape3, 0.0F, 0.0F, 0.0F); this.Shape4 = new ModelRenderer(this, 0, 0); this.Shape4.addBox(0.0F, 0.0F, 0.0F, 1, 3, 3); this.Shape4.setRotationPoint(-1.7F, 0.5F, -2.5F); this.Shape4.setTextureSize(64, 64); this.Shape4.mirror = true; setRotation(this.Shape4, 0.0F, 0.0F, 0.0F); this.Shape5 = new ModelRenderer(this, 0, 0); this.Shape5.addBox(0.0F, 0.0F, 0.0F, 1, 3, 3); this.Shape5.setRotationPoint(2.7F, 0.5F, -2.5F); this.Shape5.setTextureSize(64, 64); this.Shape5.mirror = true; setRotation(this.Shape5, 0.0F, 0.0F, 0.0F); this.Shape6 = new ModelRenderer(this, 0, 0); this.Shape6.addBox(0.0F, 0.0F, 0.0F, 3, 3, 1); this.Shape6.setRotationPoint(-0.5F, 0.5F, 0.7F); this.Shape6.setTextureSize(64, 64); this.Shape6.mirror = true; setRotation(this.Shape6, 0.0F, 0.0F, 0.0F); this.Shape7 = new ModelRenderer(this, 0, 0); this.Shape7.addBox(0.0F, 0.0F, 0.0F, 3, 3, 1); this.Shape7.setRotationPoint(-0.5F, 0.5F, -3.7F); this.Shape7.setTextureSize(64, 64); this.Shape7.mirror = true; setRotation(this.Shape7, 0.0F, 0.0F, 0.0F); } public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) { super.render(entity, f, f1, f2, f3, f4, f5); setRotationAngles(f, f1, f2, f3, f4, f5); this.Shape1.render(f5); this.Shape2.render(f5); this.Shape3.render(f5); this.Shape4.render(f5); this.Shape5.render(f5); this.Shape6.render(f5); this.Shape7.render(f5); } private void setRotation(ModelRenderer model, float x, float y, float z) { model.rotateAngleX = x; model.rotateAngleY = y; model.rotateAngleZ = z; } public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5) { super.setRotationAngles(f, f1, f2, f3, f4, f5, null); } }
  5. 1. i fixed my problem thank you! 2. Hmm if its a "MOD" or not a real "MOD" is a question , but it will be a "MOD" with over 300new different block, 500 new different items, 24new armor types + some stylish ones, around 150 new weapons (Swords with special abilitys/axes/bows/pistols etc...) AND MY FAVORITE , "DevilFruits", like in the manga "Onepiece".(if you dont know it, just google it ) most of these things are already done, just skills are left and some sepcial abilitys for swords and many textures left to make ...
  6. hmm well i never have tryed to update my "MOD" ... i got a big project its like an "Morpg" , just in MM, and later when you get max lvl you will be able to do many more things but if i upgrade the mod i wont be able to use "customnpcs" and i dont have that much time. BUT after i code all in 1.8.9, i will try to update it OFC, but i think, first finish it on 1.8.9 then update it with the hope that "customnpcs" will get also updated.
  7. 1. thank you 2. how can i be able to render then this Model for example: public class ModelBall extends ModelBase { ModelRenderer Shape1; ModelRenderer Shape2; ModelRenderer Shape3; ModelRenderer Shape4; ModelRenderer Shape5; ModelRenderer Shape6; ModelRenderer Shape7; public ModelBall() { this.textureWidth = 64; this.textureHeight = 64; this.Shape1 = new ModelRenderer(this, 0, 0); this.Shape1.addBox(0.0F, 0.0F, 0.0F, 4, 4, 4); this.Shape1.setRotationPoint(-1.0F, 0.0F, -3.0F); this.Shape1.setTextureSize(64, 64); this.Shape1.mirror = true; setRotation(this.Shape1, 0.0F, 0.0F, 0.0F); this.Shape2 = new ModelRenderer(this, 0, 0); this.Shape2.addBox(0.0F, 0.0F, 0.0F, 3, 1, 3); this.Shape2.setRotationPoint(-0.5F, -0.7F, -2.5F); this.Shape2.setTextureSize(64, 64); this.Shape2.mirror = true; setRotation(this.Shape2, 0.0F, 0.0F, 0.0F); this.Shape3 = new ModelRenderer(this, 0, 0); this.Shape3.addBox(0.0F, 0.0F, 0.0F, 3, 1, 3); this.Shape3.setRotationPoint(-0.5F, 3.7F, -2.5F); this.Shape3.setTextureSize(64, 64); this.Shape3.mirror = true; setRotation(this.Shape3, 0.0F, 0.0F, 0.0F); this.Shape4 = new ModelRenderer(this, 0, 0); this.Shape4.addBox(0.0F, 0.0F, 0.0F, 1, 3, 3); this.Shape4.setRotationPoint(-1.7F, 0.5F, -2.5F); this.Shape4.setTextureSize(64, 64); this.Shape4.mirror = true; setRotation(this.Shape4, 0.0F, 0.0F, 0.0F); this.Shape5 = new ModelRenderer(this, 0, 0); this.Shape5.addBox(0.0F, 0.0F, 0.0F, 1, 3, 3); this.Shape5.setRotationPoint(2.7F, 0.5F, -2.5F); this.Shape5.setTextureSize(64, 64); this.Shape5.mirror = true; setRotation(this.Shape5, 0.0F, 0.0F, 0.0F); this.Shape6 = new ModelRenderer(this, 0, 0); this.Shape6.addBox(0.0F, 0.0F, 0.0F, 3, 3, 1); this.Shape6.setRotationPoint(-0.5F, 0.5F, 0.7F); this.Shape6.setTextureSize(64, 64); this.Shape6.mirror = true; setRotation(this.Shape6, 0.0F, 0.0F, 0.0F); this.Shape7 = new ModelRenderer(this, 0, 0); this.Shape7.addBox(0.0F, 0.0F, 0.0F, 3, 3, 1); this.Shape7.setRotationPoint(-0.5F, 0.5F, -3.7F); this.Shape7.setTextureSize(64, 64); this.Shape7.mirror = true; setRotation(this.Shape7, 0.0F, 0.0F, 0.0F); } public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) { super.render(entity, f, f1, f2, f3, f4, f5); setRotationAngles(f, f1, f2, f3, f4, f5); this.Shape1.render(f5); this.Shape2.render(f5); this.Shape3.render(f5); this.Shape4.render(f5); this.Shape5.render(f5); this.Shape6.render(f5); this.Shape7.render(f5); } private void setRotation(ModelRenderer model, float x, float y, float z) { model.rotateAngleX = x; model.rotateAngleY = y; model.rotateAngleZ = z; } public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5) { super.setRotationAngles(f, f1, f2, f3, f4, f5, null); } } i mean it looks so simple but i dont understand it ... 3. becouse im doing a big "MOD" and if i would have to upgrade higher i would have alot of trouble to upgrade x.x i never learned realy "Java" just by testing and coding on Minecraft ... 4. becouse i use also "CustomNPCs" the mod is aviable to 1.8.9 ... its a big part of my Plan ... im doing a big server where the storyline reaches from lv1-lv40(characterlevel [my own lvl sysmte]) , i did a bunch of skills etc... and ye .. idk, i cannot code such mod as "CustomNPCs" beside .. that would take way to long i think
  8. Hello Dear Forum, im working on "Throwable Entitys" , well they work actualy but i want to change the "LivingEntity" which get throwen in the air, the problem is here that i tryed to figure out how it works ... i mean there is no "Custom Throwable .. . . ." thing which i can find on the internet, so well , i workt this out : @SideOnly(Side.CLIENT) public class RenderType01 extends Render<IceBall> { private static final ResourceLocation arrowTextures = new ResourceLocation("textures/entity/arrow.png"); public RenderType01(RenderManager renderManager) { super(renderManager); } private ModelBall ball = new ModelBall(); @Override public void doRender(IceBall entity, double x, double y, double z, float entityYaw, float partialTicks) { this.bindEntityTexture(entity); GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F); GlStateManager.pushMatrix(); GlStateManager.translate((float)x, (float)y, (float)z); GlStateManager.rotate(entity.prevRotationYaw + (entity.rotationYaw - entity.prevRotationYaw) * partialTicks - 90.0F, 0.0F, 1.0F, 0.0F); GlStateManager.rotate(entity.prevRotationPitch + (entity.rotationPitch - entity.prevRotationPitch) * partialTicks, 0.0F, 0.0F, 1.0F); Tessellator tessellator = Tessellator.getInstance(); WorldRenderer worldrenderer = tessellator.getWorldRenderer(); int i = 0; float f = 0.0F; float f1 = 0.5F; float f2 = (float)(0 + i * 10) / 32.0F; float f3 = (float)(5 + i * 10) / 32.0F; float f4 = 0.0F; float f5 = 0.15625F; float f6 = (float)(5 + i * 10) / 32.0F; float f7 = (float)(10 + i * 10) / 32.0F; float f8 = 0.05625F; GlStateManager.enableRescaleNormal(); float f9 = (float)1 - partialTicks; if (f9 > 0.0F) { float f10 = -MathHelper.sin(f9 * 3.0F) * f9; GlStateManager.rotate(f10, 0.0F, 0.0F, 1.0F); } GlStateManager.rotate(45.0F, 1.0F, 0.0F, 0.0F); GlStateManager.scale(f8, f8, f8); GlStateManager.translate(-4.0F, 0.0F, 0.0F); GL11.glNormal3f(f8, 0.0F, 0.0F); worldrenderer.begin(7, DefaultVertexFormats.POSITION_TEX); worldrenderer.pos(-7.0D, -2.0D, -2.0D).tex((double)f4, (double)f6).endVertex(); worldrenderer.pos(-7.0D, -2.0D, 2.0D).tex((double)f5, (double)f6).endVertex(); worldrenderer.pos(-7.0D, 2.0D, 2.0D).tex((double)f5, (double)f7).endVertex(); worldrenderer.pos(-7.0D, 2.0D, -2.0D).tex((double)f4, (double)f7).endVertex(); tessellator.draw(); GL11.glNormal3f(-f8, 0.0F, 0.0F); worldrenderer.begin(7, DefaultVertexFormats.POSITION_TEX); worldrenderer.pos(-7.0D, 2.0D, -2.0D).tex((double)f4, (double)f6).endVertex(); worldrenderer.pos(-7.0D, 2.0D, 2.0D).tex((double)f5, (double)f6).endVertex(); worldrenderer.pos(-7.0D, -2.0D, 2.0D).tex((double)f5, (double)f7).endVertex(); worldrenderer.pos(-7.0D, -2.0D, -2.0D).tex((double)f4, (double)f7).endVertex(); tessellator.draw(); for (int j = 0; j < 4; ++j) { GlStateManager.rotate(90.0F, 1.0F, 0.0F, 0.0F); GL11.glNormal3f(0.0F, 0.0F, f8); worldrenderer.begin(7, DefaultVertexFormats.POSITION_TEX); worldrenderer.pos(-8.0D, -2.0D, 0.0D).tex((double)f, (double)f2).endVertex(); worldrenderer.pos(8.0D, -2.0D, 0.0D).tex((double)f1, (double)f2).endVertex(); worldrenderer.pos(8.0D, 2.0D, 0.0D).tex((double)f1, (double)f3).endVertex(); worldrenderer.pos(-8.0D, 2.0D, 0.0D).tex((double)f, (double)f3).endVertex(); tessellator.draw(); } GlStateManager.disableRescaleNormal(); GlStateManager.popMatrix(); super.doRender(entity, x, y, z, entityYaw, partialTicks); // ball.render(entity, 0.0F, 0.0F, -0.1F, 0.0F, 0.0F, 0.0625F); // super.doRender(entity, x, y, z, entityYaw, partialTicks); } protected ResourceLocation getEntityTexture(IceBall entity) { return arrowTextures; } } this is the "Arrow" Model from "Minecraft" , i register it like this: @Mod(modid = "BlockUpdate", name="BlockUpdate Mod", version="2.1", acceptedMinecraftVersions="[1.8.9]") public class BlocksUpdate { @SidedProxy(clientSide="ArturFarid.BlockUpdate.proxy.ClientProxy", serverSide="ArturFarid.BlockUpdate.proxy.CommonProxy") public static CommonProxy proxy; public static Item_Tab item_tab = new Item_Tab(); public static Sword_Tab sword_tab = new Sword_Tab(); public static Food_Tab food_tab = new Food_Tab(); public static Devil_Fruit_Tab devil_fruit_tab = new Devil_Fruit_Tab(); @Instance public static BlocksUpdate instance; @EventHandler public void preInit(FMLPreInitializationEvent event) { ArturFarid.BlockUpdate.init.BlocksUpdate.init(); ArturFarid.BlockUpdate.init.BlocksUpdate.register(); ItemsUpdate.init(); ItemsUpdate.register(); } @EventHandler public void Init(FMLInitializationEvent event) { proxy.registeRenders(); EntityRegistry.registerModEntity(IceBall.class, "IceBall", 1, this, 80, 3, true); EntityRegistry.registerModEntity(IceWall.class, "IceWall", 1, this, 80, 3, true); EntityRegistry.registerModEntity(PawHit.class, "PawHit", 1, this, 80, 3, true); EntityRegistry.registerModEntity(UrsusShock.class, "UrsusShock", 1, this, 80, 3, true); EntityRegistry.registerModEntity(ChainLightningEntity.class, "TestThrowableItem", 1, this, 80, 3, true); //RenderingRegistry.registerEntityRenderingHandler(Test2Skill.class, new RenderType01("string", new ModelBall(), 7.0F)); RenderingRegistry.registerEntityRenderingHandler(IceBall.class, new RenderType01(Minecraft.getMinecraft().getRenderManager())); } @EventHandler public void postInit(FMLPostInitializationEvent event) {} } and the problem is, the "EntityModel/Texture" work but i dont know the hell why on "ALL" my entitys ... i try to use it only on "1" throwable thing , and the problem is, it gets bind automatically to all my livingentitys which are throwable ... i dont know why ... everytime i try to use any different "LivingEntity" like "IceBall or IceWall,PawHit" ... doesnt matter which one, all of them have the same model/texture.
  9. i do know it and i found the error
  10. ok thats what i found, it looks pretty good but there is a error on each "RenderType01" @SideOnly(Side.CLIENT) public class RenderType01 extends Render { ResourceLocation texture; protected ModelBase model; float scalef; double red = 0.0D; double green = 0.0D; double blue = 0.0D; double alpha = 0.0D; public RenderType01(String texture, ModelBase model) { this.shadowSize = 0.5F; this.texture = new ResourceLocation("blockupdate:textures/entity/" + texture + ".png"); this.model = model; this.scalef = 0.75F; } public RenderType01(String texture, ModelBase model, float scale) { this.shadowSize = 0.5F; this.texture = new ResourceLocation("blockupdate:textures/entity/" + texture + ".png"); this.model = model; this.scalef = scale; } public RenderType01(ModelBase model, float scale, double red, double green, double blue, double alpha) { this.shadowSize = 0.5F; this.texture = null; this.model = model; this.scalef = scale; this.red = red; this.blue = blue; this.green = green; this.alpha = alpha; } protected ResourceLocation getEntityTexture(Entity entity) { if (this.texture != null) { return this.texture; } return null; } } the problem is "Implicit super constructor Render() is undefined. Must explicitly invoke another constructor" i dont understand this , any suggestion?
  11. Hello Dear Forum, after whole day trying to make a "Throwable entity" work, it actualy work ... "BUT" , how can i use my "ModelBall" ? -- MY ENTITY -- public class ModelBall extends ModelBase { ModelRenderer Shape1; ModelRenderer Shape2; ModelRenderer Shape3; ModelRenderer Shape4; ModelRenderer Shape5; ModelRenderer Shape6; ModelRenderer Shape7; public ModelBall() { this.textureWidth = 64; this.textureHeight = 64; this.Shape1 = new ModelRenderer(this, 0, 0); this.Shape1.addBox(0.0F, 0.0F, 0.0F, 4, 4, 4); this.Shape1.setRotationPoint(-1.0F, 0.0F, -3.0F); this.Shape1.setTextureSize(64, 64); this.Shape1.mirror = true; setRotation(this.Shape1, 0.0F, 0.0F, 0.0F); this.Shape2 = new ModelRenderer(this, 0, 0); this.Shape2.addBox(0.0F, 0.0F, 0.0F, 3, 1, 3); this.Shape2.setRotationPoint(-0.5F, -0.7F, -2.5F); this.Shape2.setTextureSize(64, 64); this.Shape2.mirror = true; setRotation(this.Shape2, 0.0F, 0.0F, 0.0F); this.Shape3 = new ModelRenderer(this, 0, 0); this.Shape3.addBox(0.0F, 0.0F, 0.0F, 3, 1, 3); this.Shape3.setRotationPoint(-0.5F, 3.7F, -2.5F); this.Shape3.setTextureSize(64, 64); this.Shape3.mirror = true; setRotation(this.Shape3, 0.0F, 0.0F, 0.0F); this.Shape4 = new ModelRenderer(this, 0, 0); this.Shape4.addBox(0.0F, 0.0F, 0.0F, 1, 3, 3); this.Shape4.setRotationPoint(-1.7F, 0.5F, -2.5F); this.Shape4.setTextureSize(64, 64); this.Shape4.mirror = true; setRotation(this.Shape4, 0.0F, 0.0F, 0.0F); this.Shape5 = new ModelRenderer(this, 0, 0); this.Shape5.addBox(0.0F, 0.0F, 0.0F, 1, 3, 3); this.Shape5.setRotationPoint(2.7F, 0.5F, -2.5F); this.Shape5.setTextureSize(64, 64); this.Shape5.mirror = true; setRotation(this.Shape5, 0.0F, 0.0F, 0.0F); this.Shape6 = new ModelRenderer(this, 0, 0); this.Shape6.addBox(0.0F, 0.0F, 0.0F, 3, 3, 1); this.Shape6.setRotationPoint(-0.5F, 0.5F, 0.7F); this.Shape6.setTextureSize(64, 64); this.Shape6.mirror = true; setRotation(this.Shape6, 0.0F, 0.0F, 0.0F); this.Shape7 = new ModelRenderer(this, 0, 0); this.Shape7.addBox(0.0F, 0.0F, 0.0F, 3, 3, 1); this.Shape7.setRotationPoint(-0.5F, 0.5F, -3.7F); this.Shape7.setTextureSize(64, 64); this.Shape7.mirror = true; setRotation(this.Shape7, 0.0F, 0.0F, 0.0F); } public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) { super.render(entity, f, f1, f2, f3, f4, f5); setRotationAngles(f, f1, f2, f3, f4, f5); this.Shape1.render(f5); this.Shape2.render(f5); this.Shape3.render(f5); this.Shape4.render(f5); this.Shape5.render(f5); this.Shape6.render(f5); this.Shape7.render(f5); } private void setRotation(ModelRenderer model, float x, float y, float z) { model.rotateAngleX = x; model.rotateAngleY = y; model.rotateAngleZ = z; } public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5) { super.setRotationAngles(f, f1, f2, f3, f4, f5, null); } } --- TEST CLASS --- public class TestThrowableItem extends Item { public TestThrowableItem(String string) { super(); this.setUnlocalizedName("throwable"); } @Override public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer) { if (!par3EntityPlayer.capabilities.isCreativeMode) { --par1ItemStack.stackSize; } if (!par2World.isRemote) { par2World.spawnEntityInWorld(new Test2Skill(par2World, par3EntityPlayer)); } return par1ItemStack; } } --- AND THE REGISTER --- EntityRegistry.registerModEntity(Test2Skill.class, "throwable", 1, this, 80, 3, true); (IF I WANT TO CHANGE THE REGISTERMODENTITY TO:) EntityRegistry.registerModEntity(ModelBall.class, "throwable", 1, this, 80, 3, true); it shows that it is not "appcliable" ...
  12. alright, sorry thought that if i open a new theard it will be annoying .. well i actualy registered it EntityRegistry.registerModEntity(IceBall.class, "IceBall", 0, BlocksUpdate.instance, 64, 20, true); EntityRegistry.registerEgg(IceBall.class, 0xFF00, 0xFF00); i click rightclick on the ground and it dont work, (for an throwable Entity/Item) shouldnt i be able to rightclick on the air or anywhere else to even spawn it, i mean, it goes straight until it hits anything and then a iceblock appear ..
  13. i got another problem with a "throwable Entity" , my normal one will spawn but that one doesnt , ofc its throwable but i cannot find a fix for this, i was learning by a tutorial but it end before the whole thing work ... thats the entitymodel.class: public class IceBall extends EntityThrowable { public IceBall(World par1World) { super(par1World); } public IceBall(World par1World, EntityPlayer par3EntityPlayer) { super(par1World, par3EntityPlayer); } public IceBall(World par1World, double par2, double par4, double par6) { super(par1World, par2, par4, par6); } public int ticks = 20; public void onEntityUpdate() { if (this.ticks <= 0) { this.ticks = 20; setDead(); } else { this.ticks -= 1; } } protected void onImpact(MovingObjectPosition par1MovingObjectPosition) { if (par1MovingObjectPosition.entityHit != null) { double x = 0.0D; double y = 0.0D; double z = 0.0D; EntityLivingBase living = (EntityLivingBase)par1MovingObjectPosition.entityHit; living.addPotionEffect(new PotionEffect(Potion.moveSlowdown.getId(), 300, 3000)); x = par1MovingObjectPosition.entityHit.posX; y = par1MovingObjectPosition.entityHit.posY; z = par1MovingObjectPosition.entityHit.posZ; worldObj.setBlockState(new BlockPos(x , y + 2, z), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x + 1, y + 2, z), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x - 1, y + 2, z), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x , y + 2, z + 1), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x , y + 2, z - 1), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x + 1, y + 2, z + 1), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x + 1, y + 2, z - 1), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x - 1, y + 2, z + 1), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x - 1, y + 2, z - 1), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x + 2, y + 1, z), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x + 2, y , z), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x - 2, y + 1, z), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x - 2, y , z), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x , y + 1, z + 2), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x , y , z + 2), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x , y + 1, z - 2), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x , y , z - 2), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x + 2, y + 1, z + 1), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x + 2, y , z + 1), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x + 2, y + 1, z - 1), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x + 2, y , z - 1), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x - 1, y + 1, z + 2), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x - 1, y , z + 2), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x + 1, y + 1, z + 2), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x + 1, y , z + 2), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x - 2, y + 1, z + 1), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x - 2, y , z + 1), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x - 2, y + 1, z - 1), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x - 2, y , z - 1), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x - 1, y + 1, z - 2), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x - 1, y , z - 2), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x + 1, y + 1, z - 2), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x + 1, y , z - 2), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x + 2, y + 1, z + 2), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x + 2, y , z + 2), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x - 2, y + 1, z + 2), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x - 2, y , z + 2), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x + 2, y + 1, z- 2), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x + 2, y , z - 2), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x - 2, y + 1, z -2), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x - 2, y , z - 2), Blocks.packed_ice.getDefaultState()); par1MovingObjectPosition.entityHit.attackEntityFrom(DamageSource.causeThrownDamage(this, getThrower()), 5.0F); } if (!this.worldObj.isRemote) { int x = par1MovingObjectPosition.getBlockPos().getX(); int y = par1MovingObjectPosition.getBlockPos().getY(); int z = par1MovingObjectPosition.getBlockPos().getZ(); worldObj.setBlockState(new BlockPos(x , y + 2, z), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x + 1, y + 2, z), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x - 1, y + 2, z), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x , y + 2, z + 1), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x , y + 2, z - 1), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x + 1, y + 2, z + 1), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x + 1, y + 2, z - 1), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x - 1, y + 2, z + 1), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x - 1, y + 2, z - 1), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x + 2, y + 1, z), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x + 2, y, z), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x - 2, y + 1, z), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x - 2, y, z), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x , y + 1, z + 2), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x , y, z + 2), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x , y + 1, z - 2), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x , y, z - 2), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x + 2, y + 1, z + 1), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x + 2, y, z + 1), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x + 2, y + 1, z - 1), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x + 2, y, z - 1), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x - 1, y + 1, z + 2), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x - 1, y, z + 2), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x + 1, y + 1, z + 2), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x + 1, y, z + 2), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x - 2, y + 1, z + 1), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x - 2, y, z + 1), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x - 2, y + 1, z - 1), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x - 2, y, z - 1), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x - 1, y + 1, z - 2), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x - 1, y, z - 2), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x + 1, y + 1, z - 2), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x + 1, y, z - 2), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x + 2, y + 1, z + 2), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x + 2, y, z + 2), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x - 2, y + 1, z + 2), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x - 2, y, z + 2), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x + 2, y + 1, z - 2), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x + 2, y, z - 2), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x - 2, y + 1, z - 2), Blocks.packed_ice.getDefaultState()); worldObj.setBlockState(new BlockPos(x - 2, y, z - 2), Blocks.packed_ice.getDefaultState()); setDead(); } } } THATS THE MODEL public class ModelBall extends ModelBase { ModelRenderer Shape1; ModelRenderer Shape2; ModelRenderer Shape3; ModelRenderer Shape4; ModelRenderer Shape5; ModelRenderer Shape6; ModelRenderer Shape7; public ModelBall() { this.textureWidth = 64; this.textureHeight = 64; this.Shape1 = new ModelRenderer(this, 0, 0); this.Shape1.addBox(0.0F, 0.0F, 0.0F, 4, 4, 4); this.Shape1.setRotationPoint(-1.0F, 0.0F, -3.0F); this.Shape1.setTextureSize(64, 64); this.Shape1.mirror = true; setRotation(this.Shape1, 0.0F, 0.0F, 0.0F); this.Shape2 = new ModelRenderer(this, 0, 0); this.Shape2.addBox(0.0F, 0.0F, 0.0F, 3, 1, 3); this.Shape2.setRotationPoint(-0.5F, -0.7F, -2.5F); this.Shape2.setTextureSize(64, 64); this.Shape2.mirror = true; setRotation(this.Shape2, 0.0F, 0.0F, 0.0F); this.Shape3 = new ModelRenderer(this, 0, 0); this.Shape3.addBox(0.0F, 0.0F, 0.0F, 3, 1, 3); this.Shape3.setRotationPoint(-0.5F, 3.7F, -2.5F); this.Shape3.setTextureSize(64, 64); this.Shape3.mirror = true; setRotation(this.Shape3, 0.0F, 0.0F, 0.0F); this.Shape4 = new ModelRenderer(this, 0, 0); this.Shape4.addBox(0.0F, 0.0F, 0.0F, 1, 3, 3); this.Shape4.setRotationPoint(-1.7F, 0.5F, -2.5F); this.Shape4.setTextureSize(64, 64); this.Shape4.mirror = true; setRotation(this.Shape4, 0.0F, 0.0F, 0.0F); this.Shape5 = new ModelRenderer(this, 0, 0); this.Shape5.addBox(0.0F, 0.0F, 0.0F, 1, 3, 3); this.Shape5.setRotationPoint(2.7F, 0.5F, -2.5F); this.Shape5.setTextureSize(64, 64); this.Shape5.mirror = true; setRotation(this.Shape5, 0.0F, 0.0F, 0.0F); this.Shape6 = new ModelRenderer(this, 0, 0); this.Shape6.addBox(0.0F, 0.0F, 0.0F, 3, 3, 1); this.Shape6.setRotationPoint(-0.5F, 0.5F, 0.7F); this.Shape6.setTextureSize(64, 64); this.Shape6.mirror = true; setRotation(this.Shape6, 0.0F, 0.0F, 0.0F); this.Shape7 = new ModelRenderer(this, 0, 0); this.Shape7.addBox(0.0F, 0.0F, 0.0F, 3, 3, 1); this.Shape7.setRotationPoint(-0.5F, 0.5F, -3.7F); this.Shape7.setTextureSize(64, 64); this.Shape7.mirror = true; setRotation(this.Shape7, 0.0F, 0.0F, 0.0F); } public void func_78088_a(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) { super.render(entity, f, f1, f2, f3, f4, f5); setRotationAngles(f, f1, f2, f3, f4, f5); this.Shape1.render(f5); this.Shape2.render(f5); this.Shape3.render(f5); this.Shape4.render(f5); this.Shape5.render(f5); this.Shape6.render(f5); this.Shape7.render(f5); } private void setRotation(ModelRenderer model, float x, float y, float z) { model.rotateAngleX = x; model.rotateAngleY = y; model.rotateAngleZ = z; } public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5) { super.setRotationAngles(f, f1, f2, f3, f4, f5, null); } } the spawnegg etc is there but when i want to spawn it, it wont appear ... and when i want to "addspawn" it wont let me ..(ofc bcuz its a throwable item)
  14. it work, thank you very much choonster!!!
  15. "If i remove the line : "EntityCreator.generateSpawnEgg();" it works but the egg wont spawn any entity when i click rightclick.
  16. Hello Dear Forum, my "EntityCreator" wont work ... it looks like, theres a problem with registering the Spawn egg ... GOT ANOTHER PROBLEM; PLEASE READ BELOW POST --- ERROR LOG--- ---- Minecraft Crash Report ---- // My bad. Time: 13.10.16 16:53 Description: Initializing game java.lang.IllegalArgumentException: Entity not registered in classToString map: class ArturFarid.BlockUpdate.entity.EntityModelTest at net.minecraftforge.fml.common.registry.EntityRegistry.registerEgg(EntityRegistry.java:221) at ArturFarid.BlockUpdate.init.EntityCreator.generateSpawnEgg(EntityCreator.java:27) at ArturFarid.BlockUpdate.BlocksUpdate.Init(BlocksUpdate.java:47) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:560) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:211) at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:189) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:118) at net.minecraftforge.fml.common.Loader.initializeMods(Loader.java:737) at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:310) at net.minecraft.client.Minecraft.startGame(Minecraft.java:532) at net.minecraft.client.Minecraft.run(Minecraft.java:360) at net.minecraft.client.main.Main.main(Main.java:116) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) at GradleStart.main(GradleStart.java:26) --- ENTITYCREATOR--- public class EntityCreator { public static void registerEntities() { registerEntity(EntityModelTest.class, "EntityModelTest", 64, 20, true); } public static void setEntityToSpawn() { EntityRegistry.addSpawn(EntityModelTest.class, 5, 1, 10, EnumCreatureType.MONSTER, BiomeGenBase.beach, BiomeGenBase.birchForest, BiomeGenBase.birchForestHills, BiomeGenBase.coldBeach, BiomeGenBase.coldTaiga, BiomeGenBase.coldTaigaHills, BiomeGenBase.desert, BiomeGenBase.desertHills, BiomeGenBase.extremeHills, BiomeGenBase.extremeHillsEdge, BiomeGenBase.extremeHillsPlus, BiomeGenBase.forest, BiomeGenBase.forestHills, BiomeGenBase.hell, BiomeGenBase.jungle, BiomeGenBase.plains); } public static void generateSpawnEgg() { EntityRegistry.registerEgg(EntityModelTest.class, 0, 0); } private static int entityID = 0; /** * Register an entity with the specified tracking values. * * @param entityClass The entity's class * @param entityName The entity's unique name * @param trackingRange The range at which MC will send tracking updates * @param updateFrequency The frequency of tracking updates * @param sendsVelocityUpdates Whether to send velocity information packets as well */ private static void registerEntity(Class<? extends Entity> entityClass, String entityName, int trackingRange, int updateFrequency, boolean sendsVelocityUpdates) { EntityRegistry.registerModEntity(entityClass, entityName, entityID++, BlocksUpdate.instance, trackingRange, updateFrequency, sendsVelocityUpdates); } } --- MY TEST MODEL --- public class ModelTest extends ModelBase { //fields ModelRenderer leg2; ModelRenderer leg1; ModelRenderer body; ModelRenderer head; public ModelTest() { textureWidth = 64; textureHeight = 32; leg2 = new ModelRenderer(this, 10, 14); leg2.addBox(-1F, 0F, -3F, 3, 15, 3); leg2.setRotationPoint(4F, 9F, 1F); leg2.setTextureSize(64, 32); leg2.mirror = true; setRotation(leg2, 0F, 0F, 0F); leg1 = new ModelRenderer(this, 52, 10); leg1.addBox(-2F, 0F, -3F, 3, 15, 3); leg1.setRotationPoint(-5F, 9F, 1F); leg1.setTextureSize(64, 32); leg1.mirror = true; setRotation(leg1, 0F, 0F, 0F); body = new ModelRenderer(this, 0, 0); body.addBox(0F, 0F, 0F, 17, 20, ; body.setRotationPoint(-9F, -11F, -5F); body.setTextureSize(64, 32); body.mirror = true; setRotation(body, 0F, 0F, 0F); head = new ModelRenderer(this, 41, 0); head.addBox(-4F, -5F, -2F, 8, 5, 4); head.setRotationPoint(-1F, -11F, -2F); head.setTextureSize(64, 32); head.mirror = true; setRotation(head, 0F, 0F, 0F); } public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) { super.render(entity, f, f1, f2, f3, f4, f5); setRotationAngles(f, f1, f2, f3, f4, f5, entity); leg2.render(f5); leg1.render(f5); body.render(f5); head.render(f5); } private void setRotation(ModelRenderer model, float x, float y, float z) { model.rotateAngleX = x; model.rotateAngleY = y; model.rotateAngleZ = z; } public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5, Entity entity) { super.setRotationAngles(f, f1, f2, f3, f4, f5, entity); this.leg1.rotateAngleX = MathHelper.cos(f * 0.6662F) * 1.4F * f1; this.leg2.rotateAngleX = MathHelper.cos(f * 0.6662F + (float)Math.PI) * 1.4F * f1; this.leg1.rotateAngleY = 0.0F; this.leg2.rotateAngleY = 0.0F; } } --- MY CLIENTPROXY --- public class ClientProxy extends CommonProxy { public void registeRenders() { BlocksUpdate.registerRenders(); ItemsUpdate.registerRenders(); } public void registerEntityRenders() { RenderingRegistry.registerEntityRenderingHandler(EntityModelTest.class, new RenderModelTest()); //use depricated method } } --- MY RENDER MODEL --- public class RenderModelTest extends RenderLiving{ public RenderModelTest() { super(Minecraft.getMinecraft().getRenderManager(), new ModelTest(), 0); } @Override protected ResourceLocation getEntityTexture(Entity entity) { return new ResourceLocation("blockupdate", "textures/entity/ModelTest.png"); } } --- MY MAIN CLASS --- @Mod(modid = "BlockUpdate", name="BlockUpdate Mod", version="2.1", acceptedMinecraftVersions="[1.8.9]") public class BlocksUpdate { @SidedProxy(clientSide="ArturFarid.BlockUpdate.proxy.ClientProxy", serverSide="ArturFarid.BlockUpdate.proxy.CommonProxy") public static CommonProxy proxy; public static Item_Tab item_tab = new Item_Tab(); public static Sword_Tab sword_tab = new Sword_Tab(); public static Food_Tab food_tab = new Food_Tab(); public static Devil_Fruit_Tab devil_fruit_tab = new Devil_Fruit_Tab(); @Instance public static BlocksUpdate instance; @EventHandler public void preInit(FMLPreInitializationEvent event) { ArturFarid.BlockUpdate.init.BlocksUpdate.init(); ArturFarid.BlockUpdate.init.BlocksUpdate.register(); ItemsUpdate.init(); ItemsUpdate.register(); } @EventHandler public void Init(FMLInitializationEvent event) { EntityCreator.generateSpawnEgg(); EntityCreator.registerEntities(); EntityCreator.setEntityToSpawn(); } @EventHandler public void postInit(FMLPostInitializationEvent event) {} }
  17. Hello@All , Lets say, im trying and trying whole day ... can someone tell me , how to make a "throwable" item .. i got already a class with the "functionality" ... it throw it and explode after , i got another "Entity Class" which is a "Ball" ... i know it sound weird but ... what is left to do, i know it sometimes and then its wrong ... here my entityball for anyone who needs it maybe: public class ModelBall extends ModelBase { ModelRenderer Shape1; ModelRenderer Shape2; ModelRenderer Shape3; ModelRenderer Shape4; ModelRenderer Shape5; ModelRenderer Shape6; ModelRenderer Shape7; public ModelBall() { this.textureWidth = 64; this.textureHeight = 64; this.Shape1 = new ModelRenderer(this, 0, 0); this.Shape1.addBox(0.0F, 0.0F, 0.0F, 4, 4, 4); this.Shape1.setRotationPoint(-1.0F, 0.0F, -3.0F); this.Shape1.setTextureSize(64, 64); this.Shape1.mirror = true; setRotation(this.Shape1, 0.0F, 0.0F, 0.0F); this.Shape2 = new ModelRenderer(this, 0, 0); this.Shape2.addBox(0.0F, 0.0F, 0.0F, 3, 1, 3); this.Shape2.setRotationPoint(-0.5F, -0.7F, -2.5F); this.Shape2.setTextureSize(64, 64); this.Shape2.mirror = true; setRotation(this.Shape2, 0.0F, 0.0F, 0.0F); this.Shape3 = new ModelRenderer(this, 0, 0); this.Shape3.addBox(0.0F, 0.0F, 0.0F, 3, 1, 3); this.Shape3.setRotationPoint(-0.5F, 3.7F, -2.5F); this.Shape3.setTextureSize(64, 64); this.Shape3.mirror = true; setRotation(this.Shape3, 0.0F, 0.0F, 0.0F); this.Shape4 = new ModelRenderer(this, 0, 0); this.Shape4.addBox(0.0F, 0.0F, 0.0F, 1, 3, 3); this.Shape4.setRotationPoint(-1.7F, 0.5F, -2.5F); this.Shape4.setTextureSize(64, 64); this.Shape4.mirror = true; setRotation(this.Shape4, 0.0F, 0.0F, 0.0F); this.Shape5 = new ModelRenderer(this, 0, 0); this.Shape5.addBox(0.0F, 0.0F, 0.0F, 1, 3, 3); this.Shape5.setRotationPoint(2.7F, 0.5F, -2.5F); this.Shape5.setTextureSize(64, 64); this.Shape5.mirror = true; setRotation(this.Shape5, 0.0F, 0.0F, 0.0F); this.Shape6 = new ModelRenderer(this, 0, 0); this.Shape6.addBox(0.0F, 0.0F, 0.0F, 3, 3, 1); this.Shape6.setRotationPoint(-0.5F, 0.5F, 0.7F); this.Shape6.setTextureSize(64, 64); this.Shape6.mirror = true; setRotation(this.Shape6, 0.0F, 0.0F, 0.0F); this.Shape7 = new ModelRenderer(this, 0, 0); this.Shape7.addBox(0.0F, 0.0F, 0.0F, 3, 3, 1); this.Shape7.setRotationPoint(-0.5F, 0.5F, -3.7F); this.Shape7.setTextureSize(64, 64); this.Shape7.mirror = true; setRotation(this.Shape7, 0.0F, 0.0F, 0.0F); } public void func_78088_a(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) { super.render(entity, f, f1, f2, f3, f4, f5); setRotationAngles(f, f1, f2, f3, f4, f5); this.Shape1.render(f5); this.Shape2.render(f5); this.Shape3.render(f5); this.Shape4.render(f5); this.Shape5.render(f5); this.Shape6.render(f5); this.Shape7.render(f5); } private void setRotation(ModelRenderer model, float x, float y, float z) { model.rotateAngleX = x; model.rotateAngleY = y; model.rotateAngleZ = z; } public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5) { super.setRotationAngles(f, f1, f2, f3, f4, f5, null); } } here the functionality which it will have : public class Test2Skill extends EntityThrowable { public int explosionRadius = 10; public Test2Skill(World par1World) { super(par1World); } public Test2Skill(World par1World, EntityPlayer par3EntityPlayer) { super(par1World, par3EntityPlayer); } public Test2Skill(World par1World, double par2, double par4, double par6) { super(par1World, par2, par4, par6); } public int ticks = 30; public void onEntityUpdate() { if (this.ticks <= 0) { this.ticks = 30; setDead(); } else { this.ticks -= 1; } } protected void onImpact(MovingObjectPosition par1MovingObjectPosition) { if (par1MovingObjectPosition.entityHit != null) { par1MovingObjectPosition.entityHit.attackEntityFrom(DamageSource.causeThrownDamage(this, getThrower()), 20.0F); } if (!this.worldObj.isRemote) { this.worldObj.createExplosion(this, this.posX, this.posY, this.posZ, this.explosionRadius, true); setDead(); } } protected float getGravityVelocity() { return 0.001F; } } and now ... what is left to code .... :X:X
  18. thank you both, i got it!
  19. hello guys, i got a small problem, i cannot find a small solution for "setBlock" ... and for int x = par1MovingObjectPosition.blockX; int y = par1MovingObjectPosition.blockY; int z = par1MovingObjectPosition.blockZ; also not ... x.x public class IceBall extends EntityThrowable { public IceBall(World par1World) { super(par1World); } public IceBall(World par1World, EntityPlayer par3EntityPlayer) { super(par1World, par3EntityPlayer); } public IceBall(World par1World, double par2, double par4, double par6) { super(par1World, par2, par4, par6); } public int ticks = 20; public void onEntityUpdate() { if (this.ticks <= 0) { this.ticks = 20; setDead(); } else { this.ticks -= 1; } } protected void onImpact(MovingObjectPosition par1MovingObjectPosition) { if (par1MovingObjectPosition.entityHit != null) { double x = 0.0D; double y = 0.0D; double z = 0.0D; EntityLivingBase living = (EntityLivingBase)par1MovingObjectPosition.entityHit; living.addPotionEffect(new PotionEffect(Potion.moveSlowdown.getId(), 300, 3000)); x = par1MovingObjectPosition.entityHit.posX; y = par1MovingObjectPosition.entityHit.posY; z = par1MovingObjectPosition.entityHit.posZ; this.worldObj.setBlock((int)x, (int)y + 2, (int)z, Blocks.packed_ice); this.worldObj.setBlock((int)x + 1, (int)y + 2, (int)z, Blocks.packed_ice); this.worldObj.setBlock((int)x - 1, (int)y + 2, (int)z, Blocks.packed_ice); this.worldObj.setBlock((int)x, (int)y + 2, (int)z + 1, Blocks.packed_ice); this.worldObj.setBlock((int)x, (int)y + 2, (int)z - 1, Blocks.packed_ice); this.worldObj.setBlock((int)x + 1, (int)y + 2, (int)z + 1, Blocks.packed_ice); this.worldObj.setBlock((int)x + 1, (int)y + 2, (int)z - 1, Blocks.packed_ice); this.worldObj.setBlock((int)x - 1, (int)y + 2, (int)z + 1, Blocks.packed_ice); this.worldObj.setBlock((int)x - 1, (int)y + 2, (int)z - 1, Blocks.packed_ice); this.worldObj.setBlock((int)x + 2, (int)y + 1, (int)z, Blocks.packed_ice); this.worldObj.setBlock((int)x + 2, (int)y, (int)z, Blocks.packed_ice); this.worldObj.setBlock((int)x - 2, (int)y + 1, (int)z, Blocks.packed_ice); this.worldObj.setBlock((int)x - 2, (int)y, (int)z, Blocks.packed_ice); this.worldObj.setBlock((int)x, (int)y + 1, (int)z + 2, Blocks.packed_ice); this.worldObj.setBlock((int)x, (int)y, (int)z + 2, Blocks.packed_ice); this.worldObj.setBlock((int)x, (int)y + 1, (int)z - 2, Blocks.packed_ice); this.worldObj.setBlock((int)x, (int)y, (int)z - 2, Blocks.packed_ice); this.worldObj.setBlock((int)x + 2, (int)y + 1, (int)z + 1, Blocks.packed_ice); this.worldObj.setBlock((int)x + 2, (int)y, (int)z + 1, Blocks.packed_ice); this.worldObj.setBlock((int)x + 2, (int)y + 1, (int)z - 1, Blocks.packed_ice); this.worldObj.setBlock((int)x + 2, (int)y, (int)z - 1, Blocks.packed_ice); this.worldObj.setBlock((int)x - 1, (int)y + 1, (int)z + 2, Blocks.packed_ice); this.worldObj.setBlock((int)x - 1, (int)y, (int)z + 2, Blocks.packed_ice); this.worldObj.setBlock((int)x + 1, (int)y + 1, (int)z + 2, Blocks.packed_ice); this.worldObj.setBlock((int)x + 1, (int)y, (int)z + 2, Blocks.packed_ice); this.worldObj.setBlock((int)x - 2, (int)y + 1, (int)z + 1, Blocks.packed_ice); this.worldObj.setBlock((int)x - 2, (int)y, (int)z + 1, Blocks.packed_ice); this.worldObj.setBlock((int)x - 2, (int)y + 1, (int)z - 1, Blocks.packed_ice); this.worldObj.setBlock((int)x - 2, (int)y, (int)z - 1, Blocks.packed_ice); this.worldObj.setBlock((int)x - 1, (int)y + 1, (int)z - 2, Blocks.packed_ice); this.worldObj.setBlock((int)x - 1, (int)y, (int)z - 2, Blocks.packed_ice); this.worldObj.setBlock((int)x + 1, (int)y + 1, (int)z - 2, Blocks.packed_ice); this.worldObj.setBlock((int)x + 1, (int)y, (int)z - 2, Blocks.packed_ice); this.worldObj.setBlock((int)x + 2, (int)y + 1, (int)z + 2, Blocks.packed_ice); this.worldObj.setBlock((int)x + 2, (int)y, (int)z + 2, Blocks.packed_ice); this.worldObj.setBlock((int)x - 2, (int)y + 1, (int)z + 2, Blocks.packed_ice); this.worldObj.setBlock((int)x - 2, (int)y, (int)z + 2, Blocks.packed_ice); this.worldObj.setBlock((int)x + 2, (int)y + 1, (int)z - 2, Blocks.packed_ice); this.worldObj.setBlock((int)x + 2, (int)y, (int)z - 2, Blocks.packed_ice); this.worldObj.setBlock((int)x - 2, (int)y + 1, (int)z - 2, Blocks.packed_ice); this.worldObj.setBlock((int)x - 2, (int)y, (int)z - 2, Blocks.packed_ice); par1MovingObjectPosition.entityHit.attackEntityFrom(DamageSource.causeThrownDamage(this, getThrower()), 5.0F); } if (!this.worldObj.isRemote) { int x = par1MovingObjectPosition.blockX; int y = par1MovingObjectPosition.blockY; int z = par1MovingObjectPosition.blockZ; this.worldObj.setBlock(x, y + 2, z, Blocks.packed_ice); this.worldObj.setBlock(x, y + 2, z, Blocks.packed_ice); this.worldObj.setBlock(x + 1, y + 2, z, Blocks.packed_ice); this.worldObj.setBlock(x - 1, y + 2, z, Blocks.packed_ice); this.worldObj.setBlock(x, y + 2, z + 1, Blocks.packed_ice); this.worldObj.setBlock(x, y + 2, z - 1, Blocks.packed_ice); this.worldObj.setBlock(x + 1, y + 2, z + 1, Blocks.packed_ice); this.worldObj.setBlock(x + 1, y + 2, z - 1, Blocks.packed_ice); this.worldObj.setBlock(x - 1, y + 2, z + 1, Blocks.packed_ice); this.worldObj.setBlock(x - 1, y + 2, z - 1, Blocks.packed_ice); this.worldObj.setBlock(x + 2, y + 1, z, Blocks.packed_ice); this.worldObj.setBlock(x + 2, y, z, Blocks.packed_ice); this.worldObj.setBlock(x - 2, y + 1, z, Blocks.packed_ice); this.worldObj.setBlock(x - 2, y, z, Blocks.packed_ice); this.worldObj.setBlock(x, y + 1, z + 2, Blocks.packed_ice); this.worldObj.setBlock(x, y, z + 2, Blocks.packed_ice); this.worldObj.setBlock(x, y + 1, z - 2, Blocks.packed_ice); this.worldObj.setBlock(x, y, z - 2, Blocks.packed_ice); this.worldObj.setBlock(x + 2, y + 1, z + 1, Blocks.packed_ice); this.worldObj.setBlock(x + 2, y, z + 1, Blocks.packed_ice); this.worldObj.setBlock(x + 2, y + 1, z - 1, Blocks.packed_ice); this.worldObj.setBlock(x + 2, y, z - 1, Blocks.packed_ice); this.worldObj.setBlock(x - 1, y + 1, z + 2, Blocks.packed_ice); this.worldObj.setBlock(x - 1, y, z + 2, Blocks.packed_ice); this.worldObj.setBlock(x + 1, y + 1, z + 2, Blocks.packed_ice); this.worldObj.setBlock(x + 1, y, z + 2, Blocks.packed_ice); this.worldObj.setBlock(x - 2, y + 1, z + 1, Blocks.packed_ice); this.worldObj.setBlock(x - 2, y, z + 1, Blocks.packed_ice); this.worldObj.setBlock(x - 2, y + 1, z - 1, Blocks.packed_ice); this.worldObj.setBlock(x - 2, y, z - 1, Blocks.packed_ice); this.worldObj.setBlock(x - 1, y + 1, z - 2, Blocks.packed_ice); this.worldObj.setBlock(x - 1, y, z - 2, Blocks.packed_ice); this.worldObj.setBlock(x + 1, y + 1, z - 2, Blocks.packed_ice); this.worldObj.setBlock(x + 1, y, z - 2, Blocks.packed_ice); this.worldObj.setBlock(x + 2, y + 1, z + 2, Blocks.packed_ice); this.worldObj.setBlock(x + 2, y, z + 2, Blocks.packed_ice); this.worldObj.setBlock(x - 2, y + 1, z + 2, Blocks.packed_ice); this.worldObj.setBlock(x - 2, y, z + 2, Blocks.packed_ice); this.worldObj.setBlock(x + 2, y + 1, z - 2, Blocks.packed_ice); this.worldObj.setBlock(x + 2, y, z - 2, Blocks.packed_ice); this.worldObj.setBlock(x - 2, y + 1, z - 2, Blocks.packed_ice); this.worldObj.setBlock(x - 2, y, z - 2, Blocks.packed_ice); setDead(); } } }
  20. nvm, i got it, thank you!
  21. i actualy download the newest version of it and it isnt in there
  22. cant find the function func_77978_p, func_71008_a, anyone have any idea?
  23. well at the end, it does work now, i just pasted the functions to another "Item class" and it does work, anyway, thanks for all for your help
  24. hmm thats weird ... shit problem, im still into it :3
  25. its not a block, its a Item :3

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.