Blueprint Streak Counter


Do you no longer want to keep track in your head of how many times you've already placed this Blueprint down in a row? This mod helps you, but books inside books hold in the cursor or books in the character inventory are not supported.

Utilities
2 months ago
1.1 - 2.0
456
Blueprints
Owner:
Icicubes
Source:
N/A
Homepage:
N/A
License:
MIT
Created:
1 year, 6 months ago
Latest Version:
1.2.0 (2 months ago)
Factorio version:
1.1 - 2.0
Downloaded by:
456 users

Do you no longer want to keep track in your head of how many times you've already placed this Blueprint down in a row? This mod helps you, but books inside books hold in the cursor or books in the character inventory are not supported.

count entities turned on:
If one Entity or tile of the Blueprint does not get placed, the Streak counter does not get increased.
That means if you have protruding power poles in the grid, as shown in picture 3, they will cause the blueprint counter to be off by 1 (as seen in picture 2), counting as two unbuilt entities each time the blueprint is placed consecutively.

I feel like this is a too 'hardcore' feature to be in the base game.

Assumes one player can not place more than one Blueprint down in one Tick and that any two players can not have the same name. Also the mod breaks if you change the mod setting count entities while in a currently active streak, but the streak after that will be fine again. (There is a way by using the on_mod_settings_changed event to solve that super edge case by invalidating (forcing time out) the currently active streak.) I don't plan to ever have a GUI because I assume It would need to be updated every tick and currently it only uses the Factorio modding API for on_built_entity (a function call). Also fun fact about Factorio modding: For some reason "LuaPlayer.create_local_flying_text" with "create_at_cursor=true" does not allow any other customization at the same time. The documentation does not explain why this is the case.