Comments (4)
Definitely Python. It has everything I need build into its standard library, and the file watcher should be done externally, eg. using entr
, watch
, etc. Having to set up a virtual environment is a hard no, so all file watching packages are out of the picture. While I could use Deno for its better dependency management, the complexity of JS/TS isn't worth it for this.
from datapacks.
More thinking. There shouldn't be one major build script, instead each project should have its own that can support its own features, and there can be a sort of orchestration script that executes all of them in parallel in the root directory.
from datapacks.
So here's my current idea. There will be an executable file in each datapack's directory called build.fish
, using fish for its sane shell scripting syntax. This is the logic responsible for zipping the contents and creating the datapack. Each build script will create a zip file called datapack.zip
in the current directory. As part of the Nix flake builder, it will then rename this datapack according to the name and version specified.
Using the builder should look something like this:
{ buildDataPack }:
buildDataPack {
pname = "afk";
version = "1.2";
minMinecraftVersion = "1.13.x";
maxMinecraftVersion = "1.21.0";
src = ./.;
}
And the build script might look like this:
set files LICENSE pack.png pack.mcmeta data
rm -rf build
mkdir -p build
cp -R $files build
cd build
# Older version compatibility
for dir in **/function
cp $dir {$dir}s
end
zip -r ../datapack.zip $files
obviously there could be more complicated logic there, but that's a starting point and for most should be all that's necessary.
from datapacks.
... and that's basically what I did. New build system landed in 4ef8015, except it doesn't use a build script, the compat logic is handled by the preBuild
phase in each default.nix
. This is also where the minimum and maximum minecraft versions that it supports are defined. The build phase is just zipping the contents of the zip
list, and the install phase is moving it to the correct location with the correct name. The output contents will be the same as they would have been with the old build script.
from datapacks.
Related Issues (20)
- Update the description of Detect AFK Players to point to the addons that are now public
- Send an alert when addons are installed but `afk` isn't found HOT 1
- Rewrite README to include chickenfix and pause day cycle HOT 1
- Rewrite to guarantee ordering HOT 1
- WIP builds should be marked as such in the version file HOT 1
- Test and release Pause Day Cycle
- Make a better icon for chickenfix
- Set a team to restore to
- AFK team should have PVP disabled by default
- Delete original release
- Can you add support for 1.20.1? HOT 2
- Don't remove AFK tag from players if they have it before becoming AFK HOT 1
- playersSleepingPercentage values over 100% don't work as expected HOT 1
- Store seconds not moved instead of loops HOT 1
- Release new versions with support up to 1.21 HOT 5
- Pause Day Cycle making day cycle not continue after a player is online HOT 4
- Pack format extensibility
- Nix builder: low hanging fruit improvements HOT 1
- Remove mcmeta-summary input from examples
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from datapacks.