Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

resourcepacker

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

resourcepacker

Easily and cleanly packs Minecraft resource packs from a messy working directory


Version published
Weekly downloads
1
decreased by-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

resourcepacker

resourcepacker (or rpkr for short) is a useful tool for packaging Minecraft resource packs from a messy working directory into a clean output folder.

Usage

Install resourcepacker on npm by typing npm install -g resourcepacker in the command prompt. You must have Node.js installed.

After installing resourcepacker, type rpkr init to ready your directory with a configuration file (.rpkr). For information on how to use this configuration file, please see the Configuration section below.

To package a resource pack, simply type rpkr pack and your resource pack will be packaged into an output folder. You can control which directory the files are outputted to by placing the output folder name in quotes after this command; for example, rpkr pack "My Pack 1.16" outputs to folder "My Pack 1.16". If the output folder is not set, it defaults to the format name packver (mcver), where each value comes from the .rpkr file.

Configuration

The .rpkr configuration file can be edited to fine tune the output of your resource pack. Comments can be added using a hash (#).

Parameters

  • name: The name of your resource pack. Defaults to the name of the current folder.
  • packver: The version of your resource pack. Defaults to "1.0.0".
  • mcver: The Minecraft version your resource pack is made for. Defaults to "1.16.x".
  • mcsnap: The Minecraft development version your resource pack is made for. Blank by default.
  • files: File globs that will be passed through into your output folder. More information below.

Files

By default, the following globs (file path formats) are found in the .rpkr configuration file. You can add or remove and globs that you like; for example, if you have a readme.txt file in the root directory that you want outputted, place readme.txt on its own line.

pack.png
pack.mcmeta
assets/**/*.png
assets/**/*.mcmeta
assets/**/*.json
assets/**/*.lang
assets/**/*.txt
assets/**/*.fsh
assets/**/*.bin

Key:

  • *: Any string of characters, excluding slashes.
  • **: Any string of characters, including slashes.

Try it out

Clone this repository, cd into that directory, and then type node index.js pack to pack the contents of this repository into a clean output folder. You'll see that out of all of the messy files in this folder, only the assets, pack.png, and pack.mcmeta files are outputted.

Keywords

FAQs

Package last updated on 15 Jul 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc