Coder Social home page Coder Social logo

raspberrymint's Introduction

rasPberrY MinT

formerly Raspberry Jam Mod for Minetest

Implements most of Raspberry PI Minecraft API in Minetest.

Original project by Alexander Pruss

Intro

This fork was started to add Linux servers support.

Setup

Copy or link the raspberrymint dir into your minetest/mods dir, or into your game mods dir.

If you have secure.enable_security = true in minetest.conf (recommended), then make sure you have raspberrymint listed under secure.trusted_mods. Raspberry Mint cannot be rewritten without needing to be trusted, because of the following essential features:

  • loading tcp/ip socket dynamic library
  • executing and terminating python interpreter with /py command.

minetest.conf fragment example:

secure.enable_security = true
secure.trusted_mods = raspberrymint

Troubleshooting

You could need to add a row on your world's world.mt file:

load_mod_raspberrymint = true

Running python scripts on Minetest

Connect to your Minetest server or run a local server and authenticate yourself using login and password. Be sure to have jammer permissions: \grantme jammer.

Now try with: \py cube. If it works try with other script in mcpipy directory, omit the .py extension. Some scripts needs additional parameters.

Real work/real glory

Original Raspberry Jam Mod project - original for Minecraft

Original Raspberry Jam Mod project - porting to Minetest

Lua socket libraries

About lua-socket

lua-socket libraries use some binary files core.dll / core.so. I add the core.so file from Raspbian official package that works on my Raspberry Pi (ARM) server. I add the cx64.so file (former core.so) from Ubuntu official package that works on my x86_64 workstation.

Why did you fork?

Raspberry Jam Mod runs on Windows and use python 2.x. Last project activity was 2 year old.

Why did you rename the project?

Raspberry Jam Mod was on stand by from so many years that I needed to adapt the code to Minetest's new security policy, adding missing mod setup files (like mod.conf file) and so on. No radical rewriting was done, but so many small changes are diffuses everywhere. A full Linux support was my primary target, Windows support is not granted. So I prefer to change mod's name because I'm not able to grant a regression-proof code.

What's new

Raspberry Mint's Lua code is tested on Minetest 5.5.0-dev. Raspberry Mint's Python code is now working on Python 3.x, all tests and examples (but one) actually run on Linux, I hope them works good on Windows yet.

Added jammer permissions.

Weak security scripts

There are two example's scripts that could run arbitrary python's code. These scripts are renamed

  • console.py.keepsafe
  • turtleconsole.py.keepsafe

you need to remove .keepsafe extension to make them work. Do it on a security and singleplayer environment only.

NeuroSky script

I have no Neuro Sky devices on my own. So neurosky.py is not tested.

Roadmap

  • Make this module working in a multiplayer environment.
  • Add a usage help to all modules need it.
  • Add new sample scripts.
  • Add new samples scripts using Turing machine's library.
  • Tune up existing code.

raspberrymint's People

Contributors

alienhunter3010 avatar arpruss avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

cabelo

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.