You've already forked ComfyFactorio
mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2025-11-27 22:38:18 +02:00
Mtn: rework map generation logic
This commit is contained in:
@@ -574,14 +574,20 @@ end
|
||||
|
||||
Public.new('get', 'Hover over an object to get its name.')
|
||||
:require_admin()
|
||||
:add_parameter('die', true, 'string')
|
||||
:add_alias('entity')
|
||||
:callback(
|
||||
function (player)
|
||||
function (player, action)
|
||||
local entity = player.selected
|
||||
if not entity or not entity.valid then
|
||||
return false
|
||||
end
|
||||
|
||||
if action and action == 'die' then
|
||||
entity.die()
|
||||
return true
|
||||
end
|
||||
|
||||
player.print('[color=orange]Name:[/color] ' .. entity.name)
|
||||
player.print('[color=orange]Type:[/color] ' .. entity.type)
|
||||
player.print('[color=orange]Force:[/color] ' .. entity.force.name)
|
||||
|
||||
Reference in New Issue
Block a user