1

Custom mod for crafting, need help with events and tags

StormKnight737's Avatar StormKnight7372/15/24 1:20 pm history
1 emeralds 87
Ok so I need help with this. I’m trying to code a constantly running listener for my server. In my server we have 3 main races, each are supposed to have access to specific mods.


for example:
the humans have access to crafting items from the mod Epic Knights. I want the listener to activate when a player crafts items. When it activates I want it to check what mod the item the player is crafting is from. If the item is from one of the mods specific to teams, I want it to check what team they are on (Alternatively it could check the player’s tags). If the player is on the Human team (or has the human tag) and the item they are crafting is from the Epic Knights mod, it should work. However if the player is on the Dwarf team and the item is from the knights mod, it should clear the item after it enters their inventory.

I do NOT want to use command blocks to do this. How should I go about it?



Last thing, what is the correct format for checking a players nbt for a tag? I tried:


”predicate”
”nbt”: Tags {[​human]}


But I only got an error (this is for a custom advancement based on what tag you have)

What is the correct format for this?





edit: if I’m in the wrong forum section please let me know!
Posted by StormKnight737's Avatar
StormKnight737
Level 1 : New Miner
0

Create an account or sign in to comment.

Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome