Everything posted by KingYoshiYT
-
Custom Grenade Blowing Players Up?
This is also the only thing in my mod that explodes! The only damage I take is from falling
-
Custom Grenade Blowing Players Up?
I have tested in survival mode
-
Custom Grenade Blowing Players Up?
Anybody?
-
[1.7.10] Minecraft not rendering entity (trying to make bullets)
I'm not sure then
-
[1.7.10] Minecraft not rendering entity (trying to make bullets)
Have you got the ServerProxy and ClientProxy classes?
-
Custom Grenade Blowing Players Up?
Okay, I will wait for someone else!
-
Custom Grenade Blowing Players Up?
Are you sure that removing the player argument will make the grenade kill the player if in contact with the explosion?
-
Custom Grenade Blowing Players Up?
When I remove the player argument I am not able to throw the grenade
-
Custom Grenade Blowing Players Up?
So all I need to do is remove that?
-
Custom Grenade Blowing Players Up?
Where is the player argument? What do you mean by "When I spawn Entity"?
-
Custom Grenade Blowing Players Up?
Grenade Class: package palmerjj01.YoshiCraft.Grenades; import palmerjj01.YoshiCraft.Entity.EntityYoshiGrenade; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.world.World; public class ItemYoshiGrenade extends Item { public ItemStack onItemRightClick(ItemStack itemstack, World world, EntityPlayer player){ if(!player.capabilities.isCreativeMode){ --itemstack.stackSize; } world.playSoundAtEntity(player, "random.fizz", 0.7F, 0.8F); if(!world.isRemote){ world.spawnEntityInWorld(new EntityYoshiGrenade(world, player)); } return itemstack; } } EntityGrenadeClass: package palmerjj01.YoshiCraft.Entity; import net.minecraft.entity.Entity; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.projectile.EntityThrowable; import net.minecraft.util.MovingObjectPosition; import net.minecraft.world.World; public class EntityYoshiGrenade extends EntityThrowable { public EntityYoshiGrenade(World p_i1776_1_) { super(p_i1776_1_); } public EntityYoshiGrenade(World world, EntityLivingBase entity){ super(world, entity); } @Override public void onImpact(MovingObjectPosition p_70184_1_) { for(int i = 0; i < 10; i++){ this.worldObj.spawnParticle("flame", this.posX, this.posY, this.posZ, 0,9F, 0.9F); } if(!this.worldObj.isRemote){ this.setDead(); if(!this.worldObj.isRemote){ this.worldObj.createExplosion((Entity) null, this.posX, this.posY, this.posZ, 4.5F, true); } } } }
-
Custom Grenade Blowing Players Up?
Which code?
-
Custom Grenade Blowing Players Up?
Hello, I have made a custom grenade and it harms all but the player! How do I make it damage the player and display a custom death message, please could you tell me how or give me a link to a video tutorial?
-
How to make a custom chest
Please could someone tell me how to make a custom chest in detail or recommend me to check someone who has a tutorial in detail for that?
-
[1.7.10]Custom Death Messages
How do I do that?
-
[1.7.10]Custom Death Messages
Hello . I am trying to get a custom death message on my mod after the food they eat has removed all their hearts! How do I do that?
IPS spam blocked by CleanTalk.