Started by
Dorikan
on
Topic category: Help with Minecraft modding (Java Edition)
I want to make a recipe for a pearl that makes 0 damage when thrown
I did the recipe, but i don't know how to make these pearls make no damage
rn i am trying to do something with Shoot(throwable projectile of type Ender pearl)
One possible solution would be to create a ranged item, then under procedures:
When it hits a block, teleport event/target entity to x y+1 z
When it hits a living entity, teleport source entity to x y z
You could also easily use procedures for when ranged item used to create a cooldown
If you want to make it similar to an ender pearl, after you create it you can change the ammo requirement to the new ranged item, you can also change the item for projectile texture to the ranged item, set max use count to 0, and set max stack size to 16.
The downside of this system is that it will get you stuck in walls more often than a normal ender pearl, but it should work for the most part, and deal no damage.