Discussion in 'Plugin Development' started by padili, Jun 21, 2014.
Any way to get it? I want to access it's metadata to spawn a custom mob from config file.
There's no good way to get it, but I guess you could loop through the nearby blocks and look for a monster spawner, though there might be more than 1 around so the possibility of it returning wrong spawner is high.
Really? And how about setting the metaData of any mob spawned by the spawner?
1) Download cbukkit source (with all related libs)
2) Download notepad++
3) Use spawner spawn creature and similar keywords for seaching over cbukkit source files
3) Find source with name MobSpa*****
4) Navigate to section that actually place mob to world
5) now you have answer
I don't want to do it using craftbukkit or nms just using bukkit!
then no hope for you. padili
Can't be impossible?? A very important thing missing in bukkit api??
nothing missing, you just don't want to learn, do what i stated and we will continue padili
How can I search the keywords in all of the files, using the grep command?? My computer doesn't run notepad++
Yeah and what should I do with with this? https://github.com/Bukkit/CraftBukk...et/minecraft/server/SpawnerCreature.java#L240, normally you write answers to a thread instead of making a quiz!
EDIT by Moderator: merged posts, please use the edit button instead of double posting.
To be fair, it's something that really should be in the API.
Yeah he just needs attention, however, is there any other way to spawn special mobs from config in certain areas (instead of doing it using mob spawners) ?
I never spoonfeed, you must provide valid proof of own work.
Your current proof of work is not valid, read carefully my posts, especially ones you simply ignored.
Just opening first class you found wont work.
Sadly TS (just like majority of this forum) does not want to learn, but i still willing to teach anyone who want.
Including teaching about how to fork and post pull requirests. (actually this is waste of time)
How to mod core classes. (and get your threads locked)
How to reinstrument live classes with unsafe. (actually there is no way to teach this, especially if subject dont know how to install programs)
RawCode perhaps you should take a look in the javadocs yourself before giving them advanced advice.
padili Assist 's idea should work fine, afaik dungeons cannot generate inside each other, the shortest radius should give you the correct spawner even if there are two close to each other.
One thing I like to add is to check for the spawn reason, to make sure it was spawned by a spawner
You also shoud read and follow my post.
Your answer have nothing with how it actually implemented by cbukkit.
RawCode A recommendation since the OP cant use Notepad++ for some reason:
GitHub has a very powerful search function as well, I found (what I believe) what should/could be modified to support this using the search function and the CB GitHub repo.
RawCode because he asked for an implementation that relies solely on Bukkit. No need to go through any cb code for this
follow my instructions and then we will talk.
May be the bad way, but however thanks for help!
same again, dont want to learn and seek for spoonfeeding, this is sad...
At which point was he requesting to be spoonfed? And why should you try to attempt something more advanced if there is an easier option?
RawCode Get off your high horse and then I am willing to talk. I was merely replying to the OPs requests.
[addition] I started a conversation if you wish to continue this in pm, so please don't continue here
Separate names with a comma.