Skip to content

Commit

Permalink
packwiz kubejs hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBestAstroNOT committed Nov 2, 2023
1 parent 65818a5 commit 757acc2
Show file tree
Hide file tree
Showing 7 changed files with 495 additions and 30 deletions.
78 changes: 49 additions & 29 deletions index.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,41 @@
hash-format = "sha256"

[[files]]
file = ".github/workflows/codeql.yml"
hash = "542d4f51c06b252af9e48a854a5ef4e12bd8c89602d74804998844ae2f84b439"

[[files]]
file = "SECURITY.md"
hash = "8a153a184554d5dc5386264a45daa023e15cfbf20b8da371662ef44c17d5ed5b"

[[files]]
file = "Structory_1.19.3_v1.3.1a.jar"
hash = "49de3de56ef6e71ad778cf457cc7145c4380099803a924d426bef7d28f1e8d3c"

[[files]]
file = "ae2_drive.js"
hash = "1cde29a03fd18cc5a6d12b10355f25e67994f076ae75fbd0baca4f413c5c082b"

[[files]]
file = "ae2_energy_acceptor.js"
hash = "cf13e35e73164ff0bdf8db678d50e3a3516432a1a47cd095eac293b1cb68c117"

[[files]]
file = "ae2_recipes.js"
hash = "ab6184f748932868075200daeb6346c26c762099d95d417e4fda659901f0f885"

[[files]]
file = "ae2_tag.js"
hash = "aa3c8f7a352d72e5ef1595ba6fe4ae7f774d1ccb6342ddd479b3dc102c76863c"

[[files]]
file = "bettermaps-mc1.19-0.4.jar"
hash = "afefb76939beaf1fa7306858ac8662801fe91a153e1b37cc5ecdb781450ecde5"

[[files]]
file = "cake.js"
hash = "5e04d1724927841cf43e79421ee633d47d92f6acaaf35bfaee20ee95d0e2ce44"

[[files]]
file = "colorize-1.19.2-fabric-1.4.0.jar"
hash = "750085608dfada40e225a2b72891b1aeeb32b1c2637cb35168a0d03e2dcfc02f"
Expand Down Expand Up @@ -3388,13 +3416,29 @@ hash = "cf13e35e73164ff0bdf8db678d50e3a3516432a1a47cd095eac293b1cb68c117"
file = "kubejs/client_scripts/ae2_tag.js"
hash = "aa3c8f7a352d72e5ef1595ba6fe4ae7f774d1ccb6342ddd479b3dc102c76863c"

[[files]]
file = "kubejs/client_scripts/ae2drive.pw.toml"
hash = "db93c752fd0d48fb11cd9d83fbb1b4ff7fa5ca13b8515971cd14dc1d622c20c2"
metafile = true

[[files]]
file = "kubejs/client_scripts/ae2energyacceptorponder.pw.toml"
hash = "b38c2f8ceed96e571904f9f324ffcfa8540191d3aa141ac712f7b19d04150f87"
metafile = true

[[files]]
file = "kubejs/client_scripts/ae2tag.pw.toml"
hash = "a70a883815cd5af442870bcf9c0715239160738075145ac2009cd81ee92f99aa"
metafile = true

[[files]]
file = "kubejs/client_scripts/cake.js"
hash = "5e04d1724927841cf43e79421ee633d47d92f6acaaf35bfaee20ee95d0e2ce44"

[[files]]
file = "kubejs/client_scripts/example.js"
hash = "152019ed6e0410a82805a95ea10f1ad1a17beaf2b50864d89b8fa9d172129ac7"
file = "kubejs/client_scripts/cake.pw.toml"
hash = "aa47d248e9f5e2e95c25b6b06ddcae86ee6b90f8648d5e0dc6d84f3359492368"
metafile = true

[[files]]
file = "kubejs/config/client.properties"
Expand Down Expand Up @@ -17177,8 +17221,9 @@ file = "kubejs/server_scripts/ae2_recipes.js"
hash = "ab6184f748932868075200daeb6346c26c762099d95d417e4fda659901f0f885"

[[files]]
file = "kubejs/server_scripts/example.js"
hash = "a19b7c81a150bd965b153ded9c45ee7649eaad9e10d0a5ec1d662e7b15ceadb2"
file = "kubejs/server_scripts/ae2recipes.pw.toml"
hash = "7edbba07aa31ffbdca80842b9ff0a7351b459a73ca6f989840dad63e354e5765"
metafile = true

[[files]]
file = "kubejs/startup_scripts/example.js"
Expand Down Expand Up @@ -17263,30 +17308,10 @@ file = "mods/ae2.pw.toml"
hash = "3ceaa011b0a783f29742b8ccb24b361fae3b7170bb65e389985c98cff60f948c"
metafile = true

[[files]]
file = "mods/ae2drive.pw.toml"
hash = "db93c752fd0d48fb11cd9d83fbb1b4ff7fa5ca13b8515971cd14dc1d622c20c2"
metafile = true

[[files]]
file = "mods/ae2energyacceptorponder.pw.toml"
hash = "b38c2f8ceed96e571904f9f324ffcfa8540191d3aa141ac712f7b19d04150f87"
metafile = true

[[files]]
file = "mods/ae2qolrecipes-fabric-1.18.2-1.20.x-1.1.1.jar"
hash = "4377b31c55317ffd5406ef5bcfa62f3a5c2adc00b29d9262ba1ade488167a31a"

[[files]]
file = "mods/ae2recipes.pw.toml"
hash = "7edbba07aa31ffbdca80842b9ff0a7351b459a73ca6f989840dad63e354e5765"
metafile = true

[[files]]
file = "mods/ae2tag.pw.toml"
hash = "a70a883815cd5af442870bcf9c0715239160738075145ac2009cd81ee92f99aa"
metafile = true

[[files]]
file = "mods/almost-unified.pw.toml"
hash = "97ce588df0917a1a8a1ba0f1c91d8d439b638c81d3260c91eef86522978dcafe"
Expand Down Expand Up @@ -17695,11 +17720,6 @@ file = "mods/bygone-nether-fabric.pw.toml"
hash = "f35c7b187396677219e2aa84b76e408fa70a734f7048a6c1b8af8cf900589a09"
metafile = true

[[files]]
file = "mods/cake.pw.toml"
hash = "aa47d248e9f5e2e95c25b6b06ddcae86ee6b90f8648d5e0dc6d84f3359492368"
metafile = true

[[files]]
file = "mods/cameraoverhaul.pw.toml"
hash = "a100ab07e0230aafc05fa5d57546e7dd95bc62a9e92347af3df78b06b3da3cfa"
Expand Down
179 changes: 179 additions & 0 deletions kubejs/client_scripts/ae2_drive.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,179 @@

