Hello There, Guest!
Poll: Should you implement this
This poll is closed.
Yes
47.83%
11 47.83%
No
0%
0 0%
Leech is a troll
52.17%
12 52.17%
Total 23 vote(s) 100%
* You voted for this item. [Show Results]

Suggestion: Spy chickens
01-17-2012, 22:05, (This post was last modified: 01-17-2012, 22:16 by pavja2.)
Post: #14
RE: Suggestion: Spy chickens
(01-17-2012, 21:05)yottabyte Wrote: The Bukkit API makes handling living entities much simpler though afaik. Just use like setTarget(Player) and all that good stuff.

Oh, that's much simpler, I've never actually written a plugin before so I have no idea if I will be able to do anything with it but it is so much more straightforward than modifying whatever notch has written. Although I really know nothing about how to make it work intuitively (link a toggle in the targeting of the wolf to the opening of a nearby door) but I suppose that's what thinking is for.


I think in a pseudo coding sense:
Code:
10 Get Nearby Entities within 10 blocks
15     If one or more of those Entities is a player then
20           Check if player is wolf owner for each player
25               If true for all players
30                   goto 10
40               Else SetTarget(Nearest non-owner player)
50    Else goto 10

To trigger the code could involve feeding a wolf something special (iron or apples etc) to start the "Guard mode" function for a tamed wolf.

No idea if that makes any sense though....
Reply


Messages In This Thread
Suggestion: Spy chickens - by Leech - 01-16-2012, 22:30
RE: Spy chickens - by Ian25 - 01-16-2012, 22:32
RE: Sggestion: Spy chickens - by pavja2 - 01-16-2012, 22:41
RE: Sggestion: Spy chickens - by Leech - 01-16-2012, 22:45
RE: Sggestion: Spy chickens - by Ian25 - 01-16-2012, 22:48
RE: Suggestion: Spy chickens - by The Savages - 01-16-2012, 23:02
RE: Suggestion: Spy chickens - by partyars - 01-16-2012, 23:43
RE: Suggestion: Spy chickens - by Ian25 - 01-17-2012, 00:14
RE: Suggestion: Spy chickens - by pavja2 - 01-17-2012, 02:53
RE: Suggestion: Spy chickens - by Leech - 01-17-2012, 18:49
RE: Suggestion: Spy chickens - by pavja2 - 01-17-2012, 20:24
RE: Suggestion: Spy chickens - by yottabyte - 01-17-2012, 21:05
RE: Suggestion: Spy chickens - by pavja2 - 01-17-2012, 22:05
RE: Suggestion: Spy chickens - by Sir Prize - 01-17-2012, 22:38
RE: Suggestion: Spy chickens - by pavja2 - 01-17-2012, 22:43
RE: Suggestion: Spy chickens - by yottabyte - 01-17-2012, 22:51
RE: Suggestion: Spy chickens - by partyars - 01-17-2012, 23:23
RE: Suggestion: Spy chickens - by Leech - 01-18-2012, 00:07
RE: Suggestion: Spy chickens - by Leech - 01-19-2012, 22:57

Forum Jump:


Users browsing this thread: 1 Guest(s)