I'm trying to create baseball in MC. Can anyone help me accomplish these 3 things? 1.Make a snowball not break when it hits a block and drop as an item instead; 2.Have a snow ball bounce off a sword/shield, (like a ghast fireball); and 3.Have the snowball go into the nearest player's inventory when right-clicked with a certain item? And is this possible with ONE certain snowball?
Snowballs are both items and entities so you could give the player a special snowball that you could track with commands and when the player throws that snowball you could edit the snowball that spawns to give it certain functions such as maybe not having gravity or rendering as another item. Bouncing the snowball is tricky but i dont think it is imposible you could track the player if he activates the shielf when the snowball is somewhat like half a block near him you could activate some commands to kill that snowball and spawn another one facing the way the player looks so it would look like it bounced and the same could be possible with the sword.