This commit is contained in:
parent
91fab233a4
commit
ce2e2df2d5
@ -7,10 +7,12 @@ import net.fabricmc.api.Environment;
|
||||
import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings;
|
||||
import net.minecraft.block.BlockState;
|
||||
import net.minecraft.block.Blocks;
|
||||
import net.minecraft.block.Material;
|
||||
import net.minecraft.block.ShapeContext;
|
||||
import net.minecraft.block.piston.PistonBehavior;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.server.world.ServerWorld;
|
||||
import net.minecraft.sound.BlockSoundGroup;
|
||||
import net.minecraft.sound.SoundCategory;
|
||||
import net.minecraft.sound.SoundEvents;
|
||||
import net.minecraft.util.function.BooleanBiFunction;
|
||||
@ -27,7 +29,7 @@ import java.util.Random;
|
||||
@SuppressWarnings("deprecation")
|
||||
public class EnergyPortalBlock extends SimpleBlock {
|
||||
public EnergyPortalBlock() {
|
||||
super(FabricBlockSettings.copy(Blocks.NETHER_PORTAL).dropsNothing().emissiveLighting((state, world, pos) -> true).noCollision());
|
||||
super(FabricBlockSettings.of(Material.PORTAL).strength(-1f, 3600000.8f).lightLevel(11).sounds(BlockSoundGroup.GLASS).dropsNothing().emissiveLighting((state, world, pos) -> true).noCollision());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user