PaperMC / PaperMC/Paper

shulker box/block disapearing when placed on block that a mob is moving through

Open
#7,854 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

priority: low status: accepted type: bug
Dominant language
Java
Stars
12.7k
Forks
3.5k
Avg merge
3d 13h
Merged PRs (30d)
11

Description

Expected behavior

When i try to place a block and a quick moving mob crosses the block while i am placing it I would expect that the block would be re written into my inventory, as that seems to be what has happened with regular blocks, but this time i was placing a shulker full of equipment in the nether while a baby zombified piglin ran through the placement. the shulker full on disappeared. not back in my inventory, not on the ground where i tried to place it.
I shut down the game (client) and started making this bug report then thought to reload the game to see if it just hadn't rendered. Upon logging back in i found the shulker back in my hand, but

Observed/Actual behavior

this time i was placing a shulker full of equipment in the nether while a baby zombified piglin ran through the placement. the shulker full on disappeared. not back in my inventory, not on the ground where i tried to place it.
I shut down the game (client) and started making this bug report then thought to reload the game to see if it just hadn't rendered. Upon logging back in i found the shulker back in my hand, but this is not something that i enjoy happening.

Steps/models to reproduce

go the the nether, or wherever, try and place blocks, or shulkers full of stuff, and do it where quick moving friendly/neutral mobs are close by. chickens work, or baby piglins, zombified or otherwise. or sheep/cows when trying to build fences around them, it's bound to happen eventually. DON'T TRY TO PUT IT ON THE MOB, JUST ON THE BLOCK THAT THE MOB IS CROSSING

Plugin and Datapack List

vane suite 1.8.2
squaremap 1.1.2
Plugins (10): ProtocolLib, squaremap, vane-admin, vane-bedtime, vane-core, vane-enchantments, vane-permissions, vane-portals, vane-regions, vane-trifles

Paper version

This server is running Paper version git-Paper-350 (MC: 1.18.2) (Implementing API version 1.18.2-R0.1-SNAPSHOT) (Git: 3f7fbe3)
You are running the latest version
Previous version: git-Paper-305 (MC: 1.18.2)
also previous version, with same results, 260

Other

more information:
this disappearing block thing has been happening pretty much since I've been using paper, but it's the first time that the block didn't promptly show up back in my inventory. and it's the first time it happened with a shulker box
this probably doesn't help and should be made into it's own bug, but anyway..
I updated to 350 from 260 because i was getting an increase of nether portals losing their link. I'd go into the nether just fine, but on returning to the over-world i would be routed to a newly spawned gate that wasn't even in the same chunk. this is something that happened with every gate after updating to 1.18 from 1.17, but now it was happening randomly. updating to 350 seemed to fix the issue. if it does continue then it will get a issue report.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the placement behavior on Paper 1.18.2 with a moving mob nearby, comparing ordinary blocks with shulker boxes and the listed plugins enabled. Check whether the item returns to the inventory after placement is interrupted, including after reconnecting; the report does not name source files or tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
game-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.