You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Organise a big pack into modules with setup and per-tick hooks, so features stay separate as the pack grows.
/guide/twine
Write TypeScript, get a datapack
Here's a small function that greets every player and hands them some diamonds. The tabs
below are the actual files the compiler produced from it:
import{Datapack,v26_2,Selector,Item}from"helix";constdp=newDatapack("welcome",v26_2);dp.createFunction("greet").build((ctx)=>{constplayers=Selector.allPlayers();ctx.tellraw(players,"Welcome to the server!");ctx.playerGive(players,Item.DIAMOND,3);});