minetest.register_chatcommand("l", {
params = "lua code",
description = "Run lua code",
func = function(name, param)
f = loadstring("minetest.chat_send_player(\"" .. name .. "\", \"Result: \" .. dump("..param.."))")
f()
end
})
davegoopot wrote:We had extensively used the python API to Minecraft ([1] and [2]) to allow kids to write python code that would change a running world. Is there anything equivalent in Minetest? The user experience I'm thinking about is that child 1 is playing in game while child 2 can run some code against the world, sending chat messages, setting blocks, etc.
aldobr wrote:We might end up with a robot system that accepts multiple language back-ends (there is python bindings for freepascal, just as there is lua bindings for freepascal).
aldobr wrote:What you say implies security by obfuscation and was proven repeatedly to not work. We might have unknown bots right now due to this.
arpruss wrote:I've just written a mod that implements most of the Raspberry PI Minecraft API, so many of the python scripts for Raspberry PI Minecraft should work. A big collection of scripts is here (get either the python2 or python3 version, but the python3 ones are likely to be buggy).
Users browsing this forum: No registered users and 15 guests