mirror of
https://github.com/dragonruler1000/hdm-mod.git
synced 2025-06-29 08:29:33 -05:00
Merge pull request #5 from dragonruler1000/DEV
Updated recipe for dust and changed texture. Also trying to get Subtle Knife to work.
This commit is contained in:
commit
7ef39d64cb
5 changed files with 10 additions and 5 deletions
|
@ -38,7 +38,7 @@ mod_name=Hdm Mod
|
|||
# The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default.
|
||||
mod_license=MIT
|
||||
# The mod version. See https://semver.org/
|
||||
mod_version=1.0
|
||||
mod_version=1.1
|
||||
# The group ID for the mod. It is only important when publishing as an artifact to a Maven repository.
|
||||
# This should match the base package used for the mod sources.
|
||||
# See https://maven.apache.org/guides/mini/guide-naming-conventions.html
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
package us.minecraftchest2.hdm_mod.item.custom;
|
||||
|
||||
import jdk.nashorn.internal.ir.Block;
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.ItemUseContext;
|
||||
|
@ -18,12 +20,14 @@ public class SubtleKnife extends Item {
|
|||
@Override
|
||||
public ActionResultType onItemUseFirst(ItemStack stack, ItemUseContext context) {
|
||||
World world = context.getWorld();
|
||||
// BlockPos pos =
|
||||
PlayerEntity player = context.getPlayer();
|
||||
|
||||
if(!world.isRemote) {
|
||||
BlockPos another_pos;
|
||||
|
||||
if(world.isRemote) {
|
||||
// world.setBlockState()
|
||||
}
|
||||
return super.onItemUseFirst(stack, context);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 191 B After Width: | Height: | Size: 380 B |
BIN
src/main/resources/assets/hdm_mod/textures/item/dust.png.pxo
Normal file
BIN
src/main/resources/assets/hdm_mod/textures/item/dust.png.pxo
Normal file
Binary file not shown.
|
@ -6,6 +6,7 @@
|
|||
}
|
||||
],
|
||||
"result": {
|
||||
"item": "hdm_mod:dust"
|
||||
"item": "hdm_mod:dust",
|
||||
"count": 9
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue