Jack
- JackMC
- JIRAUSER704538
- America/Los_Angeles
- Yes
- No
The Barrel Block Placement code uses a method that uses the players looking direction instead of the placement face like other blocks..
the video shows the different placement states.
Pay close attention to how different parts of the side have an effect on the placement direction.
The Barrel Block Placement code uses a method that uses the players looking direction instead of the placement face like other blocks..
the video shows the different placement states.
Pay close attention to how different parts of the side have an effect on the placement direction.
code review (not mojang mappings):
{ return (BlockState)this.getDefaultState().with(AXIS, ctx.getSide().getAxis()); }
```java
//Pillar Block (the block that wood inherits)
public BlockState getPlacementState(ItemPlacementContext ctx)//Barrel Block (the barrels block class)
public BlockState getPlacementState(ItemPlacementContext ctx)
{ return (BlockState)this.getDefaultState().with(FACING, ctx.getPlayerLookDirection().getOpposite()); }```
the naming does a good job at describing the different methods do, and most importantly how they are different.
if you are doing a 1.20.2, and this is fully considered a bug. it might be something easy to add really quick
The Barrel Block Placement code uses a method that uses the players looking direction instead of the placement face like other blocks..
the video shows the different placement states.
Pay close attention to how different parts of the side have an effect on the placement direction.
code review (not mojang mappings):
{ return (BlockState)this.getDefaultState().with(AXIS, ctx.getSide().getAxis()); }
```java
//Pillar Block (the block that wood inherits)
public BlockState getPlacementState(ItemPlacementContext ctx)//Barrel Block (the barrels block class)
public BlockState getPlacementState(ItemPlacementContext ctx)
{ return (BlockState)this.getDefaultState().with(FACING, ctx.getPlayerLookDirection().getOpposite()); }```
the naming does a good job at describing the different methods do, and most importantly how they are different.
if you are doing a 1.20.2, and this is fully considered a bug. it might be something easy to add really quick
The Barrel Block Placement code uses a method that uses the players looking direction instead of the placement face like other blocks..
the video shows the different placement states.
Pay close attention to how different parts of the side have an effect on the placement direction.
code review (not mojang mappings):
//Pillar Block (the block that wood inherits) public BlockState getPlacementState(ItemPlacementContext ctx){ return (BlockState)this.getDefaultState().with(AXIS, ctx.getSide().getAxis()); } //Barrel Block (the barrels block class) public BlockState getPlacementState(ItemPlacementContext ctx) { return (BlockState)this.getDefaultState().with(FACING, ctx.getPlayerLookDirection().getOpposite()); }the naming does a good job at describing the different methods do, and most importantly how they are different.
if you are doing a 1.20.2, and this is fully considered a bug. it might be something easy to add really quick
pls fix mojang
Dupe of
MC-233276Does not seem like a valid issue, the only possible use case is future versions adding settings, this seems inapplicable though, only a small occurrence, besides it would be too much work to fix such an issue as they would need to rewrite how they load and save the Options, IIRC they get put into objects then taken back from them and put together and completely overwrite the file.
Ok. Makes sense. should I close it or let someone close it?
It seems like a weird inconsistency as the face does not do anything, the same as a log. But if it is a feature then that's fine.