Skip to content

Commit

Permalink
🔧 add missing paths to build
Browse files Browse the repository at this point in the history
- shared attack stuff
- decorative/font textures
- decorative models (balloons/reward hats)
- util logs
- damage logic, player death logic
  • Loading branch information
TheAfroOfDoom committed Oct 13, 2024
1 parent 4bba31b commit 5ae7027
Showing 1 changed file with 29 additions and 2 deletions.
31 changes: 29 additions & 2 deletions package-scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const getSummitDatapackPaths = () => {
'friendliness-pellets',
'homing-vines',
'random',
'shared',
'x-bullets-lower',
'x-bullets-shared',
'x-bullets-upper',
Expand Down Expand Up @@ -42,6 +43,7 @@ const getSummitDatapackPaths = () => {
]);

const playerPaths = prefixPaths('player/', [
'death',
'interacted_with_github_description',
'interacted_with_github_description.mcfunction',
'rejoin',
Expand All @@ -61,6 +63,7 @@ const getSummitDatapackPaths = () => {
const entityUtilsPaths = prefixPaths('utils/', [
'bounce',
'bounce.mcfunction',
'damage',
'damage.mcfunction',
'face_closest_player_macro.mcfunction',
'face_closest_player.mcfunction',
Expand All @@ -74,10 +77,12 @@ const getSummitDatapackPaths = () => {
'advancement/player_interacted_with_github_description.json',
...prefixPaths('function/', [
...bossFightPaths,
'decorative',
'directorial/tick.mcfunction',
...hostilePaths,
...playerPaths,
'remove_animated_java_models',
'shared',
...soulPaths,
...entityUtilsPaths,
'remove_animated_java_models.mcfunction',
Expand All @@ -88,20 +93,23 @@ const getSummitDatapackPaths = () => {
]);

const utilsPaths = prefixPaths('omegaflowey.utils/function/', [
'error.mcfunction',
'math/max.mcfunction',
'math/min.mcfunction',
'error.mcfunction',
'log',
'log.mcfunction',
]);

const primaryDatapackPaths = prefixPaths('omegaflowey/', [
'pack.mcmeta',
...prefixPaths('data/', [
'animated_java/tags/function/',
'minecraft',
'omegaflowey.admin/function/',
...entityPaths,
'omegaflowey.main/function/',
...utilsPaths,
'summit/',
]),
]);
const removeResetFunction = async ({ compiledPath }) => {
Expand All @@ -126,6 +134,13 @@ const getSummitResourcepackPaths = () => {
// Not `minecraft/sounds.json` since we just use that to disable ambient sounds
const minecraftPaths = prefixPaths('minecraft/', ['atlases', 'models']);

const modelPaths = prefixPaths('models/entity/decorative/', [
'balloon_soul_cyan.json',
'balloon_soul_red.json',
'reward_hat.json',
'reward_hat_cyan.json',
]);

const soundPaths = prefixPaths(
'sounds/',
suffixPaths(
Expand Down Expand Up @@ -201,11 +216,22 @@ const getSummitResourcepackPaths = () => {
),
]);

const pipeTexturePaths = prefixPaths('pipe/polished_andesite', [
'.png',
'_disabled.png',
'_soul_0.png',
'_soul_0.png.mcmeta',
'_soul_1.png',
'_soul_1.png.mcmeta',
]);

const texturePaths = prefixPaths('textures/custom/', [
...attackTexturePaths,
'decorative',
'dentata_snake_ball',
'font',
'lower_eye',
'pipe',
...pipeTexturePaths,
'soul',
'tv_screen',
'x_bullets_shared',
Expand All @@ -225,6 +251,7 @@ const getSummitResourcepackPaths = () => {
const omegaFloweyPaths = prefixPaths('omega-flowey/', [
'font',
...soundPaths,
...modelPaths,
...texturePaths,
'sounds.json',
]);
Expand Down

0 comments on commit 5ae7027

Please sign in to comment.