2021-09-19 Iā€™ve learned a lot this past week, so Iā€™ll make a note of it. image

2021-09-10

  • I jokingly added a micra emoji to a post about scheduling to play AmongUs on an unexplored junior gaming channel, and 9 people pushed it.
    • Thereā€™s a demand for micro server.

2021-09-11

  • Iā€™ve only played Bedrock Edition (BE) on Realm (official online server), and I thought Java Edition (JE) would be interesting to add various mods to it.
  • What do you want to do? I asked him, but he didnā€™t have a very clear opinion.

2021-09-12

  • At 5:00 a.m., the decision is made, ā€œI canā€™t see any particular policy even if I think about it, so Iā€™ll just do it the easy way first.
    • (Itā€™s the time of day, W.)
  • Using Conohaā€™s Microphone Latin Plate
    • I decided to do it and 17 minutes later I was already standing on the server, easy peasy.
    • I heard that Paper is good, but Iā€™m not sure.
      • What I understood later:.
        • There are servers provided by the official and those that have been reverse engineered and patched.
          • I hadnā€™t thought of that idea. I guess that happens when you have a long history and a lot of players.
        • PaperMC and Spigot are keywords.
  • From there it took me 30 minutes to download the JE client and connect to the server.
    • I donā€™t know how to make a torch.
      • Does JE have a ā€œI donā€™t know the recipe so it doesnā€™t show up on the listā€ condition?
    • It started suddenly without going through the screen to specify seeding or game rules.
      • JE does not have such a screen, so if you want to change it, you need to change the configuration file or the administrator can use a command.
      • I was wondering why there was a command in BE since you can change it in the GUI in game, but I see, itā€™s easier to change it with an in-game command than to rewrite the configuration file and restart the game.
  • What, JE is not a harder monster than BE?
    • Spawned on a dark plain and was surrounded by zombies and died.
    • I was struggling to build a base of mud walls, and the nether gate was opened in 40 minutes and 2 days in the game, I feel the difference in civilization.
  • After a round of multiplayer, we looked into Spigot and Paper and decided that we should stop the current server and start up a Paper server.
    • Getting Started ā€” PaperDocs 1.17.1 documentation
    • Default server, save data, etc. were in /opt/minecraft_server
    • I ran PAPER here.
    • Saved data in vanilla was converted automatically.
    • It accepts commands from the terminal, so it is common to run it in screen.
    • Iā€™m not sure about systemd, so Iā€™m holding off.
  • Not familiar with user management
    • $ adduser nishio
    • $ usermod -aG sudo nishio
    • .ssh/authorized_keys
    • At least I can now log in with public key authentication.
  • Plug-ins can now be included.
    • I want to render whatā€™s in the world.
      • I added Overviewer, but it doesnā€™t work well, probably because the save data format has changed.
      • dynmap with
        • I wanted to see it in quarter view, but the default was a map from directly above, which confused me.
        • The quarter view had a confusing menu on the right edge of the screen.
          • image
        • Itā€™s interesting to see the architectural process that people are doing at a distance.
  • Spawn chunks must be unprotected to allow other players to break the block.
    • server.properties: spawn-protection=0
  • ssh is stuck without detaching from screen and cannot attach
    • screen -dr
  • A new player came in and started building a farm.
    • image
  • Iā€™ve added various plug-ins.
    • holographic-displays Instead of hard-to-see signs that can produce glowing holographic letters
    • EconomyShopGUI: Shop functionality is in, but I thought it was user-to-user, but it doesnā€™t look like it.
    • worldedit, I havenā€™t used it for edit purposes at all, but itā€™s useful because it jumps over the block youā€™re looking at with jumpto
  • Server killed
    • 4GB memory VPS with java -Xmx4G is not right.
    • I set it to java -Xmx3G and it hasnā€™t happened since.
  • image
    • I was able to get to semi-automatic collection, for some reason the villagers wonā€™t increase, and when they do, Iā€™m going to lock them up and put them to work.
  • Someone who likes decorative architecture updated the base.
    • image

2021-09-13

  • Reduce the frequency of dynmap updates.
  • I learned about Slimefun, put it in, it is an industrialization plugin that adds generators, etc.
    • If youā€™re not a new user, it looks like you donā€™t have the guide.
      • You can get it at /sf guide.
    • I worked hard to dig clay and make bricks, but I misinterpreted, Multiblock is a device that works by ā€œplacingā€ multiple blocks in the world according to a recipe.
    • It takes experience to unlock the technology tree, and I canā€™t do anything because I just died and lost it. w
      • In JE, the experience from burning cactus in a kamado is the same as gold ore.
        • I planted cacti in the sand here and there.
        • Verified if experience or mado bug reproduced in JE ā†’ did not reproduce.
  • Itā€™s a pain to attach to screen and put in admin commands and quit/restart.
