Skip to content

Commit

Permalink
i use gentoo btw
Browse files Browse the repository at this point in the history
Signed-off-by: MisileLab <[email protected]>
  • Loading branch information
MisileLab committed Nov 6, 2023
2 parents 9091084 + a87dfdf commit fbdc57c
Show file tree
Hide file tree
Showing 9 changed files with 156 additions and 111 deletions.
8 changes: 4 additions & 4 deletions archives/sntapi/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion archives/sntapi/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ readme = "README.md"
[tool.poetry.dependencies]
python = "3.12.0"
fastapi = "0.104.1"
uvicorn = "0.24.0"
uvicorn = "0.24.0.post1"
pymongo = "4.6.0"
python-dotenv = "1.0.0"
selenium = "4.15.2"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
From d3b7efd81d099cabb5626532852bef835b19a116 Mon Sep 17 00:00:00 2001
From: MisileLab <[email protected]>
Date: Sun, 5 Nov 2023 23:25:54 +0900
Subject: [PATCH] a furnace recipe - overcooker

---
scripts/overcooker/main.ts | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/scripts/overcooker/main.ts b/scripts/overcooker/main.ts
index 6dcd1a0d..287f33ec 100644
--- a/scripts/overcooker/main.ts
+++ b/scripts/overcooker/main.ts
@@ -2,6 +2,13 @@ import { GameType } from "bdsx/bds/player";
import { MobEffectIds, MobEffectInstance } from "../../bdsx/bds/effects";
import { CANCEL } from "../../bdsx/common";
import { events } from "../../bdsx/event";
+import { ItemStack } from "bdsx/bds/inventory";
+
+const Recipes = {
+ "furnace": {
+ "minecraft:chicken": "minecraft:cooked_chicken"
+ }
+}

events.playerJoin.on((e)=>{
// this is debug
@@ -14,7 +21,13 @@ events.blockInteractedWith.on((e)=>{
}
const block = e.player.getRegion().getBlock(e.blockPos);
if (block.blockLegacy.getCommandName() == "minecraft:furnace") {
-
+ let item = e.player.getInventory().getContainer().getSlots().get(0);
+ let name = item.getName();
+ if (item == null || Recipes.furnace[name] == undefined) {
+ return CANCEL;
+ }
+ e.player.getInventory().getContainer().getItem(0).load(ItemStack.constructWith(Recipes.furnace[name], 1).save())
+ e.player.sendInventory()
} else {
return CANCEL;
}
--
2.42.0.windows.2

8 changes: 4 additions & 4 deletions projects/dsb/iusearchbtw-backend/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion projects/dsb/iusearchbtw-backend/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ readme = "README.md"
python = "3.12.0"
pymongo = "4.6.0"
fastapi = "0.104.1"
uvicorn = "0.24.0"
uvicorn = "0.24.0.post1"

[build-system]
requires = ["poetry-core"]
Expand Down
8 changes: 4 additions & 4 deletions projects/dsb/mcs/xms/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion projects/dsb/mcs/xms/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ python = "3.12.0"
pymongo = "4.6.0"
fastapi = "0.104.1"
websockets = "12.0"
uvicorn = "0.24.0"
uvicorn = "0.24.0.post1"
python-dotenv = "1.0.0"

[build-system]
Expand Down
Loading

0 comments on commit fbdc57c

Please sign in to comment.