Skip to content

Instantly share code, notes, and snippets.

View OgelGames's full-sized avatar
💭
¯\_(ツ)_/¯

OgelGames

💭
¯\_(ツ)_/¯
View GitHub Profile
@OgelGames
OgelGames / luacontroller_json.lua
Last active January 24, 2021 03:19
Luacontroller JSON parser
-- JSON parser code for the Minetest Mesecons Luacontroller
-- License: CC0 1.0 Universal (public domain)
-- Based on https://gist.github.com/tylerneylon/59f4bcf316be525b30ab
-- Rewritten by OgelGames to work in the restricted Luacontroller sandbox
-- Designed to be copy-pasted into a standalone Luacontroller
if event.type ~= "digiline" or event.channel ~= "json" then
return