Skip to content

Commit

Permalink
Fix for Forge/MC change: mob_spawners now affected by spawn controls.
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveyBiggers committed Jun 9, 2017
1 parent 6f9bf58 commit 560b002
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Malmo/samples/Python_examples/hit_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ def getMissionXML(summary):
<StartTime>1000</StartTime>
<AllowPassageOfTime>true</AllowPassageOfTime>
</Time>
<AllowSpawning>true</AllowSpawning>
<AllowedMobs>Pig Sheep</AllowedMobs>
</ServerInitialConditions>
<ServerHandlers>
<FlatWorldGenerator generatorString="3;7,202*1,5*3,2;3;,biome_1" />
Expand Down
2 changes: 2 additions & 0 deletions Malmo/samples/Python_examples/mob_fun.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ def getMissionXML(summary):
<StartTime>13000</StartTime>
<AllowPassageOfTime>false</AllowPassageOfTime>
</Time>
<AllowSpawning>true</AllowSpawning>
<AllowedMobs>''' + MOB_TYPE + '''</AllowedMobs>
</ServerInitialConditions>
<ServerHandlers>
<FlatWorldGenerator generatorString="3;7,220*1,5*3,2;3;,biome_1" />
Expand Down
2 changes: 1 addition & 1 deletion Schemas/Mission.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@
<xs:element name="AllowedMobs" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>
If AllowSpawning is set to true, use this to specify a list of the allowed mobs. Only those mobs which are on the list will be allowed to spawn. If no list is specified, normal spawning behaviour will take place. Note that these settings do not effect mob_spawner blocks.
If AllowSpawning is set to true, use this to specify a list of the allowed mobs. Only those mobs which are on the list will be allowed to spawn. If no list is specified, normal spawning behaviour will take place. Note that these settings *do* effect mob_spawner blocks.
</xs:documentation>
</xs:annotation>
<xs:simpleType>
Expand Down
5 changes: 5 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
0.23.0
-------------------
New: UPGRADED TO LATEST MC/FORGE
Breaking: AllowSpawning/AllowedMobs now affects mob_spawners

0.22.0
-------------------
New: ObservationFromRay now returns distance.
Expand Down

0 comments on commit 560b002

Please sign in to comment.