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
Copy file name to clipboardExpand all lines: CafeCosmos.AutomationExample/Readme.md
+92-9Lines changed: 92 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,12 +7,13 @@ This program demonstrates how to work with data on **CafeCosmos** using **Nether
7
7
The program interacts with Ethereum-based smart contracts to:
8
8
9
9
1. Access player information and local state.
10
-
2. Interact directly with MUD systems on the blockchain.
11
-
3. Query blockchain tables for specific data.
12
-
4. Process blockchain events for insights.
13
-
5. Retrieve and manage data from a PostgreSQL database using repositories.
10
+
2. Automation of common tasks like harvesting, crafting and cooking.
11
+
3. Interact directly with MUD systems on the blockchain.
12
+
4. Query blockchain tables for specific data.
13
+
5. Process blockchain events for insights.
14
+
6. Retrieve and manage data from a PostgreSQL database using repositories.
14
15
15
-
### Dependency on MUD Tables Log Processor
16
+
### Dependency on MUD Tables Log Processor for Example 6
16
17
17
18
This program relies on the **MUD Tables Log Processor** to fetch and process log events from the blockchain and populate the PostgreSQL database (`storerecords` table). If the background processor is not running, you won't be able to run that sample :), so comment it out.
18
19
@@ -105,7 +106,89 @@ Console.WriteLine("Advanced local state operations completed and saved.");
105
106
Console.WriteLine($"Previous Level: {previousLevel}, Current Level: {localState.PlayerLandInfo.LastLevelClaimed}");
106
107
```
107
108
108
-
### 2. System-Level Interactions
109
+
## 2. Automation Strategies
110
+
111
+
### Continuous Harvesting, Collecting, and Cooking Using Simple Appliances
112
+
113
+
This automation strategy demonstrates how to continuously interact with land appliances in **CafeCosmos**, such as coffee machines and blenders, to streamline gameplay. It automates the processes of collecting items, crafting recipes, cooking, and planting crops.
114
+
115
+
#### Key Features
116
+
117
+
1.**Automated Collection**: Automatically collects all ready-to-harvest items.
118
+
2.**Continuous Crafting and Cooking**: Crafts and places items on appliances for further processing.
119
+
3.**Smart Inventory Management**: Ensures efficient use of resources by checking recipe requirements and inventory.
120
+
4.**Crop Management**: Automates planting and watering seeds.
0 commit comments