Njol / Skript

Skript is a Bukkit plugin which allows server admins to customize their server easily, but without the hassle of programming a plugin or asking/paying someone to program a plugin for them.
http://njol.ch/projects/skript
104 stars 60 forks source link

Get TypeID of clicked entity (numeric) #321

Open ghost opened 10 years ago

ghost commented 10 years ago

How can I get numeric type ID of entity? I need this for mod compatibility. Skript says all modded entities are "arrow" or "entity". Can you do that like here? https://github.com/Shevchik/ModFixNG/blob/master/src/modfixng/main/Commands.java#L165 It should be expression %type id of entity%. For example, for frame it is 18, for Galacticraft's rocket - 159. Can you please implement that?

georgePadolsey commented 10 years ago

Problem with this is minecraft is trying to move away from magical values (eg block id's, item id's etc.) because of that it seems a bit counter productive plugin side. Though in the future an item list will be sent from the server to the player on join so depending on how it will be implemented there may be another way to do this.

G1R-Productions commented 10 years ago

I would like this as well, I think I requested it in the past but it disappeared into the mass of issues floating around.