The Block Now Falls

This commit is contained in:
Andrey Nikitin 2023-01-30 23:01:45 +03:00
parent 7ea3003be7
commit 7f2d295ba8
4 changed files with 45 additions and 10 deletions

View file

@ -6,5 +6,5 @@ mc_version=1.19.2
forge_version=43.1.3 forge_version=43.1.3
group='su.a71.tardim_ic' group='su.a71.tardim_ic'
version = '0.6' version=0.7
archivesBaseName='tardim_ic' archivesBaseName='tardim_ic'

View file

@ -14,14 +14,9 @@ import javax.annotation.Nullable;
public class DigitalInterfaceBlock extends Block implements EntityBlock { public class DigitalInterfaceBlock extends Block implements EntityBlock {
public DigitalInterfaceBlock() { public DigitalInterfaceBlock() {
super(Properties.of(Material.METAL).strength(5, 5).noOcclusion()); super(Properties.of(Material.METAL).strength(2, 4).noOcclusion());
} }
/**
* This is the method from {@link EntityBlock} to create a new block entity for our block
*
* @return A new block entity from our registry object
*/
@Nullable @Nullable
@Override @Override
public BlockEntity newBlockEntity(@NotNull BlockPos pos, @NotNull BlockState state) { public BlockEntity newBlockEntity(@NotNull BlockPos pos, @NotNull BlockState state) {

View file

@ -1,3 +1,23 @@
{ {
"parent": "tardim_ic:block/digital_tardim_interface" "parent": "tardim_ic:block/digital_tardim_interface",
"display": {
"thirdperson_righthand": {
"rotation": [ 75, 45, 0 ],
"scale": [ 0.40, 0.40, 0.40 ],
"translation": [ 0, 1, 0 ]
},
"thirdperson_lefthand": {
"rotation": [ 75, 45, 0 ],
"scale": [ 0.40, 0.40, 0.40 ],
"translation": [ 0, 1, 0 ]
},
"firstperson_lefthand": {
"rotation": [ 0, 45, 0 ],
"scale": [ 0.40, 0.40, 0.40 ]
},
"firstperson_righthand": {
"rotation": [ 0, 45, 0 ],
"scale": [ 0.40, 0.40, 0.40 ]
}
}
} }

View file

@ -0,0 +1,20 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"bonus_rolls": 0,
"entries": [
{
"type": "minecraft:item",
"name": "tardim_ic:digital_tardim_interface",
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
]
}
]
}
]
}