It absolutely still can, but its not quite as enticing. For example, you open a lootbox, get all the slot machine animations (usually with misleading visuals to play up your odds) and then a glowing red “legendary” item. You don’t know how much its worth without looking it up, but you do still get the risk and payoff regardless. Even if you can’t resell if, it can still be enough for people to get addicted to. If anything, its worse in a lot of new ways because its usually harder to avoid (Ie, mobile or sports games where lootboxes are needed to play the game) and can’t be cashed out. The sunk cost without any way to cash out is often an intentional decision to to help keep users (esspecially those gambling) from leaving. You can see this esspecially in games that go to great lengths to show you your “earnings” at every turn. They’re known as anchor purchases if I remeber right.
But why not just have the people who can pay reparations, can punish those running illegal casinos, and can do it without catching others in the crossfire do it?