Add the shulker mod

master
Solebull 2019-01-02 07:02:01 +01:00
parent fd061ac282
commit 5134f19558
3 changed files with 12 additions and 2 deletions

View File

@ -197,7 +197,8 @@ It's really fast. May be used on a website, to show the actual map.
- maybe see handle_schematics/build_chest
- [X] Even with protection, we can take what's in villagers' chests
Try to add them as protected chest
- [ ] Test singleplayer in death mesage
to avoid "You a fait quelque chose de fatal"
- [ ] Faction chest must be for faction only (no parcel needed)
- [ ] Try to find a protector mod, test it
- [ ] Make the protector/faction_protector available to all members of
@ -222,7 +223,8 @@ It's really fast. May be used on a website, to show the actual map.
[mg_villages] ERROR: Did not find a suitable replacement for cottages:barrel_lying (suggested but inexistant: cottages:barrel_lying). Building: chateau_without_garden.
[mg_villages] ERROR: Did not find a suitable replacement for cottages:barrel (suggested but inexistant: cottages:barrel). Building: chateau_without_garden.
**** [feature_XpMobs] kill_xp/ Gain XPs by killing mobs
CLOCK: [2019-01-02 mer. 03:47]
CLOCK: [2019-01-02 mer. 04:36]--[2019-01-02 mer. 05:08] => 0:32
CLOCK: [2019-01-02 mer. 03:47]--[2019-01-02 mer. 04:11] => 0:24
CLOCK: [2019-01-02 mer. 03:13]--[2019-01-02 mer. 03:23] => 0:10
CLOCK: [2019-01-02 mer. 01:23]--[2019-01-02 mer. 02:33] => 1:10
*We're not gaining XP while killing monsters : for example slimes*
@ -239,6 +241,7 @@ It's really fast. May be used on a website, to show the actual map.
Maybe on do_punch to have the hiter name ?
then in mobs_animal/chicken
- [X] Try a new survival local test
- [ ] *How to add XP when punching a mob*
- Must add xpro as dependency for modified mods
- Add a on_punch handler

View File

@ -72,6 +72,8 @@ dofile(path .. "/enderman.lua")
dofile(path .. "/endermite.lua")
dofile(path .. "/ghast.lua")
dofile(path .. "/shulker.lua")
dofile(path .. "/wither.lua")
dofile(path .. "/zombiepig.lua")

View File

@ -53,6 +53,11 @@ mobs:register_mob("mobs_mc:shulker", {
water_damage = 1,
lava_damage = 4,
light_damage = 0,
do_punch = function (self, hitter, time_from_last_punch,
tool_capabilities, direction)
xpro.add_xp(hitter:get_player_name(), 2)
return true
end,
})
-- bullet arrow (weapon)