litematica icon indicating copy to clipboard operation
litematica copied to clipboard

Easy Place mode has some issues

Open Hurora opened this issue 3 years ago • 8 comments

  • Minecraft version: 1.18.2

  • malilib-fabric-1.18.2-0.12.1 and litematica-fabric-1.18.2-0.11.1

  • When I use Easy Place mode on the server,placing Piston and Observer from schematic causes "ghost blocks" to be placed.I turned on the Carpet Accurate Block Placement protocol, and I set the easyPlaceProtocol to v2 and it's still the same.

Hurora avatar Mar 31 '22 06:03 Hurora

There was a new check added in vanilla 1.18.2, which breaks the "accurate placement protocol" (which is used to request the specific block rotations) and trying to request rotations via the protocol just causes ghost blocks now, as the server rejects the item use packet.

Currently in single player you can fix this simply by having Tweakeroo 0.13.1 installed (and having the clientPlacementRotation option enabled, which it is by default). I'll add the same fix directly to Litematica in the next release, whenever I'll end up making one.

On a server the server would need to have a fixed version of CarpetExtra. The upstream/official CarpetExtra does not have that fix yet, my PR for the fix is still open (see https://github.com/gnembon/carpet-extra/pull/250). There is a fixed build of CarpetExtra with the fix and also the improved accurate placement protocol implementation linked here: https://github.com/gnembon/carpet-extra/pull/251#issuecomment-1075025541

maruohon avatar Mar 31 '22 10:03 maruohon

Ok, thanks for your answer

Hurora avatar Mar 31 '22 11:03 Hurora

I tested this, and when using easy place mode and placing pistons, observers on my 1.18.2 fabric server it just becomes ghost blocks. I have the carpet extra that you made.

Caelitrum avatar May 26 '22 11:05 Caelitrum

@Caelitrum To clarify, the server has CarpetExtra 1.4.69 or later, and it also has the accurateBlockPlacement rule enabled? Those are a requirement for not making ghost blocks in 1.18.2+ on a server.

Without CarpetExtra on the server and that rule enabled, you can only use the Slabs Only Easy Place protocol version option in Litematica, without making ghost blocks of any block that has a rotation property.

maruohon avatar May 26 '22 12:05 maruohon

How do I activate the accurateBlockPlacement and how can I update the carpetextra? I have carpet extra 1.18.2 1.4.64 masa

Caelitrum avatar May 27 '22 14:05 Caelitrum

@Caelitrum You enable the rule by running the command:

/carpet accurateBlockPlacement true

or rather this, assuming you want it to also persist after a server restart:

/carpet setDefault accurateBlockPlacement true

And you update the mod by just downloading the latest 1.18.2 version that is available, which is 1.4.72, from here: https://github.com/gnembon/carpet-extra/releases and putting it to the server's mods/ directory, and removing the old CarpetExtra version you have in there.

maruohon avatar May 27 '22 14:05 maruohon

Now when I did that, all blocks I place become ghost blocks, even normal vanilla blocks like shulker. I will propertly restart server to see if that helps now.

Caelitrum avatar May 27 '22 15:05 Caelitrum

It worked! Thanks for answering so fast and helping! I just had to change protocl to v2

Caelitrum avatar May 27 '22 15:05 Caelitrum