$ ps -a | grep java
$ sudo kill <PROCESS_ID>
  • Enchanted table was made at the base! And lots of cows and sheep.
  • The automatic drowning chicken slaughtering equipment used in BE does not work in JE.
  • Micra has a feature RCON that sends packets and executes commands.
  • You can automatically restart java by wrapping its startup in a bash while src.
  • Configuration files are now Github managed.
    • Enable-rcon=true enable-rcon=true rcon.password=XXXinserver.properties` with RCON also turned on
  • image

2021-09-14

  • They built a Slimefun research facility next to our base.
    • The equipment is bulky and growing rapidly, so it is right to make it in a form that can be expanded.
    • First wooden, but fires broke out because of the fire.
  • They built an automatic sapling collection plantation.
    • image
    • Plant when you get it. Birch and oak are OK.
  • image

2021-09-15 - Mikeā€™s Cactus - Building an automatic cactus harvesting farm on top of the lab or on a farm. - ā†’We decided to do it on the farm because itā€™s not safe to use water on the lab and wipe out the Redstone circuit in the event of an accident. - stackable - Except on the ground floor, you donā€™t have to use the hopper, simply drop it through the hole and it goes into the hopper below.

[01:16:18 WARN]: Horse (vehicle of XXX) moved wrongly! 0.2619578421472575
[01:17:18 WARN]: XXX was kicked for floating too long!
[01:17:18 INFO]: XXX lost connection: Flying is not enabled on this server
- It's strange that I get a log saying I'm going too fast on horseback, but then a second later I get kicked for flying, which makes me think I was just riding a horse.
- changed spigot option: [Server spaming moved wrongly/tooquickly | SpigotMC - High Performance Minecraft](https://www.spigotmc.org/threads/server-spaming-moved-wrongly-tooquickly.237103/)
- Pipes and autocraft are now included while rebooting.
  • Transport-Pipes is very good.
    • The automatic sorting, which is forced to be achieved by turning hoppers and droppers on and off with redstone, would be compact without being too noisy or heavy.
    • The pipe material asked me if I wanted to download it when I started it, if I didnā€™t put it in, would this happen?
      • image
  • Chicken slaughtering equipment: ā€œWhen they grow up, use the button on the side to let the water out, wait 20 seconds or so and they all drown, then drain the water and collect the itemsā€.
    • With BE, it was just fine to leave the water on the half block and drown from the ones that grew up on it, but with JE, the items float above the water because of the jittery swim and die in the water, and the hopper canā€™t suck them up.
  • Slimefun
    • Explosive pickaxe (Explosive Pickaxe) researched but not enough materials to make it.
  • Problem with automatic backup not working.
    • [07:40:51 INFO]: [DriveBackupV2] No backup method is enabled
    • DriveBackupV2 is a plugin that aims to provide an extra layer of security to your data by backing it up remotely.

    • I decided to save it to Dropbox.
      • If for some reason the server disappears, there is save data within an hour, so it can be recovered.
  • Twitter
    • nishio: What do you recommend a Mac user use nowadays to send or get files to a remote Linux machine?

      • (typing the scp command in the terminal and thinking ā€œisnā€™t this the old fashioned way?ā€ I think.)

    • nishio: I didnā€™t explain the use case for this, so I got a lot of different opinions, but when we talked about putting the jar of the plugin on the Mycla server, I concluded that it was a good idea to add it to VSCodeā€™s I opened it with Remote Explorer and was able to add it with a familiar view, editing the configuration file was easy, and we concluded that we could centralize the configuration management with git, which we had originally done.

  • Java option: Tuning the JVM ā€“ G1GC Garbage Collector Flags for Minecraft

2021-09-16

  • How do I decide when I want to restart the server at an appropriate time, even though Iā€™m not in a hurry?
    • ā†’I got the idea of periodic automatic reboots.
    • Automatic restart at 16:00 on weekdays, no restart on weekends except for emergency maintenance
      • Iā€™d like to ā€œreboot only when there is a configuration update,ā€ but that comes later.
  • I was able to exit and restart via RCON, but rather the problem with the above start.sh is that ā€œthe only way to stop the restart is for a human to SIGINT again within 5 seconds of the Java process terminationā€¦ā€
    • Youā€™d have to be a terminal observer to do something like that.
    • Examining conditional branching in bash :
$ [ -f "autorestart" ]; echo $?
1
$ touch autorestart
$ [ -f "autorestart" ]; echo $?
0
- If the `disable_restart` file exists, it is not restarted.

bash

if [ -f "disable_restart" ]; then
    break
fi
- Find out how to write cron...

cron_settings

30 15 * * 1-5	/usr/local/bin/mcrcon -p <PASS> "say The server will reboot in 30 minutes!"
55 15 * * 1-5	/usr/local/bin/mcrcon -p <PASS> "say The server will reboot in 5 minutes!"
0  16 * * 1-5	/usr/local/bin/mcrcon -p <PASS> "stop"
    - It now reboots at 4pm on weekdays with a 30 minute and 5 minute warning.
  • Transport-Pipes can be used to fill the kamado with cactus and fuel.
    • The main task of the hopper, ā€œsucking up items from the world,ā€ can only be done by the hopper.
    • Itā€™s like forcing the hopper to change from doing a pipeline thing to a straightforward pipe.
  • It would be nice if we could notify Mattermost of the completion of the reboot or something.
    • Discord had it discord-webhook
    • DiscordSRV
      • Notification of login/logout/death for each user and server stop/start
      • Discord and Micraā€™s respective chats are supposed to be relayed, but they are not, cause unknown.
      • ā†’ 2021-09-19 There was a statement that LunaChat hooks need to be disabled in DiscordSRV settings because they clash when used with LunaChat at the same time!
  • I just want to get 20 seconds of water out of the chickens after theyā€™ve been growing for 20 minutes for slaughter.
    • I was told that could be done with a daylight sensor.
      • A day in the microwave is 20 minutes.
      • Shorter time than item despawn if water is released only during the highest signal strength in clear weather.
    • How to make a pulse edge detection circuit in a Redstone circuit?
      • I was told I could get the rise and fall just by looking at the observer.
    • Now we have automatic slaughter of chickens.

2021-09-17

  • Slimefun There is a nickel that can retrieve the sponer so we can relocate what we find to our base.
  • Eternal Light Warnings displayed when it is dark enough for monsters to spawn.
    • The nether is so spicy that placing torches at normal intervals doesnā€™t help the wanderers.
  • Slimefun: Industrial Miner, I put 1 coal in the fuel for now, it should only run for 8ore minutes, but I thought it was running all the time, it seems it was taking coal by itself and kept mining, I got 98 pieces!
    • I moved it twice in the same spot and got nothing the second time, so it looks like Iā€™m digging to bedrock at 7x7.
    • Amazing! Coal gulp! I guess, but it consumes 4 stacks of coal to make the synthetic diamonds needed for the creation of the other tools, so itā€™s more in and outā€¦
  • image

2021-09-18

  • Slimefun, studied an axe that can take a continuous piece of wood in one piece.
    • Convenient because it can cleanly take out trees with complicated shapes.
    • The dense forest around the base was thinned out to create a large chest full of wood piles.
  • Transport-Pipes, understanding the behavior of craft pipes.
    • Copper iron gold, coal, redstone, and lapis lazuli placed in the automatic sorting machine are now automatically compressed into blocks before being stored.
  • Slimefun Explosion pickaxe, useful for digging underground with good visibility as it can dig 3 squares at once, but its durability is quickly depletedā€¦ I had a hard time making itā€¦ I guess Iā€™ll hold off until I can make a repair device.
    • Axes last longer
  • Slimefun I built a pipeline to make gold ore from stone so that I donā€™t have to grind it.
  • When I planted a tree by the lava breeder and said to myself, ā€œNow I can make all the charcoal I want,ā€ the lava ignited the leaves and caused a huge fire!
    • Good thing the lab is in a fireproof buildingā€¦
    • I wonder if it would be safe if I put the lid on it.
      • ā†’I think the fire is coming out of the cauldron below.
    • Iā€™ve been keeping it by the river to limit damage in the event of an accident, but Iā€™d rather keep it indoors where itā€™s fireproof.
  • Iā€™m doing research on Basic Circuit Board and seeing how to make it and Iā€™m like ā€œehā€¦ā€
  • What are some of the continuous operations you would like me to do on an abandoned account? ā†’Round stone maker
    • I researched and built a round stone device ref.
    • Only long press, not continuous press.
      • PyAutoGUI
        • nishio: Iā€™m installing Python on my gaming PC because this PyAutoGUI thing looks interesting. Iā€™ve not built a Python environment on Windows in how many years?

        • nishio: Ctrl+d and say ā€œHey, I canā€™t exit!

        • enter with pip python
import pyautogui
import time
time.sleep(5)
pyautogui.mouseDown()
        - easy
- Supply pickaxe
    - If left unattended, pickaxes break rather quickly.
        - A stone pickaxe breaks in a little over 3 minutes, not twice as long as steel, and more than 10 times as long as diamonds.
    - Since automatic crafting is possible, why not just make and throw them on a regular basis?

This page is auto-translated from /nishio/惞悤ć‚Æ惩JEę—„čؘ using DeepL. If you looks something interesting but the auto-translated English is not good enough to understand it, feel free to let me know at @nishio_en. Iā€™m very happy to spread my thought to non-Japanese readers.