Real world is like that, you can “code” manipulate the world. However there is a limit on some extent and in such worlds there will be other limits like a consensual physics rule on servers entry, like “local laws”. Rather than LUA think on declarative contracts that limit your crafting based on agreed parameters.