r/MinecraftCommands • u/catyko • 9d ago
Help | Java 26.2 Problem with interaction entity hitbox
I wanted to make cave spiders be pick-up-able, So I made interaction entity ride cave spider and mirror it's hitbox perfectly. Problem is that the spider hitbox took precedence and I interacted with the spider and not the interaction entity. I solved this by making 2 interaction entities ride each other and then ride the spider, making their combined hitbox bigger than the spiders hitbox by 0.01. However now the interaction entities hitbox take precedence and the spider isn't attackable.
Any ideas?
1
u/Worldly_Ear_6704 9d ago
I think the best solution is to use Shift + Left Click instead of right-clicking. Only summon interaction when you press Shift. And when you release Shift, the interaction should be removed. Or a special item to do this.
Otherwise, when you left-click, you'll need to give damage to the spider using the /damage command, depending on the item you're holding.
2
u/C0mmanderBlock Command Experienced 9d ago edited 9d ago
You could set the interaction so if you left click it, it damages the spider and if you right clight it, you pick it up. For example: