Giter Club home page Giter Club logo

edenlost_citizenship's Introduction

edenlost_citizenship

Implements the mod described in EdenLostMinetest/edenlost#34

https://github.com/EdenLostMinetest/edenlost_citizenship

This mod is used to keep a player at the "spawn area" until they've gained the citizenship privilege. In EdenLost, this is used to ensure that the players have agreed to the server rules, which are posted at spawn.

This mod does not contain any mechanism to grant this privilege. The world admins should create this mechanism themselves. One way to do this is to build a small mesecons machine near the posted rules consisting of:

  1. mesecons_commandblock:commandblock_off with the script: grant @nearest citizenship.
  2. mesecons_button:mesecons_off connected to the command block.
  3. A sign above it that reads something like: "I've read and agreed to the rules."

Configuration

You should add the following to your minetest.conf. The default settings inside the mod itself (init.lua) are for EdenLost.

    # Lower bounds of area where non-citizens may explore.
    citizenship.pos1 = x,y,z

    # Upper bounds of area where non-citizens may explore.
    citizenship.pos2 = x,y,z

    # Where to teleport non-citizens to when they escape these bounds.
    citizenship.return_point = x,y,z

    # Angle to orient player to when warping them to the return_point.
    citizenship.return_yaw_degrees = 180

    # How often to scan all active players to enforce citizenship check.
    citizenship.scan_seconds = 10

Jail mod integration.

If the server also runs EdenLost's jail mod, then the citizenship test is skipped, since the jail is outside of the spawn area.

https://github.com/EdenLostMinetest/edenlost_jail

edenlost_citizenship's People

Contributors

dennisjenkins75 avatar

Watchers

 avatar

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.