Sculk requires Fabric and the Fabric API.
One example of Sculk is the following.
// load.sk
events.onPlayerBreakBlock(function(player, block) {
if (block == Blocks.get(minecraft:diamond_block)){
return false; // cancel the event by returning false
}
return true;
});
For more examples, please refer to Examples
If you have a suggestion and would like to make Sculk better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
Distributed under the Apache 2.0 License. See LICENSE for more information.
Sculk has been inspired from many projects listed below.