Jump to content

Why is this skript working in other worlds?


Recommended Posts

on death of zombie:
    if attacker is in world "pve":
    send "&rYou have killed a zombie!" to attacker
    cancel drops
    give attacker 1 rotten flesh named "&6&lZombie's &7Steak" with lore "&6Go to &aTom &6to" and "&6redeem your item!"

 

 

Why is this skript working in other worlds?

Please help me 

CrystlGens.minehut.gg - Owner

Link to comment
Share on other sites

7 hours ago, LocalServerHost said:

on death of zombie:
    if attacker is in world "pve":
    send "&rYou have killed a zombie!" to attacker
    cancel drops
    give attacker 1 rotten flesh named "&6&lZombie's &7Steak" with lore "&6Go to &aTom &6to" and "&6redeem your item!"

 

 

Why is this skript working in other worlds?

Please help me 


Its due to the line:
" if attacker is in world "pve":" !
Have a great day!

Invislol 

• 4-5 years of skript experience
• 6 Months of active java experience
• 2 Years of javascript and python experience


unknown.png
[PATRON] RANK

Helpful Stuff:
Appeals and Reports  - Here | Minehut  Global And forums rules - Here

Link to comment
Share on other sites

 

on death of zombie:
	if attacker is in world "pve":
		send "&rYou have killed a zombie!" to attacker
		cancel drops
		give attacker 1 rotten flesh named "&6&lZombie's &7Steak" with lore "&6Go to &aTom &6to" and "&6redeem your item!"

Here you go, a fixed version

Also, if you still aren't familiar on how indentation works you can learn in from here. I hope I helped you.

Edited by NotKaizo31
  • Like 2

 

Owner of play.hiveminez.net

 

⊱------------------------------⊰

Joined Minehut on 1/28/2021 (Same day I got Minecraft)

[VIP] - 3/14/2021

[LEGEND] - 5/27/2021

⊱------------------------------⊰

Discord - NotKaizo#0001

In-game name - iKaizo_

If you need any help, feel free to contact me.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...