Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjusted formatting - no cat typing! #1

Merged
merged 1 commit into from
Apr 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@ See [instructions](docs/Instructions.md) for further details of how to install a

## Pre-requisites to build the add-on

Install https://nodejs.org/en
[Install Node](https://nodejs.org/en)

## Building the add-on

From a command prompt/terminal browse to the repository and run:

1) `npm install`
2) `npm run mcaddon`

Expand All @@ -32,7 +33,7 @@ Note: On Windows, you might need to run the following command under PowerShell i

## Developer convenience

The infrastructure to build/deploy this add-on was taken from Microsoft's minecraft-scripting-samples and so the instructions for it may be used here as well (see https://github.com/microsoft/minecraft-scripting-samples/blob/main/ts-starter/README.md).
The infrastructure to build/deploy this add-on was taken from Microsoft's minecraft-scripting-samples and so the [instructions for it](https://github.com/microsoft/minecraft-scripting-samples/blob/main/ts-starter/README.md) may be used here as well.

Specifically you can also run the following command to on Windows to have the add-on build and deliver to your Minecraft client:
`npm run local-deploy`
Expand Down
20 changes: 7 additions & 13 deletions docs/Instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ Create a command block and using an anvil name it "tpwandadmin". Right clicking

Once a well known location has been added a user with a tpwand stick will be able to teleport to any of the well known locations.


## Installing on a Bedrock server

To install this on a Bedrock server takes a little more work, but roughly:
Expand All @@ -38,19 +37,14 @@ To install this on a Bedrock server takes a little more work, but roughly:
4) Run your server and after it has started shut it down.
5) Open "valid_known_packs.json" in the root of your server directory and you should now see an entry at the top for tpwand. Make a note of the uuid and version.
6) Under your "worlds\Bedrock level" directory (you might have renamed "Bedrock level" or have more than one world there) you need to create a file called "world_behavior_packs.json". It should look like the following:
```json
[

{
"pack_id" : "XXX",
"version" : [ 1, 0, 0 ]
}
]
```
The `pack_id` should match the uuid you noted earlier and the version should also match. At the time of typing, the above is correct.
[
{
"pack_id" : "XXX",
"version" : [ 1, 0, 0 ]
}
]
The `pack_id` should match the uuid you noted earlier and the version should also match. At the time of typing, the above is correct.

7) Restart your server. If all went well you should see the following in your server log:

```text
[Scripting] tpwand enabled...
```
Loading