Started by OQBdude123
on Fri, 02/12/2016 - 18:44
Topic category: Advanced modding
Hello? 1. isn't there a custom code that summons particles or a line of particles in the directon of the players direction.?
2. Even better, if there is some code to make an arrow invisible and summon particles at the arrow?
3. is it possible to inflict potion effects at an enemy when hit with an item or hit multiple enemies at a time?
4. Is there a custom code for a tool that breaks a 3x3x3 area around you when breaking one block.
5. How do I add color codes to an item name?
1. & 2. It's possible , but you must code it. Try for example make your own Throwable entity that would make every tick particles inside self.
3.
public boolean hitEntity(ItemStack itemStack, EntityLivingBase target, EntityLivingBase attacker) {target.addPotionEffect(new PotionEffect(POTION ID, TIME, AMPLIFIER)); return true; }
4. This you can make with event stacking in Mcreator
5.
public void addInformation(ItemStack itemstack, EntityPlayer par2EntityPlayer, List list, boolean par4)
{
itemstack.setStackDisplayName(EnumChatFormatting.GOLD + "name of the item");
}
Okay I am happy with 3 and 5 (just need location) but for 1, 2, and for what are the codes and where do i put them