make snad actually minable + bump version + polish

This commit is contained in:
Soph :3 2025-10-05 15:58:02 +03:00
parent dcb3f6cb8f
commit 63890ae526
4 changed files with 21 additions and 2 deletions

View file

@ -6,7 +6,7 @@ minecraft_version=1.21.8
yarn_mappings=1.21.8+build.1 yarn_mappings=1.21.8+build.1
loader_version=0.17.2 loader_version=0.17.2
# Mod Properties # Mod Properties
mod_version=0.3 mod_version=0.4
maven_group=ovh.sad maven_group=ovh.sad
archives_base_name=snad-fabric archives_base_name=snad-fabric
# Dependencies # Dependencies

View file

@ -19,6 +19,7 @@ import net.minecraft.registry.RegistryKey;
import net.minecraft.registry.RegistryKeys; import net.minecraft.registry.RegistryKeys;
import net.minecraft.registry.tag.BlockTags; import net.minecraft.registry.tag.BlockTags;
import net.minecraft.registry.tag.TagKey; import net.minecraft.registry.tag.TagKey;
import net.minecraft.sound.BlockSoundGroup;
import net.minecraft.state.StateManager; import net.minecraft.state.StateManager;
import net.minecraft.state.property.BooleanProperty; import net.minecraft.state.property.BooleanProperty;
import net.minecraft.state.property.Properties; import net.minecraft.state.property.Properties;
@ -62,7 +63,7 @@ public class Snad implements ModInitializer {
public static final Block SNAD_BLOCK = register( public static final Block SNAD_BLOCK = register(
"snad", "snad",
SnadBlock::new, SnadBlock::new,
AbstractBlock.Settings.create(), AbstractBlock.Settings.create().sounds(BlockSoundGroup.SAND),
true true
); );

View file

@ -0,0 +1,4 @@
{
"replace": false,
"values": ["snad:snad"]
}

View file

@ -0,0 +1,14 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"name": "snad:snad"
}
]
}
]
}