cora
4ac41a793e
fix two crashes in pathfinding
2022-05-21 12:36:57 +02:00
cora
98231f15ae
change function name go_wplist -> gopath
2022-05-21 12:36:57 +02:00
cora
e3bb7fe4be
codestyle: replace inline functions
2022-05-21 12:36:57 +02:00
cora
f8fc111b4a
pathfind to jobsites
2022-05-21 12:36:57 +02:00
cora
dbc5564d02
move movement code to mcl_mobs
2022-05-21 12:36:57 +02:00
cora
ce7a882c86
Show trade tier in formspec
2022-05-21 12:36:57 +02:00
cora
12bc8f1a3b
initial pathfinding experiments
...
to test rightclick a villager and it will try to path find to
0,9,0 (i'm using flat mapgen for testing for now).
2022-05-21 12:36:57 +02:00
cora
0598aa35c0
add simple jobsite logic
2022-05-21 12:36:57 +02:00
PrairieWind
d93704fa0e
Merge branch 'master' into furnaces
2022-05-17 18:33:20 +00:00
PrairieAstronomer
fe36d579eb
Add Blast Furnace and Smoker to Villager Workstations
2022-05-17 10:37:55 -06:00
cora
5282a63bcb
add options for nametagged mobs and range
2022-05-15 20:04:09 +00:00
cora
e5de4bba65
keep nametagged mobs, add "all" argument
2022-05-15 20:04:09 +00:00
cora
628686ce79
Add a command to safely remove all mob objects
2022-05-15 20:04:09 +00:00
PrairieAstronomer
5abfa555eb
Added new workstations to villager jobsite definitions
2022-05-14 15:52:37 -06:00
cora
31b8ea26a2
add jobsites to professions table
2022-05-14 00:32:15 +02:00
cora
fd6f2be485
update cleric trades
2022-05-14 00:32:15 +02:00
cora
07e0a90051
update tool smith trades
2022-05-14 00:32:15 +02:00
cora
f073d4d420
update weapon smith trades
2022-05-14 00:32:15 +02:00
cora
89aaf6b709
update butcher trades
2022-05-14 00:32:15 +02:00
cora
f09b578034
update leatherworker trades
2022-05-14 00:32:15 +02:00
cora
0ce1a92282
update armorer trades
2022-05-14 00:32:15 +02:00
cora
135ee97b21
update cartographer trades
2022-05-14 00:32:15 +02:00
cora
51cf92a909
update librarian trades
2022-05-14 00:32:15 +02:00
cora
2d47ad3e5f
update fletcher trades
2022-05-14 00:32:15 +02:00
cora
c28d700caf
update fisherman trades
2022-05-14 00:32:15 +02:00
cora
ba861d7b74
update farmer trades
2022-05-14 00:32:15 +02:00
cora
9b8b7ce6b4
refactor go home logic
2022-05-14 00:32:15 +02:00
cora
354d17a14c
enable simple villager breeding
2022-05-14 00:30:44 +02:00
Mikita Wiśniewski
7f3ba7d4a2
Enable placing carpets on llamas and add textures for it
2022-05-13 22:00:09 +00:00
kabou
baf8e0b79c
Update item entity for lodestone compass.
...
* Added another special case to the item entity registration for
lodestone compasses, without this a dropped lodestone compass would
turn into a regular compass on being dropped.
* Update the compass and lodestone compass frame number to be the
stereotype frame.
2022-05-12 21:08:52 +02:00
cora
12a943e222
Make villagers homeless when bed is gone on return
2022-05-09 10:29:58 +00:00
cora
3774044f86
Walk back to bed instead of teleporting
2022-05-09 10:29:57 +00:00
cora
46dbf8c0ab
Spawn villagers on villagegen, stay in village
...
This spawns a villager per bed on village gen and saves the bed
position in the entity. If it moves too far from the village
it gets teleported (for now) back.
2022-05-09 10:29:57 +00:00
kabou
4e3a2a7b4c
Fix list of spawnable biomes for rabbits.
...
* Rabbits spawn in Desert biome.
* Rabbits do no spawn in Forest and Swamp biomes.
2022-05-08 19:59:04 +00:00
cora
e1ed990f58
sp. farm animals on grass, villagers near beds
2022-05-08 18:50:37 +00:00
cora
e4c5f81524
make husks spawn only in deserts, zombies not
2022-05-08 18:50:37 +00:00
kay27
53042b6f48
Adopt mob spawning from mcl5
2022-05-08 18:50:37 +00:00
Elias Fleckenstein
34e5bb0334
Add Wither Spawning
2022-05-06 19:40:39 +00:00
Elias Fleckenstein
c05a2d3a9d
Add wither spawning schems
2022-05-06 19:40:39 +00:00
Nils Dagsson Moskopp
5ba36c08b6
Drop carved pumpkin when shearing snow golem
2022-04-22 18:07:37 +00:00
Nils Dagsson Moskopp
a2dd8c935d
Make villagers accept uncarved pumpkin in trades
...
As map generation and growing mechanics have been changed to generate
uncarved pumpkins instead of carved, requiring players to shear every
pumpkin before trading it with villagers seems like useless busywork.
2022-04-22 18:07:37 +00:00
cora
b6ab815adc
Fix endermen dropping node AND taking it
2022-04-22 01:02:20 +02:00
NO411
e790bf90f4
Make shields work with all mobs
2022-04-09 16:21:22 +02:00
kabou
1b99b73894
Fix wrong player name accessor.
...
* Duh..
2022-03-30 01:31:38 +02:00
kabou
14da059ce7
Add extra check and warning on missing player data.
...
* For some unexplained reason, `mcl_burning.storage[player]` can
sometimes be `nil`, causing a crash in `on_leaveplayer()`. This
commit adds a check for that. If a `nil` is encountered, a sane
value is substituted and a warning is set to the log.
2022-03-29 12:06:00 +02:00
NO11
5974b6f609
Merge branch 'master' into shields2
2022-03-28 12:27:57 +00:00
cora
1c9f0c3238
don't spawn mobs on non opaque nodes or leaves
...
with the preliminary jordanspaning mobs would spawn on trees
and water regularly.
2022-03-22 22:02:15 +01:00
cora
50e99f470e
fix certain mobs not spawning in certain biomes
2022-03-22 15:16:48 +01:00
kabou
46ee5aaa59
Fix undefined luaentity crash.
...
* Add nil check to get_luaentity() access.
* Cache get_luaentity() call in local var.
2022-03-21 01:39:02 +00:00
kabou
9eba0e4860
Remove unused code.
...
* Remove unused code that was commented out. The code tried to find
fire luaentities in the same spot as the newly created fire luaentity.
It may have been intended to optimize getting set on fire multiple
times, but it makes no sense as it does not discriminate between fire
luaentities attached to the object set on fire and those attached to
other objects. The function that this code was in also has a better
way to prevent adding multiple fire luaentities in the first place.
2022-03-18 11:39:11 +01:00