Zones - Idea

Post Reply
User avatar
Nubelite
Member
Posts: 161
Joined: Mon Jul 16, 2012 23:10

Zones - Idea

by Nubelite » Post

can a mod be made to set up zones where people can damage others and where they can not?

Kinda like the wilderness from runecraft. enter the zone anyone can be hurt. outside the zone you cant hurt anyone even if you tried.

If so can it also be applied to where mobs can populate or not? have a zombie area or a zombie free area.
------ This one i think will be more modifying the mod that already exists and add setting for a pop area for them.
Last edited by Nubelite on Sun Nov 04, 2012 00:15, edited 1 time in total.

User avatar
cornernote
Member
Posts: 844
Joined: Wed Jul 11, 2012 15:02

by cornernote » Post

How about, use the players onstep to check if they are in a safe zone. If they are, then reset their health to full each step.

You have to write code to make mobs spawn, so just ensure that when spawning one it's outside the safe zone, if not then just don't spawn it.

Post Reply

Who is online

Users browsing this forum: ElCeejo, Google [Bot] and 4 guests