Skip to content

Commit

Permalink
DP | Testing Stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Nik0-0 committed Aug 30, 2024
1 parent c46cb91 commit d15e0ed
Show file tree
Hide file tree
Showing 10 changed files with 105 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/build_datapacks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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]
Expand Down Expand Up @@ -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]
Expand Down Expand Up @@ -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]
Expand Down Expand Up @@ -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: ""




Expand Down
5 changes: 5 additions & 0 deletions nnb_main/data/minecraft/tags/functions/load.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"values": [
"nnb_main:__load__"
]
}
5 changes: 5 additions & 0 deletions nnb_main/data/minecraft/tags/functions/tick.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"values": [
"nnb_main:__tick__"
]
}
10 changes: 10 additions & 0 deletions nnb_main/data/nnb_main/functions/__load__.mcfunction
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"}
1 change: 1 addition & 0 deletions nnb_main/data/nnb_main/functions/__tick__.mcfunction
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
function nnb_main:root
1 change: 1 addition & 0 deletions nnb_main/data/nnb_main/functions/c_sb.mcfunction
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
$scoreboard objectives add $(sc_name) dummy
6 changes: 6 additions & 0 deletions nnb_main/data/nnb_main/jmc.txt
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__
7 changes: 7 additions & 0 deletions nnb_main/jmc_config.json
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": "."
}
33 changes: 33 additions & 0 deletions nnb_main/main.jmc
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; }
6 changes: 6 additions & 0 deletions nnb_main/pack.mcmeta
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"pack": {
"pack_format": 18,
"description": "Main datapack for stuff"
}
}

0 comments on commit d15e0ed

Please sign in to comment.