Singleplayer Commands?

Is there any way you can put say ULX into singleplayer so you can set your hp and spawn ents in singleplayer or would this not be possible?

It’s possible.

Oh I just found out how with listen server thing. Never mind.