Initial commit

This commit is contained in:
2024-11-28 17:00:03 +00:00
commit c0bd808561
11697 changed files with 631986 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
import crafttweaker.api.item.IItemStack;
import crafttweaker.api.events.CTEventManager;
import crafttweaker.api.event.entity.player.interact.RightClickItemEvent;
val DisabledRightClickItems = [
<item:apocalypsenow:spear>
] as IItemStack[];
for Item in DisabledRightClickItems
{
CTEventManager.register<RightClickItemEvent>((event) => {
var player = event.player;
if Item.anyDamage().matches(player.getMainHandItem()) {
event.cancel();
}
});
}