Update the uncrafter block model inworld displays
This commit is contained in:
parent
66bc7d6304
commit
09e93001b5
3 changed files with 35 additions and 7 deletions
|
@ -42,11 +42,11 @@ public class UncrafterMenu extends AbstractContainerMenu
|
|||
addPlayerHotbar(inv);
|
||||
|
||||
this.entity.getCapability(ForgeCapabilities.ITEM_HANDLER, Direction.UP).ifPresent(handler->{
|
||||
addSlot(new SlotItemHandler(handler, 0, 39,39));
|
||||
addSlot(new SlotItemHandler(handler, 0, 40,40));
|
||||
});
|
||||
|
||||
this.entity.getCapability(ForgeCapabilities.ITEM_HANDLER, Direction.DOWN).ifPresent(handler->{
|
||||
addSlot(new SlotItemHandler(handler, 0, 151, 39));
|
||||
addSlot(new SlotItemHandler(handler, 0, 152, 40));
|
||||
});
|
||||
|
||||
|
||||
|
@ -130,12 +130,12 @@ public class UncrafterMenu extends AbstractContainerMenu
|
|||
|
||||
@Override
|
||||
public boolean stillValid(Player player) {
|
||||
return stillValid(ContainerLevelAccess.create(level, entity.getBlockPos()), player, ModBlocks.COMPRESSION_CHAMBER.get());
|
||||
return stillValid(ContainerLevelAccess.create(level, entity.getBlockPos()), player, ModBlocks.UNCRAFTER.get());
|
||||
}
|
||||
|
||||
private static final int PLAYER_INVENTORY_FIRST_SLOT_HEIGHT = 71;
|
||||
private static final int PLAYER_INVENTORY_FIRST_SLOT_LEFT = 29;
|
||||
private static final int PLAYER_HOTBAR_FIRST_SLOT = 138;
|
||||
private static final int PLAYER_INVENTORY_FIRST_SLOT_HEIGHT = 80;
|
||||
private static final int PLAYER_INVENTORY_FIRST_SLOT_LEFT = 22;
|
||||
private static final int PLAYER_HOTBAR_FIRST_SLOT = 139;
|
||||
|
||||
private void addPlayerInventory(Inventory inv)
|
||||
{
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -225,6 +225,34 @@
|
|||
}
|
||||
}
|
||||
],
|
||||
"display": {
|
||||
"thirdperson_righthand": {
|
||||
"scale": [0.5, 0.5, 0.5]
|
||||
},
|
||||
"thirdperson_lefthand": {
|
||||
"scale": [0.5, 0.5, 0.5]
|
||||
},
|
||||
"firstperson_righthand": {
|
||||
"scale": [0.5, 0.5, 0.5]
|
||||
},
|
||||
"firstperson_lefthand": {
|
||||
"scale": [0.5, 0.5, 0.5]
|
||||
},
|
||||
"ground": {
|
||||
"scale": [0.25, 0.25, 0.25]
|
||||
},
|
||||
"gui": {
|
||||
"rotation": [59, -39, -3],
|
||||
"scale": [0.5, 0.5, 0.5]
|
||||
},
|
||||
"head": {
|
||||
"scale": [0.95, 0.95, 0.95]
|
||||
},
|
||||
"fixed": {
|
||||
"rotation": [-90, 0, 0],
|
||||
"scale": [0.5, 0.5, 0.5]
|
||||
}
|
||||
},
|
||||
"groups": [
|
||||
0,
|
||||
{
|
||||
|
|
Reference in a new issue