Skip to content

Commit

Permalink
いろいろ(オートカーブとか)
Browse files Browse the repository at this point in the history
  • Loading branch information
gensokyo-kenken committed Mar 3, 2024
1 parent 1a39524 commit e7b89f2
Show file tree
Hide file tree
Showing 14 changed files with 82 additions and 57 deletions.
24 changes: 12 additions & 12 deletions TCMB(B)/functions/curve/pt0.mcfunction
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
execute as @e[tag=car1,r=1] at @s if block ^1^^17.5 rail -1 run scriptevent tcmb_minecart_engine:rotate -3
execute as @e[tag=car1,r=1] at @s if block ^1^^17.5 golden_rail -1 run scriptevent tcmb_minecart_engine:rotate -3
execute as @e[tag=car1,r=1] at @s if block ^1^^17.5 detector_rail -1 run scriptevent tcmb_minecart_engine:rotate -3
execute as @e[tag=car1,r=1] at @s if block ^-1^^17.5 rail -1 run scriptevent tcmb_minecart_engine:rotate 3
execute as @e[tag=car1,r=1] at @s if block ^-1^^17.5 golden_rail -1 run scriptevent tcmb_minecart_engine:rotate 3
execute as @e[tag=car1,r=1] at @s if block ^-1^^17.5 detector_rail -1 run scriptevent tcmb_minecart_engine:rotate 3
execute as @e[tag=car2,r=1] at @s if block ^-1^^-17.5 rail -1 run scriptevent tcmb_minecart_engine:rotate -3
execute as @e[tag=car2,r=1] at @s if block ^-1^^-17.5 golden_rail -1 run scriptevent tcmb_minecart_engine:rotate -3
execute as @e[tag=car2,r=1] at @s if block ^-1^^-17.5 detector_rail -1 run scriptevent tcmb_minecart_engine:rotate -3
execute as @e[tag=car2,r=1] at @s if block ^1^^-17.5 rail -1 run scriptevent tcmb_minecart_engine:rotate 3
execute as @e[tag=car2,r=1] at @s if block ^1^^-17.5 golden_rail -1 run scriptevent tcmb_minecart_engine:rotate 3
execute as @e[tag=car2,r=1] at @s if block ^1^^-17.5 detector_rail -1 run scriptevent tcmb_minecart_engine:rotate 3
execute as @e[tag=car1,r=1] at @s if block ^1^^17.5 rail run scriptevent tcmb_minecart_engine:rotate -3
execute as @e[tag=car1,r=1] at @s if block ^1^^17.5 golden_rail run scriptevent tcmb_minecart_engine:rotate -3
execute as @e[tag=car1,r=1] at @s if block ^1^^17.5 detector_rail run scriptevent tcmb_minecart_engine:rotate -3
execute as @e[tag=car1,r=1] at @s if block ^-1^^17.5 rail run scriptevent tcmb_minecart_engine:rotate 3
execute as @e[tag=car1,r=1] at @s if block ^-1^^17.5 golden_rail run scriptevent tcmb_minecart_engine:rotate 3
execute as @e[tag=car1,r=1] at @s if block ^-1^^17.5 detector_rail run scriptevent tcmb_minecart_engine:rotate 3
execute as @e[tag=car2,r=1] at @s if block ^-1^^-17.5 rail run scriptevent tcmb_minecart_engine:rotate -3
execute as @e[tag=car2,r=1] at @s if block ^-1^^-17.5 golden_rail run scriptevent tcmb_minecart_engine:rotate -3
execute as @e[tag=car2,r=1] at @s if block ^-1^^-17.5 detector_rail run scriptevent tcmb_minecart_engine:rotate -3
execute as @e[tag=car2,r=1] at @s if block ^1^^-17.5 rail run scriptevent tcmb_minecart_engine:rotate 3
execute as @e[tag=car2,r=1] at @s if block ^1^^-17.5 golden_rail run scriptevent tcmb_minecart_engine:rotate 3
execute as @e[tag=car2,r=1] at @s if block ^1^^-17.5 detector_rail run scriptevent tcmb_minecart_engine:rotate 3
8 changes: 4 additions & 4 deletions TCMB(B)/functions/curve/pt1.mcfunction
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
execute as @e[tag=car1,r=1] at @s if block ^1^1^17.5 structure_void -1 run scriptevent tcmb_minecart_engine:rotate -3
execute as @e[tag=car1,r=1] at @s if block ^-1^1^17.5 structure_void -1 run scriptevent tcmb_minecart_engine:rotate 3
execute as @e[tag=car2,r=1] at @s if block ^-1^1^-17.5 structure_void -1 run scriptevent tcmb_minecart_engine:rotate -3
execute as @e[tag=car2,r=1] at @s if block ^1^1^-17.5 structure_void -1 run scriptevent tcmb_minecart_engine:rotate 3
execute as @e[tag=car1,r=1] at @s if block ^1^1^17.5 structure_void run scriptevent tcmb_minecart_engine:rotate -3
execute as @e[tag=car1,r=1] at @s if block ^-1^1^17.5 structure_void run scriptevent tcmb_minecart_engine:rotate 3
execute as @e[tag=car2,r=1] at @s if block ^-1^1^-17.5 structure_void run scriptevent tcmb_minecart_engine:rotate -3
execute as @e[tag=car2,r=1] at @s if block ^1^1^-17.5 structure_void run scriptevent tcmb_minecart_engine:rotate 3
8 changes: 4 additions & 4 deletions TCMB(B)/functions/curve/pt2.mcfunction
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
execute as @e[tag=car1,r=1] at @s if block ^1^2^17.5 structure_void -1 run scriptevent tcmb_minecart_engine:rotate -3
execute as @e[tag=car1,r=1] at @s if block ^-1^2^17.5 structure_void -1 run scriptevent tcmb_minecart_engine:rotate 3
execute as @e[tag=car2,r=1] at @s if block ^-1^2^-17.5 structure_void -1 run scriptevent tcmb_minecart_engine:rotate -3
execute as @e[tag=car2,r=1] at @s if block ^1^2^-17.5 structure_void -1 run scriptevent tcmb_minecart_engine:rotate 3
execute as @e[tag=car1,r=1] at @s if block ^1^2^17.5 structure_void run scriptevent tcmb_minecart_engine:rotate -3
execute as @e[tag=car1,r=1] at @s if block ^-1^2^17.5 structure_void run scriptevent tcmb_minecart_engine:rotate 3
execute as @e[tag=car2,r=1] at @s if block ^-1^2^-17.5 structure_void run scriptevent tcmb_minecart_engine:rotate -3
execute as @e[tag=car2,r=1] at @s if block ^1^2^-17.5 structure_void run scriptevent tcmb_minecart_engine:rotate 3
6 changes: 3 additions & 3 deletions TCMB(B)/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"header": {
"name": "TCMB",
"description": "Train Controller for Minecraft BE",
"version": [1, 2, 2],
"version": [1, 2, 3],
"uuid": "cfbba0b1-51fe-4f44-bd2b-d07a106617e7",
"min_engine_version": [1, 19, 50]
"min_engine_version": [1, 20, 50]
},
"modules": [
{
Expand All @@ -26,7 +26,7 @@
"dependencies": [
{
"uuid": "4bc491c8-d249-4cb9-9432-3bf4da163da3",
"version": [1, 2, 2]
"version": [1, 2, 3]
},
{
"module_name": "@minecraft/server",
Expand Down
7 changes: 2 additions & 5 deletions TCMB(B)/scripts/engine.js

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

2 changes: 1 addition & 1 deletion TCMB(B)/scripts/engine.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion TCMB(B)/scripts/main.js.map

Large diffs are not rendered by default.

34 changes: 22 additions & 12 deletions TCMB(B)/scripts/util.js

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

2 changes: 1 addition & 1 deletion TCMB(B)/scripts/util.js.map

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

6 changes: 3 additions & 3 deletions TCMB(R)/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
"header": {
"name": "TCMB",
"description": "Train Controller for Minecraft BE",
"version": [1, 2, 2],
"version": [1, 2, 3],
"uuid": "4bc491c8-d249-4cb9-9432-3bf4da163da3",
"pack_scope": "world",
"min_engine_version": [1, 19, 50]
"min_engine_version": [1, 20, 50]
},
"modules": [
{
Expand All @@ -19,7 +19,7 @@
"dependencies": [
{
"uuid": "cfbba0b1-51fe-4f44-bd2b-d07a106617e7",
"version": [1, 2, 2]
"version": [1, 2, 3]
}
],
"metadata": {
Expand Down
2 changes: 1 addition & 1 deletion ts/engine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* (c) TCMB Project
* Apache License 2.0
*/
import { world, system, Dimension, ScoreboardObjective, Entity, Player, EntityQueryOptions, ScriptEventSource, Vector2 } from "@minecraft/server";
import { world, system, Dimension, ScoreboardObjective, Block, Entity, Player, EntityQueryOptions, ScriptEventSource, Vector2, Vector3 } from "@minecraft/server";
import { ModalFormData, ActionFormData, MessageFormData } from "@minecraft/server-ui";
import { ConfigObject, Event, PanelButton, TCMBTrain, TCManifest, TCManifestMap } from "./classes";
import { findFirstMatch, getTCManifest, hasTCManifest } from "./util";
Expand Down
2 changes: 1 addition & 1 deletion ts/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Apache License 2.0
*/
import { world, system, Dimension, Entity, EntityQueryOptions, Player, BlockRaycastOptions, BlockRaycastHit, RawMessage } from "@minecraft/server";
import { Event, ConfigObject } from "./classes";
import { Event } from "./classes";
import { dummy } from "./engine";

new dummy;
Expand Down
4 changes: 2 additions & 2 deletions ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"@minecraft/server": "^1.7.0",
"@minecraft/server-ui": "^1.1.0"
},
"name": "tcmb",
"name": "tcmb-module",
"version": "1.0.0",
"main": "index.js",
"main": "main.ts",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
Expand Down
Loading

0 comments on commit e7b89f2

Please sign in to comment.