Chest drop fix
This commit is contained in:
parent
93babb0282
commit
58f9f40251
1 changed files with 8 additions and 0 deletions
8
kubejs/server_scripts/integration/MinecraftChest.js
Normal file
8
kubejs/server_scripts/integration/MinecraftChest.js
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
onEvent('entity.spawned', event => {
|
||||||
|
const itemEntity = event.getEntity();
|
||||||
|
if (!itemEntity || !itemEntity.getItem()) return;
|
||||||
|
|
||||||
|
if (itemEntity.getItem().getId() === 'minecraft:chest') {
|
||||||
|
itemEntity.setItem(Item.of('expandedstorage:wood_chest'));
|
||||||
|
}
|
||||||
|
});
|
||||||
Loading…
Reference in a new issue