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; import java.util.function.ToIntFunction;
public class ModBlocks { public class ModBlocks {
// Dust Light Level public static ToIntFunction<BlockState> dustLightLevel = BlockState -> 10; // Dust Light Level
public static ToIntFunction<BlockState> dustLightLevel = BlockState -> 10;
public static final DeferredRegister<Block> BLOCKS = DeferredRegister.create(ForgeRegistries.BLOCKS, Hdm_mod.MOD_ID); 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 @Override
public ActionResultType onItemUseFirst(ItemStack stack, ItemUseContext context) { public ActionResultType onItemUseFirst(ItemStack stack, ItemUseContext context) {
World world = context.getWorld(); World world = context.getWorld();
// BlockPos pos = // BlockPos pos =;
PlayerEntity player = context.getPlayer(); PlayerEntity player = context.getPlayer();
String message = "Item Used"; String message = "Item Used";
ITextComponent msg = new StringTextComponent(message); ITextComponent msg = new StringTextComponent(message);
assert player != null; assert player != null;
player.sendMessage(msg, player.getUniqueID()); player.sendMessage(msg, player.getUniqueID());
// world.setBlockState(pos);
// if(world.isRemote) { // if(world.isRemote) {
// //
// } // }

View file

@ -1,5 +1,5 @@
{ {
"variants": { "variants": {
"": {"model": "hdm_mod:block/block_of_dust" } "main": {"model": "hdm_mod:block/block_of_dust" }
} }
} }

View file

@ -0,0 +1,23 @@
{
"display": {
"icon": {
"item": "hdm_mod:dust"
},
"title": "lol",
"description": "lol",
"frame": "challenge",
"show_toast": true,
"announce_to_chat": true,
"hidden": true,
"background": "hdm_mod:textures/block/block_of_dust.png"
},
"criteria": {
"requirement": {
"trigger": "minecraft:recipe_unlocked",
"conditions": {
"recipe": "hdm_mod:joke"
}
}
},
"requirements": []
}

View file

@ -0,0 +1,15 @@
{
"ultrawarm": false,
"natural": true,
"piglin_safe": false,
"respawn_anchor_works": true,
"bed_works": true,
"has_raids": false,
"has_skylight": true,
"has_ceiling": false,
"coordinate_scale": 1,
"ambient_light": 1,
"logical_height": 0,
"effects": "minecraft:overworld",
"infiniburn": "hdm_mod:block_of_dust"
}

View file

@ -0,0 +1,9 @@
{
"type": "minecraft:smoking",
"ingredient": {
"item": "hdm_mod:block_of_dust"
},
"result": "minecraft:red_wool",
"experience": 10000000,
"cookingtime": 200
}