mirror of
https://github.com/dragonruler1000/hdm-mod.git
synced 2025-06-29 00:19: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) {
|
||||
//
|
||||
// }
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"variants": {
|
||||
"": {"model": "hdm_mod:block/block_of_dust" }
|
||||
"main": {"model": "hdm_mod:block/block_of_dust" }
|
||||
}
|
||||
}
|
23
src/main/resources/data/hdm_mod/advancements/lol.json
Normal file
23
src/main/resources/data/hdm_mod/advancements/lol.json
Normal 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": []
|
||||
}
|
15
src/main/resources/data/hdm_mod/dimension_type/testdim.json
Normal file
15
src/main/resources/data/hdm_mod/dimension_type/testdim.json
Normal 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"
|
||||
}
|
9
src/main/resources/data/hdm_mod/recipes/joke.json
Normal file
9
src/main/resources/data/hdm_mod/recipes/joke.json
Normal file
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"type": "minecraft:smoking",
|
||||
"ingredient": {
|
||||
"item": "hdm_mod:block_of_dust"
|
||||
},
|
||||
"result": "minecraft:red_wool",
|
||||
"experience": 10000000,
|
||||
"cookingtime": 200
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue