Skip to content
Draft
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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,6 @@ target/maven-archiver
.mvn
mvnw
mvnw.cmd

# maven stuff
target/maven-status
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,13 @@ and connect it to a Bukkit server running this plugin and a websocket relay.

- world.getBlocks(x1:int, y1:int, z1:int, x2:int, y2:int, z2:int) -> list
- Get the blocks of the input position range


- world.getBlockData(x:int, y:int, z:int) -> str
- Get the state of the block at the input position, including material
(block type) and any other attributes (differ by block type).


- world.setBlock(x:int, y:int, z:int, block:str) -> None:
- Set the block of the input position

Expand Down Expand Up @@ -223,3 +228,4 @@ mvn package
- [opticyclic](https://github.com/opticyclic)
- [timcu](https://www.triptera.com.au/wordpress/)
- [pxai](https://github.com/pxai)
- [mwrowe](https://github.com/mwrowe)
10 changes: 5 additions & 5 deletions README_server_setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ Note: updates to servers/plugins may require stopping your server, repeating ste
1. Make sure java is up to date

```
java -version
java -version
```

If this is not 21 or higher, you need to update java.

See here for more general directions: https://docs.papermc.io/misc/java-install

On the Raspberry Pi, the default repo isn�t good enough. This will install jdk-21 from zulu (thanks https://pimylifeup.com/raspberry-pi-java/, modified to use non-headless as recommended by paper)
On the Raspberry Pi, the default repo isn�t good enough. This will install jdk-21 from zulu (thanks https://pimylifeup.com/raspberry-pi-java/, modified to use non-headless as recommended by paper)

```
sudo apt update
Expand Down Expand Up @@ -115,7 +115,7 @@ java -Xmx2048M -Xms2048M -jar paper-1.20-17.jar

13. You can skip this step if you're only connecting locally (from computers all connected to the same router), and not with scratch.

On your router, forward ports 19132 (bedrock), 25565 (java), 4711 (python), 14711 (scratch), 80 (http) and 443 (https) to the same ports on your server (or different port numbers if you�ve changed the defaults).
On your router, forward ports 19132 (bedrock), 25565 (java), 4711 (python), 14711 (scratch), 80 (http) and 443 (https) to the same ports on your server (or different port numbers if you�ve changed the defaults).

Unfortunately, the details depend on the specifics of your router. You can google something like "{router model} + port forwarding", but generally it's something like

Expand Down Expand Up @@ -232,7 +232,7 @@ https://www.minecraft.net/en-us/download
- Select "servers" tab
- Click "add server"
- Enter whatever you like for "Server name"
- Enter the server�s IP for "Server address"
- Enter the server�s IP for "Server address"
- For WAN connections, this should be the external IP
- For LAN connections, this should be the internal IP
- Enter 19132 for the port
Expand All @@ -244,7 +244,7 @@ https://www.minecraft.net/en-us/download

https://www.python.org/downloads/

During the installation, be sure to check the box to update your path to include python and pip, or you�ll get "command not found" errors in the next steps
During the installation, be sure to check the box to update your path to include python and pip, or you�ll get "command not found" errors in the next steps

2. Install [pyncraft](https://github.com/jdeast/pyncraft). In a terminal, type

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.jdeast</groupId>
<artifactId>FruitJuice</artifactId>
<version>0.3.0</version>
<version>0.4.0b</version>
<build>
<plugins>
<plugin>
Expand Down
11 changes: 11 additions & 0 deletions server_setup/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# change the "values" of the ENVIRONMENT_VARIABLES below
# lines that start with a # are comments and will be ignored

# note that env vars defined in the shell will override these!

# admin players (can run *all* commands): commas-separated like this:
# OPS_PLAYERS="admin_player_name,another_admin_name"
OPS_PLAYERS=""

# password for remote console (RCON) access; YOU SHOULD CHANGE THIS!
RCON_PASSWORD="pick-a-better-password"
Loading