🖱️ Interactions Module - gumpdev/mars GitHub Wiki
Events:
Need declare Intent.INTERACTIONS to Work
Mars.interactions.onMobInteract(Entity entity, MobInteract action) -> void
entityis the entity will be listenedactionis an action with PlayerInteractAtEntityEvent
Will listen when any player interacts with this entity
Mars.interactions.onItemInteract(ItemStack item, ItemInteract action) -> void
itemis the entity will be listenedactionis an action with PlayerInteractEvent
Will listen when any player interacts with the item
Mars.interactions.onBlockInteract(Material materiakl, ItemInteract action) -> void
itemis the material of block will be listenedactionis an action with PlayerInteractEvent
Will listen when any player interacts with the type of block