mirror of
https://github.com/dragonruler1000/hdm-mod.git
synced 2025-06-29 16:39:32 -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.
|
# The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default.
|
||||||
mod_license=MIT
|
mod_license=MIT
|
||||||
# The mod version. See https://semver.org/
|
# 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.
|
# 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.
|
# This should match the base package used for the mod sources.
|
||||||
# See https://maven.apache.org/guides/mini/guide-naming-conventions.html
|
# See https://maven.apache.org/guides/mini/guide-naming-conventions.html
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
package us.minecraftchest2.hdm_mod.item.custom;
|
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.Item;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.item.ItemUseContext;
|
import net.minecraft.item.ItemUseContext;
|
||||||
|
@ -18,12 +20,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 =
|
||||||
|
PlayerEntity player = context.getPlayer();
|
||||||
|
|
||||||
if(!world.isRemote) {
|
if(world.isRemote) {
|
||||||
BlockPos another_pos;
|
// world.setBlockState()
|
||||||
|
|
||||||
}
|
}
|
||||||
return super.onItemUseFirst(stack, context);
|
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": {
|
"result": {
|
||||||
"item": "hdm_mod:dust"
|
"item": "hdm_mod:dust",
|
||||||
|
"count": 9
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue