How do I make an enderpearl get thrown when a keybind is pressed when holding a specific item

Started by Pikman1210 on

Topic category: Help with modding (Java Edition)

Last seen on 18:29, 30. Sep 2021
Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I make an enderpearl get thrown when a keybind is pressed when holding a specific item

How can I make an ENDERPEARL (needs to be an enderpearl) get thrown to where the player is looking when a keybind is pressed (ex. K) and the player is holding a specific item

Please add an image of the procedure too, just telling me stuff I dont know doesn't really help

Last seen on 04:28, 26. Jan 2024
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
so first, if you are good…
Tue, 09/14/2021 - 05:28

so first, if you are good with commands, do some search, if not, make a Custom Ender Pearl, it is really easy, there should be tons of tutorials for it, also remember, this section is called "Help With Modding", not "Make me a Mod because I can't"

Last seen on 04:28, 26. Jan 2024
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
but if you really can't,…
Tue, 09/14/2021 - 05:30

but if you really can't, make a ranged item with the same texture of the Ender Pearl, make it's durability 1 and make the bullet itself, when bullet hits block Trigger set location of event/target entity to X Y C, on your keybind, when Key Is Pressed shoot ranged item at X Y Z type:Your_Ender_Pearl

Last seen on 04:28, 26. Jan 2024
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
forgot the item thing, on…
Tue, 09/14/2021 - 05:31

forgot the item thing, on Key Is Pressed before the Shoot make an If item in main hand of event/target entity = The_Item OR

item in off hand of Event/Target entity = The_Item

Last seen on 04:28, 26. Jan 2024
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
and to make it shoot where…
Tue, 09/14/2021 - 05:33

and to make it shoot where player is facing, since I am  it sure the block makes it shoot where the player is looking at, use the Direction Section the Procedures provide 

Last seen on 18:35, 4. Sep 2023
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Not helpful, RexCerv. We…
Sat, 07/22/2023 - 15:17

Not helpful, RexCerv. We need images.