HowToAddGrowers: Difference between revisions

Jump to navigation Jump to search
Content deleted Content added
imported>Teiv
No edit summary
imported>Teiv
Line 39: Line 39:
This picture you have to put in tiled/tileset/logic/item in your source dirctory. After put it in there, you are able to put the image on your map, where the apple should spawn. But at this moment stendhal would not compile. One more step to let it spawn.
This picture you have to put in tiled/tileset/logic/item in your source dirctory. After put it in there, you are able to put the image on your map, where the apple should spawn. But at this moment stendhal would not compile. One more step to let it spawn.


= Edit PassiveEntityRespawnPointFactory.java =
= Add it to game =
You have to open src/games/stendhal/server/entity/mapstuff/spawner/PassiveEntityRespawnPointFactory.java to add the apple finally to game.<br>
Search for a line like this:
<pre>
clazz.contains("vegetable")
</pre>
After the switch you have to add following code:
<pre>
case 0:
passiveEntityrespawnPoint = new PassiveEntityRespawnPoint("apple",500);
break;
</pre>


= Comments =
= Comments =