Questions about the capabilities of command blocks, and a few ideas if it works ...

  • Please make sure you are posting in the correct place. Server ads go here and modpack bugs go here
  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

Andrew Schott

Active Member
Jul 29, 2019
4
0
26
www.schotty.com
I have been pondering how to use most efficiently my hardware resources for doing a fun creative as well as our SMP one. As the Direwolf pack does need a wee bit of RAM, I was thinking over the last few days if there was a way to make one server do both. As I am not completely up to snuff on command blocks, this may or may not work, but I would love input nonetheless.

What I was thinking was to restrict out all Mystcraft goodies, one question would be in the end is this needed?
Create a few books for people by spawning them in, all these books minus the one for creative will be also SMP.
For the book that is Creative, set the book (and advertise it as such) to disarm upon entering. The corresponding book to get back would be the same.
On each side set the gamemode parameter via command blocks.

I figure if this works using the @a command, I can setup an area that is segregated off to fart around with being all about creative, while still keeping an area for SMP. Plus a nice area to learn and educate how various mods work for those of us with jobs and families to quickly get up to snuff.

The one issue I have would be protecting the blocks from getting broken. I cannot see if that ability is limited to OPs or not. Another question I suppose.

Any tips, again, would be most appreciated, as well as any tales of how this panned out for others.

Thanks much,
Andrew
 
As far as I can tell the command blocks work globally. I tried setting one mystcraft age peaceful and one normal, it set whatever was the last one triggered across all worlds.
 
As far as I can tell the command blocks work globally. I tried setting one mystcraft age peaceful and one normal, it set whatever was the last one triggered across all worlds.
Well, difficulty is server-wide and gamemode is player-specific. a server I'm on uses a similar setup (I'm not sure of the specifics but I imagine it to be similar to what is proposed here) so I believe it should work.
 
Thanks for the tips. I am currently in the works of seeing if this is going to work at all. I am starting out with a command block pair for gamemode right now, and running into issues. Before I state that there are issues, I want to spend some more time working at it to see if its something that I did wrong.

In essence the jist of what I have going here is:

Overworld
Command block that forces gamemode 0 to nearby players
Linking books that goto various relams. The spot with the command block is where the ages each have a book that links back to.

Custom age
Command block that forces gamemode 1 to nearby players


Sofar its a bit iffy if things are changed correctly, and I want to ensure that options are exhausted prior.
In the end, the age for creative pplay should have no monster spawns too. But that can be left alone if its not doable.

I will report back in a few days with what I come up with.

Thanks to those whom offered help, it's appreciated greatly.
 
the only thing I would be concerned about is, personal linking books (especially following books) could lead to someone leaving the creative world without losing creativemode.
 
I am fairly sure that someone in creative could spawn themselves a creative notebook and a writing desk, write a star fissure age, and use it to get back in the overworld and keep their powers. You could, however, have a command block on a short timer, that would target all people in the overworld in creative mode, strip their inventory, and set them back to survival.

Something like:

Code:
/clear @a[r=1000000,m=1]
/gamemode 0 @a[r=1000000,m=1]

The radius check is to only pick players in the same dimension as the CB. I have no idea how CBs work with more dimensions, if they will only pick people in the same dimension by default it's not needed.