the most direct way is to lock the element and make it inherit slime properties, when you lock it open YourBlock.java, add import net.minecraft.world.level.block.SlimeBlock; to the imports and change the text after extends from Block to SlimeBlock so that you'll have something like public class YourBlock extends SlimeBlock
the most direct way is to lock the element and make it inherit slime properties, when you lock it open YourBlock.java, add
import net.minecraft.world.level.block.SlimeBlock;
to the imports and change the text afterextendsfromBlocktoSlimeBlockso that you'll have something likepublic class YourBlock extends SlimeBlock