1
0
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:
Gerkiz
2024-10-27 00:01:15 +02:00
parent 42b9762812
commit fa2a607bc5
23 changed files with 640 additions and 334 deletions

View File

@@ -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)