Code: Select all
game.create_entity{name = "flying-text", position = resultchest.position, text = "+" .. addition, color = {g = 1}}
Code: Select all
game.player.surface.create_entity{name = "flying-text", position = resultchest.position, text = "+" .. addition, color = {g = 1}}