Fork me on GitHub
#minecraft
<
2022-06-14
>
pez06:06:29

What's involved in making a 1.19 release of Witchcraft? Can I help with that in some way? If there is some grunt work, I'd be happy to provide.

plexus06:06:38

Very little should be needed, it might even work with the current version of the plugin. I just haven't had a chance to try it out yet.

🙏 1
plexus06:06:46

yup, seems to work fine. In bin/start-server / bin/start-client you can change MC_VERSION="1.19"

plexus07:06:23

you can teleport to [4371 62.875 2477] to see the new mangrove swamp biome.

plexus07:06:04

ah we'll have to upgrade XSeries or the new materials like mud are going to cause issues

pez07:06:52

Yeah, I could start things fine. 🎉

plexus07:06:05

you can put this in server/deps.edn:

com.github.cryptomorin/XSeries  {:mvn/version "8.8.0"}

plexus07:06:13

I'll put out a release in the meanwhile

plexus07:06:02

this is an API we use to help with cross-version support https://github.com/CryptoMorin/XSeries

pez07:06:40

Spoke too early. I'm apparently still using 1.18.2 server. Hmmm...

plexus07:06:11

did you change MC_VERSION in start_server? the first time you run it it should say

➜ bin/start-server                                                                                                                                                                              
[start-server] paper-1.19.jar not found, downloading.                                                                                                                                           
+ curl --progress-bar -L  -o paper-1.19.jar   

plexus07:06:25

and a bit further down

[08:52:06 INFO]: Starting minecraft server version 1.19

pez07:06:31

Yeah... I still get:

[09:25:51 INFO]: Starting minecraft server version 1.18.2
Can I wipe something to start from scratch?

plexus07:06:33

can you share sh -x bin/start-server?

pez07:06:02

% sh -x bin/start-server
+ MC_SERVER_TYPE=paper
+ MC_VERSION=1.19
+ WITCHRAFT_PLUGIN_VERSION=0.7.37
+ MEMORY=4G
+ MC_SERVER_JAR=paper-1.19.jar
+ WITCHRAFT_PLUGIN_JAR=witchcraft-plugin-0.7.37-for-paper-1.18-shaded.jar
+++ dirname -- bin/start-server
++ CDPATH=
++ cd -- bin
++ pwd -P
+ BIN_DIR=/Users/pez/Projects/workshops/witchcraft-workshop/bin
+ cd /Users/pez/Projects/workshops/witchcraft-workshop/bin/../server
++ command -v java
+ JAVA_CMD=/usr/bin/java
+ '[' -z /usr/bin/java ']'
+ '[' '!' -f eula.txt ']'
+ '[' '!' -f paper-1.19.jar ']'
+ '[' '!' -f plugins/witchcraft-plugin-0.7.37-for-paper-1.18-shaded.jar ']'
+ exec_trace /usr/bin/java -Xms4G -Xmx4G -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -XX:InitiatingHeapOccupancyPercent=15 -jar paper-1.19.jar
+ echo + /usr/bin/java -Xms4G -Xmx4G -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -XX:InitiatingHeapOccupancyPercent=15 -jar paper-1.19.jar
+ /usr/bin/java -Xms4G -Xmx4G -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -XX:InitiatingHeapOccupancyPercent=15 -jar paper-1.19.jar
+ exec /usr/bin/java -Xms4G -Xmx4G -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -XX:InitiatingHeapOccupancyPercent=15 -jar paper-1.19.jar
Downloading mojang_1.18.2.jar
Applying patches
Starting org.bukkit.craftbukkit.Main
System Info: Java 18 (OpenJDK 64-Bit Server VM 18.0.1+10) Host: Mac OS X 12.3.1 (aarch64)
Loading libraries, please wait...
[09:34:13 INFO]: Environment: authHost='', accountsHost='', sessionHost='', servicesHost='', name='PROD'
[09:34:14 INFO]: Loaded 7 recipes
[09:34:15 INFO]: Starting minecraft server version 1.18.2
[09:34:15 INFO]: Loading properties
[09:34:15 INFO]: This server is running Paper version git-Paper-384 (MC: 1.18.2) (Implementing API version 1.18.2-R0.1-SNAPSHOT) (Git: 3eaf3a8 on ver/1.18.2)
[09:34:15 INFO]: Server Ping Player Sample Count: 12
[09:34:15 INFO]: Using 4 threads for Netty based IO
[09:34:15 INFO]: Default game type: SURVIVAL
[09:34:15 INFO]: Generating keypair
[09:34:16 INFO]: Starting Minecraft server on *:25565
[09:34:16 INFO]: Using default channel type
[09:34:16 INFO]: Paper: Using Java 11 compression from Velocity.
[09:34:16 INFO]: Paper: Using Java cipher from Velocity.
[09:34:16 INFO]: [Witchcraft] Loading Witchcraft v0.7.37
[09:34:16 INFO]: Server permissions file permissions.yml is empty, ignoring it
[09:34:16 WARN]: **** SERVER IS RUNNING IN OFFLINE/INSECURE MODE!
[09:34:16 WARN]: The server will make no attempt to authenticate usernames. Beware.
[09:34:16 WARN]: While this makes the game possible to play without internet access, it also opens up the ability for hackers to connect with any username they choose.
[09:34:16 WARN]: To change this, set "online-mode" to "true" in the server.properties file.
[09:34:16 INFO]: Preparing level "world"
[09:34:16 INFO]: Preparing start region for dimension minecraft:overworld
[09:34:17 INFO]: Time elapsed: 151 ms
[09:34:17 INFO]: Preparing start region for dimension minecraft:the_nether
[09:34:17 INFO]: Time elapsed: 55 ms
[09:34:17 INFO]: Preparing start region for dimension minecraft:the_end
[09:34:17 INFO]: Time elapsed: 56 ms
[09:34:17 INFO]: [Witchcraft] Enabling Witchcraft v0.7.37
[09:34:17 INFO]: [Witchcraft] Setting PluginClassloader as Context classloader: PluginClassLoader{plugin=Witchcraft v0.7.37, pluginEnabled=true, url=plugins/witchcraft-plugin-0.7.37-for-paper-1.18-shaded.jar}
[09:34:19 INFO]: [Witchcraft] Loading deps.edn 
[09:34:20 INFO]: [Witchcraft] require: lambdaisland.witchcraft
[09:34:22 WARN]: Reflection warning, lambdaisland/witchcraft.clj:1597:7 - call to method remove on org.bukkit.inventory.Inventory can't be resolved (argument types: java.lang.Object).
[09:34:22 WARN]: Reflection warning, lambdaisland/witchcraft.clj:1597:7 - call to method remove on org.bukkit.inventory.Inventory can't be resolved (argument types: unknown).
[09:34:22 INFO]: [Witchcraft] require: lambdaisland.witchcraft.paper
[09:34:22 INFO]: [Witchcraft] init: (lambdaisland.witchcraft/init-xmaterial!)
[09:34:22 INFO]: [Witchcraft] init: (alter-var-root (var lambdaisland.witchcraft/server-type) (constantly :paper))
[09:34:22 INFO]: Running delayed init tasks
[09:34:22 INFO]: Done (6.547s)! For help, type "help"
[09:34:22 INFO]: Timings Reset
[09:34:22 INFO]: nREPL server started on port 25555 on host localhost - 

plexus07:06:44

can you remove paper-1.19.jar and try again? For some reason it seems like it actually contains the wrong version...

pez07:06:30

That worked. Thanks! ”for some reason” might very well be me having done something funny while I was trying.

pez07:06:43

Teleported to [4371 62.875 2477]`, but since I don't know what a biome is, I don't know how to verify that I have any new ones 😃 (I'll ask my domain experts here at home, no worries!)

plexus08:06:16

if there are mud blocks and mangrove trees and roots then you found what you are looking for 🙂

plexus08:06:29

you might also see frogs, that's also a new thing in 1.19

plexus08:06:02

if you're interested in some self study then this is a fantastic resource https://www.youtube.com/playlist?list=PLgENJ0iY3XBjpNDm056_NSPhIntVMG0P8

👀 1
plexus08:06:21

this touches upon almost every aspect of the game

pez08:06:39

My kids are super curious about why I see white frogs. They shouldn't be white in the Mangrove they tell me. 😃

plexus08:06:45

The Mangrove Swamp is considered a warm biome, and warm biomes spawn white frogs https://minecraft.fandom.com/wiki/Frog

pez08:06:45

Yeah, kids said it needs to be a warm biome for the frogs to spawn white. They have apparently gotten it wrong about that the Mangrove is not a warm biome.

pez07:06:02

Apple Silicon then... I read about up to 100x speedups with Minecraft. That's not super important to me, but I think it should give me much longer runs on the battery alone, so want to get it working. The start-client script still gives me grief with this, but using the official launcher works great. I have 90fps now with default settings. Am I losing any hackabilities by doing it this way?

plexus08:06:13

no, not at all. I only included bin/start-client so people could get up to speed quickly

plexus08:06:30

if you're running the official launcher then you can also set online-mode=true in server.properties. That way you'll get your actual skin (if you set one) instead of the generic default one.

🙏 1
pez21:06:28

My block-writer can now use FigFonts 😃

😍 2