~jordanreger/cc

63070647a6ba6a35e516f8f0f0a9425871abc3ab — Jordan Reger 3 months ago 84188ca master
fix: add license and readme
2 files changed, 57 insertions(+), 0 deletions(-)

A LICENSE
A readme.md
A LICENSE => LICENSE +21 -0
@@ 0,0 1,21 @@
MIT License

Copyright (c) 2022 Jordan Reger

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
\ No newline at end of file

A readme.md => readme.md +36 -0
@@ 0,0 1,36 @@
# ~jordanreger/cc
This is a collection of my one-off [computercraft](https://tweaked.cc) scripts.

## srht.lua
This script allows you to get other scripts from the [paste tool](https://paste.sr.ht). To download this onto your computer in Minecraft, run the following:

```wget https://cc.jordanreger/srht```

This will allow you to download *other* scripts from Sourcehut.

#### Usage

1. Create a public or unlisted paste by heading to [paste.sr.ht](https://paste.sr.ht).
2. Once you're completed, hit **View raw**.
3. Copy the string that follows "https://paste.sr.ht/blob/"
4. Run the following:

```
srht {copied string} {filename, without ".lua" added to the end}
```

This will download your paste file to your computer!

## coords.lua
This script allows you to see your position in the world at (almost; for some reason, signal goes out in certain parts of the world - this seems to be a GPS error) all times.

#### Usage
To use this script, you must have a GPS cluster set up. I recommend following [this tutorial](http://www.computercraft.info/forums2/index.php?/topic/3088-how-to-guide-gps-global-position-system/).

If you have this setup, run the following:

```
coords
```

This will result in your position being displayed on one line, updated every 0.25 seconds.
\ No newline at end of file