How can I make a throwing egg giving an item when colliding ?

Started by Theoasterix on Sat, 08/15/2020 - 16:10

Topic category: Help with modding (Java Edition)

Last seen on 20:09, 24. Sep 2020
Joined Jun 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How can I make a throwing egg giving an item when colliding ?
Sat, 08/15/2020 - 16:10

Hi ! I currently make a mod where I would like the eggs to give shells when launched. I don't have any idea of how to do it, I tried using procedures but I don't find a way to make it work. If anyone knows, it would help me a lot !

Last seen on 20:09, 24. Sep 2020
Joined Jun 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
No idea ?
Tue, 08/25/2020 - 12:37

No idea ?

Last seen on 18:05, 14. Sep 2020
Joined Apr 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Yes. You can do this quite…
Tue, 08/25/2020 - 18:37

Yes. You can do this quite easily. Here is how: 

https://imgur.com/a/okzbF3k

Last seen on 23:11, 28. Oct 2020
Joined Feb 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
And in case you want to, you…
Tue, 08/25/2020 - 18:39

And in case you want to, you can change the "spawn gem" to just giving the player the shells.

Last seen on 20:09, 24. Sep 2020
Joined Jun 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Thanks for replies ! But how…
Wed, 08/26/2020 - 19:35

Thanks for replies ! But how can I do if I want to do the same thing with vanilla eggs ?