How to detect freeplay?
Posted: Thu Jun 30, 2016 8:07 am
I'm trying to update Pocket Bots Start to 0.13. I got it so far that it does everything it's supposed to do but only if I comment out the way it detects if it's running in freeplay mode.
I would like to post the update on forums but not before I make it not to add stuff to players when they are playing scenarios. In other words, I need to find if the game is in freeplay mode or not.
In 0.12 it used this code to detect it:
but freeplay interface doesn't seem to exist.
Running gave me interfaces for the other mods I was running but nothing related to what mode the game was in.
Does anyone know how to detect the freeplay in 0.13?
I would like to post the update on forums but not before I make it not to add stuff to players when they are playing scenarios. In other words, I need to find if the game is in freeplay mode or not.
In 0.12 it used this code to detect it:
Code: Select all
if remote.interfaces.freeplay then
....
Running
Code: Select all
/c game.player.print(serpent.block(remote.interfaces))
Does anyone know how to detect the freeplay in 0.13?