Page 1 of 1

[Reques] entity.prototype return specific prorotype

Posted: Sat Dec 20, 2014 4:47 pm
by KexĂ­k
Hi I would like to request feature, that entity.prototype will not return LuaEntityPrototpe in all cases, but if i have for example type storage-tank, that it will return LuaEntityPipeConnectablePrototype so we will be able access and get info from specific variables, in this example from fluid_box. Creating meta-items isnt best workaround when player can see them when selecting conditions/filter for smart devices.

Re: [Reques] entity.prototype return specific prorotype

Posted: Sat Dec 20, 2014 6:06 pm
by L0771
i want add this too
prototype.minable.hardness
prototype.minable.mining_time

It's the same issue, I wouldn't make another post for the same request :)

Re: [Reques] entity.prototype return specific prorotype

Posted: Sun Apr 19, 2015 7:52 am
by Rseding91
The entityprototype object has been significantly added to for the 0.12 version:
Added several new options to LuaEntityPrototype: mineableproperties, itemstoplacethis, collisionbox, selectionbox, order, group, subgroup, healingpertick, emissionspertick, corpses, selectableingame, weight, resistances, fastreplaceablegroup, loot, repairspeedmodifier

Re: [Reques] entity.prototype return specific prorotype

Posted: Wed Jun 10, 2015 3:20 am
by Yulgalminakf
Yes, this would be a perfect option. I'd love it if keys didn't have to be added in the C++ code for it to be accessible in lua. Hide only the more important variables that would break the game if changed.