Giter Club home page Giter Club logo

bitblocks's Introduction

A Minecraft plugin designed to achieve a game economy using Bitcoin. It uses the [off-chain RTWire](https://rtwire.com) API endpoints to do this, so anyone can setup this for their own server. Please read the RTWire docs(https://rtwire.com/docs) for more information. Bitblocks needs ScriptCraft (https://scriptcraftjs.org) as dependency.

Every player has a wallet

Screenshot RTwire uses Account IDs to make off-chain transactions, but it is also able to link each account to a new generated bitcoin address. So every player has their own wallet to make instant transactions between players and also deposit from an external bitcoin wallet. Players can withdraw to an external wallet paying the miner fee + small RTwire fee. Here the fun point is to make it circulate inside the server.

The balance is shown in a player scoreboard in bits

Villager Market

Screenshot Screenshot Players can open the "Villager Market" by right-clicking any villager. I recommend you to use the collected funds to pay for the expensive server costs, but you can make it circulate to wherever you want.

Land Market

Players can buy land with their bitcoin wallet. Claimed land will be protected from griefing. Players can abandon the land. They can also grant building permission to friends they trust (co-owner) but only the original owner can kick. It basically works by placing a sing on the chunk you want, and typing betwen # characters your desired land name, like #My mansion# and you can use the 4 lines of the sign. Land name is changable. Screenshot Land Market comes from the LandProtect repository. Read the README to learn how to use it. You can also watch this animated GIF.

Built on ScriptCraft

Scriptcraft is a java minecraft plugin to bridge our javascript with the Bukkit API. All the player data is stored in a JSON database that comes with ScriptCraft. It is called serverdb.json and will be stored in the server's root folder.
Download ScriptCraft

Installation

Follow the installation instructions to install Bitblocks in your Minecraft server.

Commands:

/send [amount in bits] [player name] Sends instantly bits to an another online player (no fees).
/transfer [amount in bits] [bitcoin address](NOT working yet) Sends bits to external bitcoin wallet. (fees = miner fee + 1% of amount to RTWire).
/wallet Shows bitcoin address in blockhain.info link, shows balance and refreshes the scoreboard if necessary.
/bithelp Shows commands.

Join discord:

LICENSE: MIT

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.