🖱️ Interactions Module - gumpdev/mars GitHub Wiki

Events:

Need declare Intent.INTERACTIONS to Work

Mars.interactions.onMobInteract(Entity entity, MobInteract action) -> void

Will listen when any player interacts with this entity

Mars.interactions.onItemInteract(ItemStack item, ItemInteract action) -> void

Will listen when any player interacts with the item

Mars.interactions.onBlockInteract(Material materiakl, ItemInteract action) -> void

Will listen when any player interacts with the type of block