[SOLVED] How to disable mob griefing


#1

Hi, I searched all the config files of sponge, worldedit etc but could not find any possibility of disabling mob griefing - more specifically, stopping creepers from blowing craters in my lawn. Ideas, anyone?


Simple anti explosion plugin
#2

Pretty sure this is a vanilla command

/gamerule mobgriefing false


#3

thats what I tried - but didn't word


#4

This is in fact a vanilla command.
The exact command character for character, caps sensitive, that you want is:

gamerule mobGriefing false

The server gamerule system is a bit interesting in that it has the vanilla gamerules, but if you feed it another one, lets say:

gamerule thisisonlyatest true

Well, you now have a gamerule entry for that. And its case sensitive. So if you do feed it:

gamerule mobgriefing false

You now have two gamerules:

gamerule mobGriefing

Which is the real one that actually disables mob grief, and

gamerule mobgriefing

Which doesn't do anything at all.


#5

Thanks a lot - it works.

But how am I to know which words in a command are case sensitive? Alternatively, is there a list of vanilla commands I can refer to?


#6

The TAB key is your friend, do /gamerule mob, then press TAB an BAM! it'll be correct.
Auto-complete works for everything so you can also type this for example:

/give MoeBoy76 1 pixelmon:poke

pressing TAB to complete my name, pixelmon and to see what Pixelmon items/blocks start with 'poke'


#7

Thanks for that, much appreciated


#8

and for future reference the rule is usually formatted like a variable or method. First word lower case and all future words upercase. So if there was a rule called Tooth Pick Is A Hoe then it would be toothPickIsAHoe. smile


#9

OK - Thanks, never stop learning ...


#10

Hi, can you plse mark this issue as SOLVED? - Thanks


#11

you can do that


#12

If I knew how to I wouldn't have asked!


#13

You can edit your own topic title to prefix "[SOLVED]".


#14

I saw a possibility to add a "solved" by using a button below the most helpful answer too.


#15

Thank you all. Now I am all the wiser .... relaxed


#16

It's only active in certain categories.


#17

Thanks babe now i can stop those blasted creepers from blowing up me nans grave