1
0
mirror of https://github.com/p2r3/bareiron.git synced 2025-10-01 23:25:09 +02:00

drop apples and sticks from leaves

This commit is contained in:
p2r3
2025-08-12 04:52:45 +03:00
parent 85ed094674
commit ae4290e73e
2 changed files with 6 additions and 2 deletions

View File

@@ -364,8 +364,10 @@ int cs_playerAction (int client_fd) {
uint16_t item, tmp; uint16_t item, tmp;
if (block == B_oak_leaves) { if (block == B_oak_leaves) {
if (sequence % 40 < 2) item = I_oak_sapling; if (sequence % 200 < 2) item = I_apple;
else item = I_air; else if (sequence % 50 < 2) item = I_stick;
else if (sequence % 40 < 2) item = I_oak_sapling;
else item = 0;
} else item = B_to_I[block]; } else item = B_to_I[block];
uint8_t *inventory = getPlayerInventory(client_fd); uint8_t *inventory = getPlayerInventory(client_fd);

View File

@@ -524,5 +524,7 @@ extern uint16_t block_palette[256]; // Block palette
#define I_white_wool 213 #define I_white_wool 213
#define I_wither_rose 243 #define I_wither_rose 243
#define I_yellow_wool 217 #define I_yellow_wool 217
#define I_apple 857
#define I_stick 905
#endif #endif