Skip to content

Sandstone, a Javascript library for Minecraft datapacks.

License

Notifications You must be signed in to change notification settings

ncklwse/sandstone

This branch is 333 commits behind sandstone-mc/sandstone:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

c0b81fc Β· Apr 28, 2021
Jan 24, 2021
Jan 5, 2021
Dec 13, 2020
Apr 28, 2021
May 28, 2020
May 28, 2020
Jan 5, 2021
Aug 26, 2020
Jun 6, 2020
May 28, 2020
Jun 3, 2020
Mar 10, 2021
Apr 26, 2021
Jan 18, 2021
Mar 27, 2021
Apr 11, 2021

Repository files navigation

Sandstone

GitHub GitHub last commit Version Discord

Sandstone is a Typescript library for Minecraft Datapacks. It allows easy creation, debug and sharing of Minecraft functions, loot tables, predicates etc...

Interested? Join our Discord:

Discord

Features

πŸ’» Perfect autocompletion & IDE support

Sandstone tells you what a command expects, and autocompletes complicated arguments for you.

You don't need to remember commands syntax anymore.

autocomplete

This autocompletion works for all resources: commands, predicates, loot tables, advancements...

πŸ“‚ Better organisation of resources

You can have multiple functions, advancements, loot tables per files - or you can keep the vanilla organisation, and have only 1 per file. Sandstone allows you to organise your data pack as you prefer, without sticking to Mojang's conventions.

You also benefit from all the capabilities of a real programming language: multiline comments, indentation, documentation...

πŸš€ Useful and heavily optimized abstractions

Sandstone includes common and heavily optimized abstractions:

  • Control statements, with if, else if and else
  • Boolean logic, with or, and and not
  • Loops, with while and for
  • Sleep statement, which waits a certain time before running the next commands

These statements are most of the time more optimized than hand-written code, since they switch between different implementations to get the fastest one. They have been studied and designed for performance.

However, you stay free: you can keep using only vanilla commands, if you prefer - Sandstone does not get in your way.

πŸ‘ Easy to share

Sharing commands has never been easier. Just publish your functions on NPM, and everyone can use them to improve their own datapacks. Whether it's some common code like raycasting, or some new abstractions like better /tellraw, the Sandstone ecosystem grows by the day.

You can finally stop reinventing the wheel.

Supporting Sandstone

If you want to support Sandstone, the simplest way is to star the repository! It's actually very encouraging. stars

Getting started

See the Getting Started section on sandstone.dev to start using Sandstone!

About

Sandstone, a Javascript library for Minecraft datapacks.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 99.3%
  • Other 0.7%