Register recipe api

This commit is contained in:
2026-10-28 23:56:29 -03:00
parent 5d64b801a3
commit 43521b3675
9 changed files with 235 additions and 42 deletions
+3 -1
View File
@@ -96,7 +96,9 @@ Shared scripts hold a block component's rules, the code Minecraft runs on both s
(`state_for_placement`), how it changes with the blocks beside it (`on_neighbor_change`) and what right clicking it
changes (`on_interact`, like a trapdoor opening). See [Block Components](../blocks/components.md#rules). The server
script registers the rest of the same component, like its `on_break` or an `on_interact` that opens a screen, under the
same id. They also hold [fluids' rules](../resources/fluids.md#rules), which name and color a fluid by its data.
same id. They also hold [fluids' rules](../resources/fluids.md#rules), which name and color a fluid by its data, and
[recipes made in code](../resources/recipes.md#recipes-from-scripts), which every side has without the server sending
them.
On the server they run on the real world. On a client they run on what that client shows, when its player places, breaks
or right clicks a block, so a fence joins its neighbors the moment it's placed. What they change there is a guess, and