-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
105 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ on: | |
- 'nnb_vote_system/**' | ||
- 'nnb_jumpscares/**' | ||
- 'nnb_spawnsystem/**' | ||
- 'nnb_main/**' | ||
|
||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
|
@@ -73,6 +74,7 @@ jobs: | |
remote_path: '/world/datapacks/' | ||
sftp_only: true | ||
password: ${{ secrets.SFTP_PASSWORD }} | ||
ssh_private_key: "" | ||
|
||
# - name: Deploy file - OPENWORLD | ||
# uses: wlixcc/[email protected] | ||
|
@@ -116,6 +118,7 @@ jobs: | |
remote_path: '/world/datapacks/' | ||
sftp_only: true | ||
password: ${{ secrets.SFTP_PASSWORD }} | ||
ssh_private_key: "" | ||
|
||
# - name: Deploy file - OPENWORLD | ||
# uses: wlixcc/[email protected] | ||
|
@@ -155,6 +158,7 @@ jobs: | |
remote_path: '/world/datapacks/' | ||
sftp_only: true | ||
password: ${{ secrets.SFTP_PASSWORD }} | ||
ssh_private_key: "" | ||
|
||
# - name: Deploy file - OPENWORLD | ||
# uses: wlixcc/[email protected] | ||
|
@@ -193,12 +197,39 @@ jobs: | |
remote_path: '/world/datapacks/' | ||
sftp_only: true | ||
password: ${{ secrets.SFTP_PASSWORD }} | ||
ssh_private_key: "" | ||
|
||
|
||
|
||
|
||
build_core_script: | ||
runs-on: ubuntu-latest | ||
# needs: [validate_main] | ||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v4 | ||
|
||
|
||
|
||
- name: Prepare File | ||
run: | | ||
cd nnb_main | ||
zip -r ../nnb_main.zip * | ||
- name: Deploy file | ||
uses: wlixcc/[email protected] | ||
with: | ||
username: ${{ secrets.SFTP_USERNAME }} | ||
server: ${{ secrets.SFTP_SERVER }} | ||
port: 2022 | ||
local_path: './nnb_main.zip' | ||
remote_path: '/world/datapacks/' | ||
sftp_only: true | ||
password: ${{ secrets.SFTP_PASSWORD }} | ||
ssh_private_key: "" | ||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"values": [ | ||
"nnb_main:__load__" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"values": [ | ||
"nnb_main:__tick__" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
scoreboard objectives add __variable__ dummy | ||
tellraw @a "Core Scripts Loaded" | ||
function nnb_main:c_sb {"sc_name":"nn_lobbymusic"} | ||
function nnb_main:c_sb {"sc_name":"nn_lobby"} | ||
function nnb_main:c_sb {"sc_name":"nn_spawn"} | ||
function nnb_main:c_sb {"sc_name":"nn_possesion"} | ||
function nnb_main:c_sb {"sc_name":"nn_possesion_min"} | ||
function nnb_main:c_sb {"sc_name":"nn_possesion_sec"} | ||
function nnb_main:c_sb {"sc_name":"nn_possesion_msec"} | ||
function nnb_main:c_sb {"sc_name":"nn_possesion"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
function nnb_main:root |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
$scoreboard objectives add $(sc_name) dummy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
LOAD=__load__ | ||
TICK=__tick__ | ||
PRIVATE=__private__ | ||
VAR=__variable__ | ||
INT=__int__ | ||
STORAGE=__storage__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"namespace": "nnb_main", | ||
"description": "Main datapack for stuff", | ||
"pack_format": "18", | ||
"target": "main.jmc", | ||
"output": "." | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
Text.tellraw(@a, "Core Scripts Loaded"); | ||
|
||
// Create basic scoreboards | ||
|
||
// Lobby related | ||
c_sb(sc_name="nn_lobbymusic"); | ||
c_sb(sc_name="nn_lobby"); | ||
|
||
// Gameplay Related | ||
c_sb(sc_name="nn_spawn"); | ||
c_sb(sc_name="nn_possesion"); | ||
c_sb(sc_name="nn_possesion_min"); | ||
c_sb(sc_name="nn_possesion_sec"); | ||
c_sb(sc_name="nn_possesion_msec"); | ||
c_sb(sc_name="nn_possession_effect); | ||
|
||
|
||
|
||
// Run Every Tick | ||
function __tick__() { | ||
root(); | ||
} | ||
|
||
|
||
|
||
|
||
|
||
// Root function to create scoreboards if not created already | ||
function root() { | ||
} | ||
|
||
|
||
function c_sb() { $scoreboard objectives add $(sc_name) dummy; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"pack": { | ||
"pack_format": 18, | ||
"description": "Main datapack for stuff" | ||
} | ||
} |