#How can I add all blocks in a mod to a tag?

27 messages · Page 1 of 1 (latest)

dense oysterBOT
#

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

terse holly
hardy mist
#

@terse holly its gonna happen again

#

oh shit youre here

terse holly
hard meadow
#

well this is helpful

verbal kite
verbal kite
#
    e.add('atmospheric:yucca_placeable', '@minecraft')
  })```
#

tested it, adds the tag to all specified mod items

#
    e.add('atmospheric:yucca_placeable', '@minecraft')
  })``` for blocks
hard meadow
#

@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?

terse holly
#

that's what happens when you try to use 1.19 syntax on 1.18

hard meadow
#

;-;

hard meadow
crimson orbitBOT
#

You can modify tags with KubeJS, and the wiki has a page on that!

hard meadow
#

yes ive seen this wiki page

terse holly
#

use what they provided, however swap the event line for onEvent('item.tags', e => { (for items)

hard meadow
terse holly
#

what

hard meadow
#

create also has a bunch of blocks with no item variant

hard meadow
terse holly
#

e.add('some:tag', '@create')

#

as I said

hard meadow
#

you didnt say this

terse holly
#

use what @verbal kite provided, just swap the event line

hard meadow
#

ok thats more helpful, works now