Flavolite furnace, missing shaders, some pick stacks
This commit is contained in:
parent
2315e97b9a
commit
3553e6504d
9 changed files with 39 additions and 1 deletions
|
@ -1,9 +1,14 @@
|
|||
package ru.betterend.blocks;
|
||||
|
||||
import net.fabricmc.api.EnvType;
|
||||
import net.fabricmc.api.Environment;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.BlockState;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.state.StateManager;
|
||||
import net.minecraft.state.property.EnumProperty;
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
import net.minecraft.world.BlockView;
|
||||
import ru.betterend.blocks.BlockProperties.TripleShape;
|
||||
import ru.betterend.blocks.basis.UpDownPlantBlock;
|
||||
import ru.betterend.registry.EndBlocks;
|
||||
|
@ -20,4 +25,10 @@ public class GlowingPillarRootsBlock extends UpDownPlantBlock {
|
|||
protected boolean isTerrain(BlockState state) {
|
||||
return state.isOf(EndBlocks.AMBER_MOSS);
|
||||
}
|
||||
|
||||
@Override
|
||||
@Environment(EnvType.CLIENT)
|
||||
public ItemStack getPickStack(BlockView world, BlockPos pos, BlockState state) {
|
||||
return new ItemStack(EndBlocks.GLOWING_PILLAR_SEED);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,6 +3,8 @@ package ru.betterend.blocks;
|
|||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import net.fabricmc.api.EnvType;
|
||||
import net.fabricmc.api.Environment;
|
||||
import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings;
|
||||
import net.fabricmc.fabric.api.tool.attribute.v1.FabricToolTags;
|
||||
import net.minecraft.block.Block;
|
||||
|
@ -100,4 +102,14 @@ public class LumecornBlock extends BlockBaseNotFull implements IRenderTypeable {
|
|||
return Collections.emptyList();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
@Environment(EnvType.CLIENT)
|
||||
public ItemStack getPickStack(BlockView world, BlockPos pos, BlockState state) {
|
||||
LumecornShape shape = state.get(SHAPE);
|
||||
if (shape == LumecornShape.BOTTOM_BIG || shape == LumecornShape.BOTTOM_SMALL || shape == LumecornShape.MIDDLE) {
|
||||
return new ItemStack(EndBlocks.LUMECORN_SEED);
|
||||
}
|
||||
return new ItemStack(EndItems.LUMECORN_ROD);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"defaultMaterial": "betterend:glow_purple"
|
||||
}
|
|
@ -4,6 +4,6 @@
|
|||
"top": "betterend:block/%top%",
|
||||
"front": "betterend:block/%front%",
|
||||
"side": "betterend:block/%side%",
|
||||
"bottom": "betterend:block/%bottom%"
|
||||
"bottom": "betterend:block/%top%"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"animation": {
|
||||
"interpolate": true,
|
||||
"frametime": 8,
|
||||
"frames": [
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
3
|
||||
]
|
||||
}
|
||||
}
|
Binary file not shown.
After Width: | Height: | Size: 679 B |
Binary file not shown.
After Width: | Height: | Size: 2.6 KiB |
Binary file not shown.
After Width: | Height: | Size: 620 B |
Binary file not shown.
After Width: | Height: | Size: 561 B |
Loading…
Add table
Add a link
Reference in a new issue