Skip to content

Commit

Permalink
Purple Potato block finishing touches
Browse files Browse the repository at this point in the history
  • Loading branch information
Bluelightning26 committed Dec 8, 2024
1 parent 0c78787 commit 2cd8b41
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/net/pengi/potatoperks/block/ModBlocks.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public class ModBlocks {
new Block(AbstractBlock.Settings.create()
.strength(0.5f)
.sounds(BlockSoundGroup.FROGLIGHT)
.luminance(state-> 15)
));

public static final Block PETRIFIED_POTATO_ORE = registerBlock("petrified_potato_ore",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ public void onSteppedOn(World world, BlockPos pos, BlockState state, Entity enti
if(itemEntity.getStack().getItem() == ModItems.COOKED_ORANGE_POTATO){
itemEntity.setStack(new ItemStack(ModItems.PURPLE_POTATO, itemEntity.getStack().getCount()));
}
if(itemEntity.getStack().getItem() == ModItems.COOKED_PURPLE_POTATO){
itemEntity.setStack(new ItemStack(ModItems.PINK_POTATO, itemEntity.getStack().getCount()));
}
}
super.onSteppedOn(world, pos, state, entity);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"type": "minecraft:crafting_shapeless",
"category": "misc",
"ingredients": [
{
"item": "minecraft:potato"
},
{
"item": "minecraft:pink_dye"
},
{
"item": "minecraft:amethyst_shard"
},
{
"item": "minecraft:lapis_lazuli"
}
],
"result": {
"count": 3,
"id": "potatoperks:pink_potato"
}
}

0 comments on commit 2cd8b41

Please sign in to comment.