minecraft

pez 2022-06-14T06:19:29.945279Z

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.

plexus 2022-06-14T06:50:38.948499Z

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
plexus 2022-06-14T06:55:46.542199Z

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

plexus 2022-06-14T07:00:23.174439Z

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

plexus 2022-06-14T07:03:04.165919Z

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

pez 2022-06-14T07:10:52.211719Z

Yeah, I could start things fine. πŸŽ‰

plexus 2022-06-14T07:14:05.133239Z

you can put this in server/deps.edn:

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

plexus 2022-06-14T07:14:13.329479Z

I'll put out a release in the meanwhile

plexus 2022-06-14T07:15:02.580089Z

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

pez 2022-06-14T07:19:40.342789Z

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

plexus 2022-06-14T07:22:11.439069Z

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   

plexus 2022-06-14T07:22:25.889679Z

and a bit further down

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

pez 2022-06-14T07:27:31.409149Z

Yeah... I still get:

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

plexus 2022-06-14T07:30:33.727249Z

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

pez 2022-06-14T07:35:02.297799Z

% 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 - 

plexus 2022-06-14T07:36:44.546169Z

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

pez 2022-06-14T07:39:30.974259Z

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

plexus 2022-06-14T07:42:19.507829Z

Yay!

pez 2022-06-14T07:43:15.609939Z

πŸŽ‰

pez 2022-06-14T07:46:43.983889Z

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!)

plexus 2022-06-14T08:01:16.655909Z

if there are mud blocks and mangrove trees and roots then you found what you are looking for πŸ™‚

plexus 2022-06-14T08:01:29.156149Z

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

plexus 2022-06-14T08:03:02.163039Z

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

πŸ‘€ 1
plexus 2022-06-14T08:03:21.204739Z

this touches upon almost every aspect of the game

pez 2022-06-14T08:19:39.149079Z

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

plexus 2022-06-14T08:32:45.269719Z

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

pez 2022-06-14T08:42:45.091559Z

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.

pez 2022-06-14T07:43:02.724509Z

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?

plexus 2022-06-14T08:05:13.680219Z

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

plexus 2022-06-14T08:06:30.103459Z

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
pez 2022-06-14T21:19:28.410919Z

My block-writer can now use FigFonts πŸ˜ƒ

😍 2
pez 2022-06-14T22:34:13.508639Z

I made a gist with the code. https://gist.github.com/PEZ/e93d3c6781b5ecbf72de507b64caf6cf

pez 2022-06-14T22:35:33.963279Z

A tweet to like and share: https://twitter.com/pappapez/status/1536830784002195457

plexus 2022-06-15T03:48:45.075299Z

Lovely!