Skip to content

TrippleAWap/Database

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 

Repository files navigation

Example Usage

import { world, system } from "@minecraft/server";

import { Database } from "./database";
const dB = new Database("name_here")
system.runInterval(async () => {
	for (const player of world.getAllPlayers()) {
		// dont have to manually set the database if you use variables
		const stats = dB[player.id] ??= { money: 0 }
		stats.money += 1
		player.onScreenDisplay.setActionBar(`${JSON.stringify(dB)}`)
	}
})

This is a simple database using scoreboards for MCBE created by TrippleAWap!

About

Prototype based object abstrascted Database for MCBE dynamic properties.

Resources

License

Stars

5 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors