#Why does this message keep on appearing?
9 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
here's my code
const seedID = [ 'mysticalagriculture:entro_seeds'];
ServerEvents.tags('item', (e) => {
for (let seeds of seedID) {
e.add('c:seeds', seeds)
e.add('mysticalagriculture:seeds',seeds)
}
});
ServerEvents.tags('block', allthemods => {
for (let seeds of seedID) {
e.add('cucumber:mineable/sickle', seeds.replace('seeds', 'crop'))
e.add('minecraft:crops', seeds.replace('seeds', 'crop'))
e.add('minecraft:bee_growables', seeds.replace('seeds', 'crop'))
e.add('mysticalagriculture:crops', seeds.replace('seeds', 'crop'))
e.add('mynethersdelight:above_propagate_plant', seeds.replace('seeds', 'crop'))
e.add('ae2:growth_acceleratable', seeds.replace('seeds', 'crop'))
e.add('minecraft:sword_efficient', seeds.replace('seeds', 'crop'))
e.add('mynethersdelight:resurgent_soil_plant', seeds.replace('seeds', 'crop'))
}
})
Or like a similar message for a different line of tag from the original message
you named the event variable in the second block allthemods, when the code tries to invoke things on e, which does not exist inside of that event block.
change one of the two, probably
you could probably also use RegEx for this if you're just wanting to apply it to every seed in MA
but if you're only wanting specific ones, this works fine enough
Alr thank you I copied this code and edited it from atm10 since I don’t know how to code