Skip to content

πŸ–±οΈ Interactions Module

Gustavo M. Paes edited this page Sep 23, 2021 · 1 revision

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

Clone this wiki locally