Code: Select all
surface.create_entity{ name = "car", position = {player.position.x - 1, player.position.y - 1} }
Code: Select all
surface.create_entity{ name = "car", position = {player.position.x - 1, player.position.y - 1} }
Oh, darn … I should have made that one more click!Bilka wrote: Wed Jul 20, 2022 3:42 pm The internal name of that entity isn't car. Only the localised name is.
Code: Select all
local test = table.deepcopy(data.raw["spider-vehicle"]["spidertron"])
test.name = "car"
data:extend({test})
Code: Select all
3.501 Error ModManager.cpp:1558: Error while loading entity prototype "car" (spider-vehicle): Prototype "car" registered twice