1
0
Commit Graph

151 Commits

Author SHA1 Message Date
madmaxoft
a5c2d639c6 Added cWorld:ForEachBlockEntityInChunk() and cWorld:DoWithBlockEntityAt() functions.
Also exported them to the Lua API.
2013-11-20 21:53:29 +01:00
Tiger Wang
f713780db3 Bundled fixes [SEE DESC]
* Fixed compiler warning in Monster.cpp
* Future proofed particle effects
* Improved pickups, made less jittery
2013-11-10 22:20:25 +00:00
Tiger Wang
71abbb2f56 Bundled fixes [SEE DESC]
* Fixed pickups spawning in an incorrect position from a JukeBox
* Pickups make a popping sound in Prtcl1.7
* Arrows make a *what sort of sound does an arrow make anyway‽* when
hitting a block, and a popping sound when fired
* Mobs again have metadata
* Fixed Prtcl1.7 not using valid JSON to kick a client
* Minecarts and arrows again have metadata
2013-11-10 20:48:12 +00:00
Tiger Wang
e832736e0b Autogeneration of settings.ini and webadmin.ini
Fixes issue #75
2013-11-04 21:51:24 +00:00
madmaxoft
f490d3d1e7 Fixed a compiler warning.
Also updated code to match our style.
2013-10-30 23:33:42 +01:00
Samuel Barney
e94307c292 Changes based on madmaxoft's nitpicker notes. 2013-10-29 12:43:41 -06:00
Samuel Barney
e1a06153b2 Update to allow the light map to remain the same, but allow alteration of sky light values based on time. 2013-10-29 10:44:51 -06:00
madmaxoft
9e9198e090 cIniFile doesn't store filename internally anymore. 2013-10-25 11:15:44 +02:00
madmaxoft
5331555708 Renamed cMonster::GetSpawnRate() to GetSpawnDelay(). 2013-10-24 16:45:13 +02:00
Alexander Harkness
54f5f71c9a Merge pull request #286 from tigerw/pickupdelay
Pickups now have collection delay when vomited
2013-10-23 23:36:25 -07:00
Tiger Wang
4d2c810c64 Pickups now have collection delay when vomited
Implements FS#394.
2013-10-24 00:30:20 +01:00
madmaxoft
0152a6ffb4 Temporary fix for world not locking chunkmap in TickMobs.
Reported as #283; this is a hotfix only.
2013-10-22 18:30:26 +02:00
madmaxoft
b6741865f2 Fixed memory leak in cMobFamilyCollecter. 2013-10-20 14:16:21 +02:00
madmaxoft
6075f7cecd Fixed memory leaks in cMobCensus, moved GetSpawnRate() to cMonster. 2013-10-20 14:00:45 +02:00
madmaxoft
d16d0a7ab7 Fixed memory leaks in cMobSpawner. 2013-10-20 13:33:23 +02:00
madmaxoft
848d061de1 Moved all MobTypesManager functions to cMonster.
This removes some of the memory leaks and is more logical in structure. Also the functions are exported to Lua.
2013-10-20 13:25:56 +02:00
madmaxoft
34928378b8 Fixed loading allowed mobs in world. 2013-10-20 10:23:30 +02:00
madmaxoft
ca538d5323 Adapted code style. 2013-10-18 20:02:53 +02:00
Samuel Barney
02baff6629 Removed reading default values from settings.ini for worlds. 2013-10-14 15:32:40 -06:00
Samuel Barney
210cd4eb50 General fixes to get the new Monster spawning code working.
Also wrote in some code to use the default settings for monsters located in settings.ini
2013-10-14 11:12:12 -06:00
Samuel Barney
318d552248 Merge branch 'MobSpawning' of https://github.com/mgueydan/MCServer into MobSpawning
Conflicts:
	source/Mobs/Bat.h
	source/Mobs/Monster.h
	source/World.cpp
2013-10-14 10:03:47 -06:00
Samuel Barney
5df5176f8d Merge branch 'master' of https://github.com/mc-server/MCServer 2013-10-14 09:42:43 -06:00
Samuel Barney
369b4abff8 Mobs no longer spawn up in the air. 2013-10-14 08:12:23 -06:00
madmaxoft
e62cac07c0 Merge branch 'metadata' of git://github.com/tigerw/MCServer into tigerw-metadata. 2013-10-13 18:26:45 +02:00
Tiger Wang
d8d2f35e9d Eight round of fixes
* Changed IsA() to *long if statement*
- Removed deprecated values in Entity.h - to blazes with the plugins!
* Renamed villager type enumerations to be LESS SHOUTY and more vt-y
+ Use vtMax for World.cpp testificate spawning
2013-10-13 12:47:55 +01:00
Mattes D
3f09294e93 Merge pull request #224 from tonibm19/patch-7
Added Horses, Blazes and EnderDragons spawning.
2013-10-12 13:33:31 -07:00
madmaxoft
0352e45898 Fixed and exported cWorld:QueueTask().
This implements #220.
2013-10-12 22:24:59 +02:00
tonibm19
bfbc381e1d Added more ghast spawning probability 2013-10-12 20:26:57 +02:00
tonibm19
c28d3d7771 Added extra line 2013-10-12 20:21:28 +02:00
tonibm19
d86facc2bf Mob spawning changes
Added EnderDragon, Blaze and Horse spawning.
2013-10-12 20:18:35 +02:00
Tiger Wang
e2aaf202ab Fifth round of fixes
* Enumerated Villager spawning
2013-10-11 20:57:22 +01:00
Tiger Wang
fe6fa23a97 Second round of fixes
* Implemented suggestions
2013-10-09 21:02:59 +01:00
madmaxoft
55999ee118 Moved cMakeDir::MakeDir to cFile::CreateFolder.
And exported to Lua.
2013-10-09 09:57:48 +02:00
Tiger Wang
5db6213f34 Initial Metadata Commit [SEE DESC]
+ Pigs, Minecarts, Sheep, Skeletons, Slimes, Villagers, Wolves, and
Horses have metadata
+ Base code on taming wolves, shearing sheep, and taming horses
+ Sheep and horses have different colours when spawned
2013-10-08 19:20:49 +01:00
mgueydan
ac4cb65b8d Merge branch 'master' into MobSpawning 2013-09-22 14:29:33 +02:00
madmaxoft
91325d706d Linux compilation fix #3. 2013-09-21 11:18:37 +02:00
Tiger Wang
198ac1892c Fixed pickups 2013-09-18 22:20:08 +01:00
Tiger Wang
3e698d7b72 Added moar mobs!
+ Added dragons
+ Added golems
+ Added giants
+ Added horses
+ Added some missing items
+ Added missing spawn egg metas
2013-09-18 22:17:43 +01:00
madmaxoft
40d295da26 cWorld:QueueTickBlock takes the delay in ticks. 2013-09-16 09:25:23 +02:00
madmaxoft
a6b3c560a2 Fixed doxycomments of cWorld plant-growing code 2013-09-15 22:11:02 +02:00
madmaxoft
5cde7d8a29 Merge branch 'pickups' of git://github.com/tigerw/MCServer into tigerw-pickups
Conflicts:
	source/BlockID.cpp
	source/Entities/Entity.cpp
2013-09-15 20:49:08 +02:00
madmaxoft
6dbe3296e0 Fixed codepage conversion 2013-09-10 22:03:11 +02:00
Tiger Wang
30ac3f5838 Added a few changes [SEE DESC]
* Revised pickup comments
* SlotArea pickup tossing now reflects Player.cpp
* Removed unneeded ItemShears comment (was working already)
* Sand and gravel pickups spawn with correct speed
2013-09-09 19:28:50 +01:00
mgueydan
d67e8dcca5 Adding mobtype filter inside world.ini 2013-09-08 03:30:09 +02:00
mgueydan
7a5e3592ff Adding glue to call everything done in last commits - now the mobs are spawning 2013-09-08 02:47:02 +02:00
mgueydan
04151677d5 Disabeling current mob spawning and tick 2013-09-08 01:43:55 +02:00
mgueydan
d2eb58f277 Adding mob census (sorry this is a big commit as work was done before git integration i couldn't split it more) 2013-09-07 22:19:56 +02:00
mgueydan
2361a5dc41 relockating mobs includes (they probably will end somewhere else in order not to recompile world each time you update a mob) 2013-09-07 20:07:56 +02:00
madmaxoft
3b1c83acf8 Renamed cWorld::DoExplosiontAt() to cWorld::DoExplosionAt() 2013-09-07 18:12:22 +02:00
Tiger Wang
ad89a0d460 Pickups spawn with correct speed and position
Added a comment-space as well.
2013-09-04 18:26:00 +01:00