#How can I add all blocks in a mod to a tag?
27 messages · Page 1 of 1 (latest)


well this is helpful
try this
e.add('atmospheric:yucca_placeable', '@minecraft')
})```
tested it, adds the tag to all specified mod items
e.add('atmospheric:yucca_placeable', '@minecraft')
})``` for blocks
@verbal kite sorry about the wait, had my hands full with a few things over the weekend, I just tested this - KubeJs throws a ReferenceError
"ServerEvents is not defined"
are you sure you tested this using kjs for mc 1.18?
that's what happens when you try to use 1.19 syntax on 1.18
;-;
any ideas on how to do this?
You can modify tags with KubeJS, and the wiki has a page on that!
yes ive seen this wiki page
use what they provided, however swap the event line for onEvent('item.tags', e => { (for items)
ah but I'm trying to future proof my code in case new blocks are added in later updates
what
create also has a bunch of blocks with no item variant
I dont want to have to update a taglist every time new blocks are added
you didnt say this
use what @verbal kite provided, just swap the event line
ok thats more helpful, works now