Send block data to clients
This commit is contained in:
@@ -294,6 +294,8 @@ function client_context(listing: ModListing): ClientContext {
|
||||
if (nid === AIR) return AIR_ID;
|
||||
return EverythingRegistry.get_by_id<BlockRegistry>("blocks", nid)?.id;
|
||||
},
|
||||
get_client_data: (x, y, z, field) =>
|
||||
structuredClone(need_client().level.get_block_data(x, y, z)?.[field]) as never,
|
||||
biome_at: (x, z) => rules_world.biome_at(x, z),
|
||||
season_at: (x, z) => rules_world.season_at(x, z),
|
||||
get time() {
|
||||
|
||||
Reference in New Issue
Block a user