New sounds, registry rename
This commit is contained in:
parent
c609f98ec2
commit
1c03ecb5e3
105 changed files with 1449 additions and 1447 deletions
|
@ -10,7 +10,7 @@ import net.minecraft.state.property.BooleanProperty;
|
|||
import net.minecraft.util.math.BlockPos;
|
||||
import net.minecraft.world.World;
|
||||
import ru.betterend.blocks.basis.BlockBase;
|
||||
import ru.betterend.registry.BlockRegistry;
|
||||
import ru.betterend.registry.EndBlocks;
|
||||
import ru.betterend.util.BlocksHelper;
|
||||
import ru.betterend.util.PortalFrameHelper;
|
||||
|
||||
|
@ -18,7 +18,7 @@ public class RunedFlavolite extends BlockBase {
|
|||
public static final BooleanProperty ACTIVATED = BooleanProperty.of("active");
|
||||
|
||||
public RunedFlavolite() {
|
||||
super(FabricBlockSettings.copyOf(BlockRegistry.FLAVOLITE.polished).resistance(Blocks.OBSIDIAN.getBlastResistance()).luminance(state -> {
|
||||
super(FabricBlockSettings.copyOf(EndBlocks.FLAVOLITE.polished).resistance(Blocks.OBSIDIAN.getBlastResistance()).luminance(state -> {
|
||||
return state.get(ACTIVATED) ? 8 : 0;
|
||||
}));
|
||||
this.setDefaultState(stateManager.getDefaultState().with(ACTIVATED, false));
|
||||
|
@ -40,7 +40,7 @@ public class RunedFlavolite extends BlockBase {
|
|||
BlockState posState = world.getBlockState(position);
|
||||
if (posState.getBlock() instanceof RunedFlavolite && posState.get(ACTIVATED)) {
|
||||
BlocksHelper.setWithoutUpdate(world, position, posState.with(ACTIVATED, false));
|
||||
} else if (posState.isOf(BlockRegistry.END_PORTAL_BLOCK)) {
|
||||
} else if (posState.isOf(EndBlocks.END_PORTAL_BLOCK)) {
|
||||
world.removeBlock(position, false);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue