#mobstopper

1 messages · Page 1 of 1 (latest)

true birch
#

Did you make this code yourself, or did you use AI, because some of the syntax there isn't correct (and one I'm sure doesn't exist)

elder marsh
#

Yeah

blissful mantle
#

Obvious AI, banned

tidal cosmos
#

i have not used skript in way to long

#

so i used ai here

true birch
#

Yeah, so AI is not allowed here ( #welcome-to-skunity rule 8 )

tidal cosmos
#

Ok well mb but I forgot how to skript so what can I do

tidal cosmos
#

can anyone help?

elder marsh
#

Well no.

  • You haven’t explained your issue (“doesnt work” doesn’t provide insight)
  • you havent written a meaningful attempt of code (or even brainstormed what steps/methods are needed/checked the docs) yourself
tidal cosmos
#

u don't know what i did at all its not understaing the 2nd to last line

elder marsh
#

Answered these errors in your other post

elder marsh
# tidal cosmos u don't know what i did at all its not understaing the 2nd to last line

I dont know what you did because you’ve shown no evidence of it, and admitted to using AI to generate the code you did send.

A proper help request would look more like this:

Hi, im trying to stop certain types of mobs from spawning. I’ve added these restricted types to a list, and i’m trying to go through it in an on spawn: event, but its not entirely working. Can someone help me figure out how to check a specific mob against my list? Thanks. Here’s my code:

tidal cosmos
#

ok here is a rerwitten script and i still can't get it working

options:
  allowedMobs:
    pig, 
    creeper, 
    magma cube

on spawn of entity:
    if entity is armor stand:
        stop
    if name of entity is set:
        stop

    if type of entity is in {@allowedMobs}:
        stop
    cancel event
#

plz help

elder marsh
#

you cant put a list on multiple lines line that

#

you should also use the contains condition, as in is python

tidal cosmos
#

like:

on spawn of entity:
  if {@allowedMobs} contains mob name:
    ...
#

?

elder marsh
#

contains type of event-entity probably

tidal cosmos
#

idk anything abt skript can u help write a working one with me? same for the other

#

@elder marsh ?

whole stumpBOT
tidal cosmos
#

ig thats a no