Page 1 of 1
Need on_entity_click
Posted: Mon Aug 22, 2016 5:01 am
by osldgoth
Similar to how the repair pack can apply an effect to damaged buildings (entities) (I am unsure how this is done), I would like an item that I can use on entities which will apply an effect of my creation. Yet I can not seem to be able to do this with the 0.13.17 defined events. My only other option is to make my item an entity so I can use on_built_entity. Am I missing something or should I just make the entity?
Re: Need on_entity_click
Posted: Mon Aug 22, 2016 6:44 am
by Supercheese
osldgoth wrote:Similar to how the repair pack can apply an effect to damaged buildings (entities) (I am unsure how this is done), I would like an item that I can use on entities which will apply an effect of my creation. Yet I can not seem to be able to do this with the 0.13.17 defined events. My only other option is to make my item an entity so I can use on_built_entity. Am I missing something or should I just make the entity?
You can use
on_put_item.
For example:
https://github.com/Suprcheese/Orbital-I ... #L390-L403
Re: Need on_entity_click
Posted: Mon Aug 22, 2016 5:49 pm
by osldgoth
oh, yes that is a way to do it. I don't know how I didn't see that. I should be able to do something similar for my needs. thanks
Re: Need on_entity_click
Posted: Mon Aug 22, 2016 10:26 pm
by aubergine18
You've just solved a road block I was having in one of my in-development mods. Thanks Supercheese!
Re: Need on_entity_click
Posted: Mon Aug 22, 2016 11:31 pm
by Supercheese
aubergine18 wrote:You've just solved a road block I was having in one of my in-development mods. Thanks Supercheese!
You're most welcome.
