Five questions

Started by OQBdude123 on Fri, 02/12/2016 - 18:44
Last seen on 22:08, 29. Nov 2017
Joined Apr 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Five questions
Fri, 02/12/2016 - 18:44

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?

Last seen on 15:42, 24. Sep 2018
Joined Aug 2013
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • wiki contributor
  • moderator
1. & 2. It's possible , but
Fri, 02/12/2016 - 19:38

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");

}

Last seen on 22:08, 29. Nov 2017
Joined Apr 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Okay I am happy with 3 and 5
Sat, 02/13/2016 - 22:33

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