Metaphysics

Mod

some scanner API for cc:tweaked

Client and server EquipmentTechnology

16.1k downloads
0 followers
Follow Save
Filter channels...

while true do local event, data = os.pullEvent("player_death") print(("say %s die, because %s "):format(data.name, data.source)) --谁死了, 伤害源是什么 if data.tags then --如果有标签 print("killer is "..data.name) --杀手是谁 print("killerhas tags %s"..table.concat(data.tags, ", ")) --杀手的标签 end end

修复canSeeSky精度

增加Mob扫描方法 getMobs() 可以从中筛选monster ---> if v.name == "monster"

Added Mob scanning Method getMobs() Can filter monsters from it ---> if v.name == "monster"

新增getPlayer和getMonster方法。 旧的getEntities尽量不要用了,性能开销大

Added getPlayer and getMonster methods. Try not to use the old getEntities method, as it has a large performance overhead.

修改扫描器:无视看不见天空的对象,比如地底生物、掩体内的目标、树下的目标 原本的getEntities和getShips换成了getEntitiesAll()和getShipsAll()

Modified scanner: ignore objects that cannot see the sky, such as underground creatures, targets in bunkers, targets under trees The original getEntities and getShips are replaced by getEntitiesAll() and getShipsAll()

Original version, written by kallen. Thanks for making this mod for my needs

原始版本,由kallen编写。感谢因我的需求制作该mod

basic scanner for entity and block 基础的玩家和实体扫描器


Project members

fashaodesu

Member

Details

Licensed AGPL-3.0-only
Published 8 months ago
Updated 8 months ago