mojira.dev
MC-147784

Fletching table flashes crafting table's GUI for about a second upon right-clicking it in spectator mode

The Bug:

Right-clicking the fletching table in spectator mode flashes the crafting table’s GUI for a split second. This is probably happening because the fletching table is using GUI group ”0xFF” which isn’t a valid one.

-------------------------------------------------

Steps to Reproduce:

1. Get a "Fletching Table" and place it down.

2. Go into spectator mode by using "F3 + N", "F3 + F4" or by just typing in chat "/gamemode spectator".

3. While in spectator mode go near the fletching table that you’ve just placed and then right-click the previously mentioned block.

--------------------------------------------------

Linked issues

MC-279391 Right clicking a fletching table in spectator mode pops up the crafting table menu for a couple of seconds Resolved MC-260973 Opening a fletching table in spectator flashes crafting menu Resolved MC-237796 When you try to use Fletching Table in Spectator mode, Crafting table menu appears for one frame Resolved MC-227504 Bug Resolved MC-203249 You can interact with the Fletching table in spectator mode Resolved

Attachments

Comments 18

Confirmed in 19w11a onwards

This is working as intended, see MC-143441.

To explain why the other one is resolved – it's resolved as "works as intended" meaning that it's known behavior, but intended. Bugs that are resolved as "fixed" are specifically fixed, but there are a few other resolutions (including, of course, "duplicate").

Confirmed in 1.16.1.

8 more comments

Here is FletchingTableBlock.java. Note that this is an extension of CraftingTableBlock.java. A solution would be to just make it an extension of Block.java instead.

package net.minecraft.world.level.block;import net.minecraft.core.BlockPos;
import net.minecraft.world.InteractionHand;
import net.minecraft.world.InteractionResult;
import net.minecraft.world.entity.player.Player;
import net.minecraft.world.level.Level;
import net.minecraft.world.level.block.state.BlockBehaviour;
import net.minecraft.world.level.block.state.BlockState;
import net.minecraft.world.phys.BlockHitResult;public class FletchingTableBlock extends CraftingTableBlock {
  protected FletchingTableBlock(BlockBehaviour.Properties paramProperties) {
    super(paramProperties);
  }
  
  public InteractionResult use(BlockState paramBlockState, Level paramLevel, BlockPos paramBlockPos, Player paramPlayer, InteractionHand paramInteractionHand, BlockHitResult paramBlockHitResult) {
    return InteractionResult.PASS;
  }
}

can confirm in 1.18.1

Only the first version an issue occured in, and latest versions are of interest, not outdated versions in between. (First one only so the cause can be narrowed down to code changed in said version.)

Can confim in 1.20.4

Gabe Rundlett

pulpetti

bl4ckscor3

Confirmed

Platform

Low

UI

crafting_table, fletching_table, spectator

Minecraft 1.14 Pre-Release 1, 1.14.4, 1.15.1, 20w19a, 1.16.1, ..., 24w10a, 1.20.5 Release Candidate 2, 1.21, 1.21.4, 1.21.5

25w34a

Retrieved