colintimbarndt / sandstone-resourcepacks Goto Github PK
View Code? Open in Web Editor NEWGenerate resourcepacks using Sandstone
License: MIT License
Generate resourcepacks using Sandstone
License: MIT License
i am struggling to keep my workspace tidy working with sandstone.
what i'd like is a project structure like this:
my_project:
- datapack:
- pack.mcmeta
- data/
- resources:
- pack.mcmeta
- assets/
- sandstone:
- project.json
- src/
...
however this does not seem possible with the current way sandstone-resourcepacks
handles the root path.
i have tried the following structure as well:
my_reconfigured_project:
- main:
- pack.mcmeta
- data/
- main-resources:
- pack.mcmeta
- assets/
- sandstone:
- project.json
- src/
...
however the main-resources
folder ends up at the same level as the root my_reconfigured_project
directory
this seems to be because of the way sandstone-resourcepacks
handles custom resources in src > resource.ts (saveResourcepackResource)
:
4 export const saveResourcepackResource =
5 (...assetPath: string[]): CustomResourceSave =>
6 ({ saveType, packName, saveLocation }): string => {
7 if (saveType === "root") {
8 return path.join(saveLocation!, "..", "resourcepacks", packName, ...assetPath);
9 }
10 if (saveType === "world") {
11 return path.join(saveLocation!, "..", "..", "resourcepacks", packName, ...assetPath);
12 }
13 if (saveType === "custom-path") {
14 return path.join(saveLocation!, "../", packName + "-resources", ...assetPath);
// ^^^^^ moving out too far?
15 }
16 throw new Error("Invalid saveType: " + saveType);
17 }
i hope that this is a simple fix and a solution is found soon.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.