2022-01-10
java -jar -Xms2G -Xmx2G craftbukkit-1.18.1.jar nogui
pause
#Minecraft server properties
enable-jmx-monitoring=false
rcon.port=25575
gamemode=creative
enable-command-block=false
enable-query=false
level-name=PythonCraft
motd=A Minecraft Server
query.port=25565
pvp=true
difficulty=easy
network-compression-threshold=256
require-resource-pack=false
max-tick-time=60000
use-native-transport=true
max-players=20
online-mode=true
enable-status=true
allow-flight=true
broadcast-rcon-to-ops=true
view-distance=10
server-ip=
resource-pack-prompt=
allow-nether=true
server-port=25565
enable-rcon=false
sync-chunk-writes=true
op-permission-level=4
prevent-proxy-connections=false
hide-online-players=false
resource-pack=
entity-broadcast-range-percentage=100
simulation-distance=10
rcon.password=
player-idle-timeout=0
debug=false
force-gamemode=false
rate-limit=0
hardcore=false
white-list=false
broadcast-console-to-ops=true
spawn-npcs=false
spawn-animals=false
function-permission-level=2
level-type=flat
text-filtering-config=
spawn-monsters=false
enforce-whitelist=false
resource-pack-sha1=
spawn-protection=16
max-world-size=299999
#By changing the setting below to TRUE you are indicating your agreement to our EULA (https://account.mojang.com/documents/minecraft_eula).
#Sun Jan 09 23:23:28 CST 2022
eula=true
[00:38:06] [Server thread/INFO]: [RaspberryJuice] Enabling RaspberryJuice v1.12.1
[00:38:06] [Server thread/INFO]: [RaspberryJuice] Using host:port - 0.0.0.0:4711
[00:38:06] [Server thread/INFO]: [RaspberryJuice] Using RELATIVE locations
[00:38:06] [Server thread/INFO]: [RaspberryJuice] Using RIGHT clicks for hits
[00:38:06] [Server thread/INFO]: [RaspberryJuice] ThreadListener Started
[00:38:06] [Server thread/INFO]: Server permissions file permissions.yml is empty, ignoring it
import mcpi.block as block
from mcpi_e.minecraft import Minecraft
serverAddress="127.0.0.1" # change to your minecraft server
pythonApiPort=4711 #default port for RaspberryJuice plugin is 4711
playerName="echochio" # change to your username
mc = Minecraft.create(serverAddress,pythonApiPort,playerName)
pos = mc.player.getPos()
basex = int(pos.x) + 0
basey = int(pos.y) + 6
basez = int(pos.z) + 0
data = [
"# # ### # # ## # # ## ### # ### ",
"# # # # # # # # # # # # # # # # #",
"#### ### # # # # # # # # # ### # # #",
"# # # # # # # # # # # # # # # # #",
"# # ### ### ### ## # # ## # # ### ### "
]
for y, line in enumerate(data):
for x, c in enumerate(line):
if c == "#":
mc.setBlock(basex + x, basey - y, basez, block.DIAMOND_BLOCK.id)
ps: 重建世界就把 D:\Craftbukkit-python-1.18.1\PythonCraft 目錄刪除