maruohon / litematica

A modern client-side schematic mod for Minecraft
GNU Lesser General Public License v3.0
686 stars 190 forks source link

easy place blocks not working in servers #834

Open BigMan2o opened 2 months ago

BigMan2o commented 2 months ago

i wanted to use easyplace on a server but it isnt working. i tried more then one fix and isnt working. is it maybe the server or litematica? can u please look in to that?

maruohon commented 2 months ago

Easy Place mode block rotations on a server

The Easy Place mode uses the so called Carpet mod "accurate block placement" protocol to request the correct block rotation (and possible other properties) from the server. This means that if you are on a server, then for the Easy Place to be able to request the correct orientation of blocks, the server needs to have the CarpetExtra mod installed, with the accurateBlockPlacement rule enabled.

Without the above mentioned server-side support Easy Place will not rotate any blocks in multiplayer.

In some cases you may need to also set the Generic -> easyPlaceProtocolVersion config to Version 2, if Litematica can't detect Carpet mod on the server otherwise. Note that you should not keep that config hard coded to Version 2 (or Version 3 for that matter) on servers that don't have CarpetExtra, see below.

If the server doesn't and can't have CarpetExtra, then set the Generic -> easyPlaceProtocolVersion config to Auto or Slabs Only (or None), or otherwise you will just get ghost blocks with any blocks that have a rotation property, when you try to place those via the Easy Place mode. This is because vanilla 1.18.2 added a new check to the item use packet handling that basically rejects the item use packets entirely if they have been modified by the accurate block placement protocol, if the server hasn't been modded to bypass that check.

The protocol version 3 is currently only supported by Litematica itself in single player, plus when Earth's https://modrinth.com/mod/litemoretica mod is both on the server and the client.

Summary: