Given an entity, a before event, an after event, and an attribute related to the entity, generate a sentence as output. Your sentence should show the changes in the attribute of the entity.

Example Input: entity: regen-all
before: required
after: cast
attr: state
Example Output: state of regen-all was required before and cast afterwards

Example Input: entity: loop
before: on farthest side
after: pulled through loop
attr: position
Example Output: position of loop was on the farthest side before and pulled through other loop afterwards

Example Input: entity: the heat source
before: unprepared
after: set up
attr: state
Example Output:
state of the heat source was unprepared before and set up afterwards