Adding achevements and trying to get subtle knife to place a block.

This commit is contained in:
dragonruler1000 2025-05-13 09:17:14 -05:00
parent 170d0dbdef
commit c7269ce21c
6 changed files with 51 additions and 4 deletions

View file

@ -18,8 +18,7 @@ import java.util.function.Supplier;
import java.util.function.ToIntFunction;
public class ModBlocks {
// Dust Light Level
public static ToIntFunction<BlockState> dustLightLevel = BlockState -> 10;
public static ToIntFunction<BlockState> dustLightLevel = BlockState -> 10; // Dust Light Level
public static final DeferredRegister<Block> BLOCKS = DeferredRegister.create(ForgeRegistries.BLOCKS, Hdm_mod.MOD_ID);

View file

@ -23,13 +23,14 @@ public class SubtleKnife extends Item {
@Override
public ActionResultType onItemUseFirst(ItemStack stack, ItemUseContext context) {
World world = context.getWorld();
// BlockPos pos =
// BlockPos pos =;
PlayerEntity player = context.getPlayer();
String message = "Item Used";
ITextComponent msg = new StringTextComponent(message);
assert player != null;
player.sendMessage(msg, player.getUniqueID());
// world.setBlockState(pos);
// if(world.isRemote) {
//
// }