Merge pull request #7 from dragonruler1000/DEV

Adding achevements and trying to get subtle knife to place a block.
This commit is contained in:
dragonruler1000 2025-05-13 09:17:43 -05:00 committed by GitHub
commit d08ea83cbb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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) {
//
// }

View file

@ -1,5 +1,5 @@
{
"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
}