#Script to delete certain items from lootchests and player inventories

6 messages · Page 1 of 1 (latest)

hasty wasp
#

On our server, we decided to ban certain items. I would like to delete them from loot chests and player inventories. How do I do this in kubejs?

rocky lakeBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

eager tartan
#

I definitely remember making a 1.16 banned item list script

#

Let me see if I can find it

keen ermineBOT
#

[Quote ➤](#archived-example-scripts message) I made a somewhat primitive somewhat custom item blacklist script for 1.18.2 for server_scripts.
It currently supports blanket blacklisting items/blocks/entities from the following events:

  • Crafting/Furnace Recipes
  • Entity Spawning/Interacting
  • Item moving/interacting/dropping/picking up
  • Block breaking/placing/clicking

And support custom logic checks such as checking for creative mode, and could in theory support checking ranks/gamestages and other things.