Skip to content

Commit

Permalink
Update Barrel.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Akiisqt authored Jan 26, 2024
1 parent 27c8b10 commit f9cd7b4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/java/com/akiisqt/customblock/Barrel.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,11 @@ protected void appendProperties(StateManager.Builder<Block, BlockState> builder)

@Override
@SuppressWarnings("deprecation")
public ActionResult onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) {
public ActionResult onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) {
//Check if barrel is sealed, check thst item stack is empty, check if player is crouched.
//check if barrel isnt sealed, check for barrel lid and right click seal barrel, if no lid and player is shift left clicking return prevous item

//check that hand has a valid recipe, if so send to client to change color of the powder and change the blockstate level up
return ActionResult.SUCCESS;
}

Expand Down

0 comments on commit f9cd7b4

Please sign in to comment.