mirror of
https://github.com/dragonruler1000/hdm-mod.git
synced 2025-06-30 00:49:32 -05:00
Adding achevements and trying to get subtle knife to place a block.
This commit is contained in:
parent
170d0dbdef
commit
c7269ce21c
6 changed files with 51 additions and 4 deletions
|
@ -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);
|
||||
|
||||
|
||||
|
|
|
@ -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) {
|
||||
//
|
||||
// }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue