add first patch

This commit is contained in:
2026-07-31 10:34:32 +09:00
parent 03aac2e45e
commit b1cbc6c78d
6390 changed files with 547430 additions and 0 deletions
@@ -0,0 +1,34 @@
// global.carpetTick = (entity) => {
// let nearbyEntities = entity.level
// .getEntitiesWithin(entity.getBoundingBox().inflate(3))
// .filter((entity) => entity.isPlayer());
// if (nearbyEntities.length > 0) {
// let player = nearbyEntities[0];
// if (player.isCrouching()) {
// entity.setRemoved("unloaded_to_chunk");
// Utils.getServer().runCommandSilent(
// `playsound minecraft:block.wool.break block @a ${player.x} ${player.y} ${player.z}`
// );
// player.give(Item.of("whimsy_deco:paw_carpet"));
// }
// }
// };
// StartupEvents.registry("entity_type", (e) => {
// e.create("whimsy_deco:paw_carpet_entity", "entityjs:mob")
// .isPushable(false)
// .onHurt((context) => {
// context.entity.setRemoved("unloaded_to_chunk");
// })
// .translationKey("entity.whimsy_deco.paw_carpet")
// .sized(0.1, 0.1)
// .isPushable(false)
// .canBeCollidedWith((entity) => false)
// .canCollideWith((entity) => false)
// .setDeathSound("minecraft:block.wool.break")
// .isImmobile((entity) => true)
// .tick((entity) => {
// if (entity.age % 80 != 0) return;
// global.carpetTick(entity);
// });
// });