https://github.com/arocull/supercraftbros
Datapack for a custom Minecraft map, and general commands. For preservation.
https://github.com/arocull/supercraftbros
Last synced: 5 months ago
JSON representation
Datapack for a custom Minecraft map, and general commands. For preservation.
- Host: GitHub
- URL: https://github.com/arocull/supercraftbros
- Owner: arocull
- Created: 2021-07-27T22:04:16.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-08-04T22:50:34.000Z (almost 5 years ago)
- Last Synced: 2025-03-26T22:45:55.794Z (about 1 year ago)
- Language: mcfunction
- Size: 36.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Super Craft Bros
Datapack used to update and revitalize an old Minecraft map I've been working on forever. The name is silly, but so is the game! :P
I won't upload the world file here since it's pretty big and disorganized, but I thought people might like to reference the source for ideas. If you feel like it, feel free to take it and wrap it into your own game instead.
Note that this isn't everything. The map itself consists of hundreds of command blocks, and it's impossible to tie all of those loose ends. Making this a datapack just helps me organize and update large swathes of commands when Minecraft changes.
# Utility Functions
## Updating Old Commands
Quick replace all enchantments to have quotes (using regex):
- Find `id:([a-z_]+[?!,lvl:])`
- Replace `id:"$1",`
Quick replace item names from escape characters to single-quotes:
- First, find `"\"`
- Replace `'"`
- Then, find `\""`
- Replace `"'`
- Note that this may break a string if it contains an apostrophe, as it may now require an escape character.