Page 1 of 1

[Request] onentityclick event

Posted: Wed Jun 03, 2015 10:34 am
by iUltimateLP
So I tried to spawn an entity and when i click on that entity it should come up with a gui, but in the wiki i haven't found any event for this, e.g. game.onentityclick or something.
Is there something like this and I dont find it? If not, I would like to have it :D

Thanks!

Re: [Request] onentityclick event

Posted: Sat Jun 13, 2015 10:18 am
by jorgenRe
Wha type of entity are you creating?
And what type of entity did you take as a template?
for example: type = "assembling-machine",

Re: [Request] onentityclick event

Posted: Sun Jul 19, 2015 10:43 pm
by Programmdude
I attempted to do a similar thing, with the accumulator as a base.
DyTech had a workaround where it would add a button in the top left corner that was only visible near the required building, but that isn't as nice as an on entity click event.

Re: [Request] onentityclick event

Posted: Sat Dec 26, 2015 12:53 pm
by luan
Is there a way, as for now, to do this?
This seems to be really useful. I want to make a new type o "crafting", not based on any other. So I was going to try do it by hand removing items from player inv and giving the new item.
One very quirky workaround I learned with turret-range mod, is to make an item that allows you to access guis, but in the background what it does is: create an invisible entity to trigger on created, destroy it on the handler and get position to find other entity in the same place.
But it would be awesome to have simple custom guis for entities.

Re: [Request] onentityclick event

Posted: Fri Mar 11, 2022 10:47 pm
by curiosity
This should be moved to implemented requests. There's an event for opening the entity GUI, there are linked game controls. Any way I can see to interpret this thread has been implemented.