Giter Club home page Giter Club logo

bitquest's Introduction

BitQuest

BitQuest is a Minecraft server with a Bitcoin-denominated currency and MMORPG elements, as the form of a plugin.

Play BitQuest

To play in the official BitQuest server you must own the official Minecraft game for PC/Mac/Linux and add this server address:

play.bitquest.co

How it works?

Everyone is a Bitcoin wallet

The BitQuest server and every player has a bitcoin address. Any player can receive and send bitcoin to any address inside or outside the game. This is useful for buying materials, selling crafts, trading, tipping, etcetera. A player just joined the server The playercan see it's bitcoin balance Thanks to the open nature of Bitcoin, all transactions in the server can be seen on the Blockchain using tools like Insight or Blockchain.Info. This is helpful for debugging and transparency.

And there's loot!

Every time a player kills an enemy (mob) there is a chance to get loot. If that is the case the server makes a transaction directly from the server address to the player address and the player is notified. A player got loot

Everyone can send money anywhere

You can send Bitcoin to an outside wallet or other players using the Minecraft console command:

/transfer <amount> <recipient-bitcoin-address>

Player using transfer command Player notification Player's public transaction Players can also send money using email instead of a bitcoin address using:

/transfer <recipient-email>

With this method the recipient will receive an email notifying that a bitcoin transaction has been made to a XAPO wallet linked to his email.

Server address

The BitQuest server has it's own address, used for giving Loot to players

About the back-end technology

All persistent data is saved in a redis database so the server can respond as quick as possible. All transactions in the game are on-chain using Blockcypher's microtransactions API or in case of player-to-email XAPO API.

Everybody is welcome to contribute. :D

Here are the instructions to modify, install and run the server as localhost.

Running BitQuest locally using Docker

Running locally via Docker is the fastest way to develop and test code. Docker is also the recommended way to run BitQuest in production, however configuration is different.

Installing requirements

  1. Install Docker, the container runtime (For Windows and Mac, Beta version is recommended): Get Docker
  2. Install docker-compose, to orchestrate our dev environment: Get docker-compose

Setting up the Gradle Workspace

There is a gradle task that will download and compile the latest Spigot API and other tools needed to compile the project. Using a terminal, go to the project directory and run:

./gradlew setupWorkspace

(Linux and OSX)

gradlew.bat setupWorkspace

(Windows Powershell)

Compile BitQuest

We compile using the gradle shadowJar task that will create a file under build/libs. Since this folder is "synced" with docker, you won't need to restart the server to update changes. (Just use /reload) inside the game

./gradlew shadowJar

(Linux and OSX)

gradlew.bat shadowJar

(Windows Powershell)

Configure your server

To run BitQuest you'll need to specify a Bitcoin address for your local loot wallet, a BlockCypher API key and (optional) your Mojang account UUID so you are admin in your own server (otherwise you won't have op). To do this, you'll need to create a development.yml file that docker-compose will use to configure your local BitQuest instance.

Here's an example of a development.yml file (please note we use spaces instead of tabs):

spigot:
  environment:
    - BITQUEST_ENV=development
    - BITCOIN_ADDRESS=1ERWGdhjHpmanu2ftScpvM8KM4P8Yrxct2
    - BITCOIN_PRIVATE_KEY=a2a2f8b8308e699901d60c567a15633a88362c8f67c9f8a2dc02720c2e18d8a2
    - BLOCKCYPHER_API_KEY=some_api_key
    - ADMIN_UUID=921baf7a-893b-4249-b6a7-ae010ff75551

Running BitQuest

From the directroy where this repository was cloned, just run:

docker-compose up

You will be able to connect to localhost in Minecraft, and every time you run the shadowJar gradle task, following a /reloadcommand inside the game, you'll be playing in your newest compiled code, without restarting or rebuilding the container.

More info

More info about BitQuest at https://bitquest.co/

bitquest's People

Contributors

explodi avatar juanj avatar ragingmouser avatar psilupan avatar chulini avatar dabtime avatar kordless avatar jordigoyanes avatar

Watchers

Manuel Parra 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.