So I'm trying to setup a script to sort of make the mod "create" and the mod "secret rooms" compatible, by making all the secret rooms blocks unmoveable by adding the tag "create:non_moveable" to them. However, I have never used this mod before and I have barely any experience with java. After reading through some of the wiki posts I made a few tests trying to copy and change up the server script example script, switching out the names with the ones I assume I needed but I kept getting errors.
I managed NOT to get any errors with my current script. HOWEVER the block is still moveable, so the tag did not get added to it.
( knowing me I'm probably just stupid or something or missing something completely obvious )
My current script is:
ServerEvents.recipes(event => {
// Change recipes here
})
ServerEvents.tags('item', event => {
// Get the #secretroomsmod:ghost_block tag collection and add create:non_moveable to it
event.add('secretroomsmod:ghost_block'),('create:non_movable')
})