The EOL of the file is in windows CR LF format. You should find a text editor that can convert the EOL of the file from CR LF to LF. This should fix the issue.
Events are for interfacing with pre-existing systems within Vanilla. As you are the creator, you can implement the required logic on the block itself.
Now let's discuss the logic.
This is irrelevant since the data is stored on the nbt instance of the tile entity and not the item itself. You should also probably read up on capabilities. I am attaching a community written version of the docs as the forge docs are still outdated on the manner. Finally, all you are trying to execute should be done on the logical server. None of this seems to require the logical client in the slightest. This can seemingly be done using Block#onBlockActivated and grabbing the associated tile entity to do the logic.
@Purplicious_Cow
Hmmm I've also been looking at this:
Might be a problem with this line:
field_242740_q refers to a set of DimensionSettings generated by func_242745_a. That function takes a RegistryKey as a parameter, and in this case, it is passed field_242734_c which is the key for the overworld dimension. That might be the issue? Don't quote me on this! I have the same issue as you, but for all dimensions!
Yes! This worked! Thank you so much. I can't express how grateful I am, I've spent nearly three days trying to figure out this issue and it finally works. Thank you.