Ponder.registry((event) => {
event.create("ae2:drive").scene("our_first_scene", "Learning about how to store items digitally in applied energistics 2!", (scene, util) => {
/**
* Shows the whole structure.
* Alternatively, `scene.showBasePlate()` can be used to show the base plate.
* Useful for animating different parts of the structure.
*/
scene.showStructure();

/**
* Encapsulate the structure bounds to given positions. This is useful if the custom structure has no proper bounds.
* scene.showStructure() automatically encapsulates the bounds.
*/
// scene.encapsulateBounds(blockPos)

/**
* idle(ticks) or idleSeconds(seconds) is used to wait for a certain amount of time.
* 20 ticks = 1 second
*/
scene.idle(10);

/**
* `.createEntity()` returns an entity link from Create which will be used
* as reference in the future
* [x, y, z] is the position but any KubeJS way to represent a position can be used.
*
* Don't modify the entity directly!
*/
scene.world.setBlock([2, 1, 2], 'ae2:drive', false);
scene
.text(70, "This block is used for digital storage, you can add digital storage disks to store lots of items within one block", [2.0, 2.5, 2.5])
/**
* Optional | Sets the color of the text.
* Possible values:
* - PonderPalette.WHITE, PonderPalette.BLACK
* - PonderPalette.RED, PonderPalette.GREEN, PonderPalette.BLUE
* - PonderPalette.SLOW, PonderPalette.MEDIUM, PonderPalette.FAST
* - PonderPalette.INPUT, PonderPalette.OUTPUT
*/

/**
* Optional | Places the text closer to the target position.
*/
.placeNearTarget()
/**
* Optional | Adds a keyframe to the scene.
*/
.attachKeyFrame()


/**
* 120 -> the tick length of the instruction
* [x, y, z] -> the position that the controls should point at
* "down" -> the direction that is used by the controls for pointing
*/


scene.world.modifyTileNBT([2, 1, 2], nbt => {
nbt.visual = {
online: true, // Controls whether the LEDs are on or off (default: false)
// Set the cells using cell0 to cell9
cell2: {
id: 'ae2:item_storage_cell_4k', // Item ID of cell
state: 'full' // Status of cell LED
},
cell1: {
id: 'ae2:item_storage_cell_4k',
state: 'full'
},
cell3: {
id: 'ae2:item_storage_cell_4k', // Item ID of cell
state: 'full' // Status of cell LED
},
cell4: {
id: 'ae2:item_storage_cell_4k', // Item ID of cell
state: 'types_full' // Status of cell LED
},
cell5: {
id: 'ae2:item_storage_cell_4k', // Item ID of cell
state: 'not_empty' // Status of cell LED
},
cell6: {
id: 'ae2:item_storage_cell_4k', // Item ID of cell
state: 'empty' // Status of cell LED
},
cell7: {
id: 'ae2:item_storage_cell_4k', // Item ID of cell
state: 'empty' // Status of cell LED
},
cell8: {
id: 'ae2:item_storage_cell_64k', // Item ID of cell
state: 'empty' // Status of cell LED
},
cell9: {
id: 'ae2:item_storage_cell_64k', // Item ID of cell
state: 'empty' // Status of cell LED
},
};
}, true);
scene.idle(80)
/**
* 50 -> the tick length of the instruction
* [x, y, z] -> the position that the text should point at
*/
scene
.text(70, "You can interact with the block and add storage drives to store items or replace existing storage drives with bigger drives to enable you to store more items", [2.0, 2.5, 2.5])
/**
* Optional | Sets the color of the text.
* Possible values:
* - PonderPalette.WHITE, PonderPalette.BLACK
* - PonderPalette.RED, PonderPalette.GREEN, PonderPalette.BLUE
* - PonderPalette.SLOW, PonderPalette.MEDIUM, PonderPalette.FAST
* - PonderPalette.INPUT, PonderPalette.OUTPUT
*/
.attachKeyFrame()
/**
* Optional | Places the text closer to the target position.
*/
.placeNearTarget()
scene
.showControls(60, [2, 2.5, 2], "down")
.rightClick()
.withItem("ae2:item_storage_cell_16k")
/**
* Optional | Adds a keyframe to the scene.
*/


/**
* 120 -> the tick length of the instruction
* [x, y, z] -> the position that the controls should point at
* "down" -> the direction that is used by the controls for pointing
*/
scene.world.modifyTileNBT([2, 1, 2], nbt => {
nbt.visual = {
online: true, // Controls whether the LEDs are on or off (default: false)
// Set the cells using cell0 to cell9
cell2: {
id: 'ae2:item_storage_cell_4k', // Item ID of cell
state: 'full' // Status of cell LED
},
cell1: {
id: 'ae2:item_storage_cell_16k',
state: 'not_empty'
},
cell3: {
id: 'ae2:item_storage_cell_4k', // Item ID of cell
state: 'not_empty' // Status of cell LED
},
cell4: {
id: 'ae2:item_storage_cell_4k', // Item ID of cell
state: 'empty' // Status of cell LED
},
cell5: {
id: 'ae2:item_storage_cell_4k', // Item ID of cell
state: 'empty' // Status of cell LED
},
cell6: {
id: 'ae2:item_storage_cell_4k', // Item ID of cell
state: 'empty' // Status of cell LED
},
cell7: {
id: 'ae2:item_storage_cell_4k', // Item ID of cell
state: 'empty' // Status of cell LED
},
cell8: {
id: 'ae2:item_storage_cell_64k', // Item ID of cell
state: 'empty' // Status of cell LED
},
cell9: {
id: 'ae2:item_storage_cell_64k', // Item ID of cell
state: 'empty' // Status of cell LED
},
};
}, true);
scene.idle(80)
});
});
Loading

0 comments on commit 757acc2

Please sign in to comment.