Description
DOESN'T WORK ANYMORE. will change it maybe in April.
For now this mod is a test, there's not a lot of thing and the second big problem is that it's wrote in franglish (a mix of english and french, don't aks why, you'll hurt me). There is also a third big problem, this mod doesn't make you feel like you play Hytale but more Plants vs Zombies, you will understand that after playing it or reading this, I already have some ideas to correct that though.
SharedStructure is necessary for this mod to work (or atleast a part of this mod)
This mod, to explain it in a few word, will let you experience Plants vs Zombie inside Hytale:

1) The Gameplay
Through an Item, which is the Core of this mod, called PvZ Book :

You can get it through a new Bench called PvZ Bench:

You'll be able to gain access to levels of the Horde: ("Niveaux" = "Levels", "Plantes" = "Plants", "Reward dans XXhXXm" = "Reward in XXhXXm", sorry again it's in franglish I know I will correct that maybe later).

And during those hordes, all you have to do is protect the Core from the zombies:

Here we can see the Core in the front and the zombies, that that will appear during the horde, behind it.
To protect the Core, you'll have plants, the PeaShooter is already unlock, some Levels will unlock you plants. (btw, "Se Préparer" more or less equal to "Choose you Seed", "Lancer" means "Start", "Retour" means "Back", again sorry for that but, words can't describe how lazy am I to correct that now).

Obviously, you can't bring any tools yourself in that horde, it will break the game if you can bring that gun that consume 0 ammo but does 200 damage per shot with 1 second for reload, but later it will change, you'll be able to get "guns" and even keep your armor. So, when you are in an "instance of horde" your inventory is cleared but saved and kepts in a file, you'll get back your stuff later, if you don't touch that file, you shouldn't be able to loose your stuff, I've done tons of test, if you disconnect in that instance, then reconnect your will get sent back to your world with your stuff, even if your game crashed, your pc crashed, your server crash, it will still does that. Just dont touch that file.
During a horde, you can only plant plants in grass and the zombie obviously can only spawn in grass. In later levels the quantity of grass will increase until it fill the whole place (so you can plants anywhere but zombies can come from anywhere). You will also have a second hotbar for tools, it's a bit Work In Progress though but you have at least 2 tools (one of them is seen starting from level 1-3 till the end, the other from the beginning)
There are 10 levels for now, 7 plants, 8 zombies (only 6 are truly "meetable", the other two are done but doesn't appear anywhere I think).
A little notice, during the hordes, a Hud will be forced upon you and it doesn't use MultipleHUD for now (I will for sure change that by the end of this decade) so If you use a mod that use a Hud and isn't also compatible with MultipleHud, you'll crash (but again, that will not make you loose your stuff, I tried it with eyespy without multiplehud).
When you are done with a Level, you get reward like unlocking a plant for some of them, PvZ_CoinsCopper and access to some trade through 2 NPC. I will talk about the NPC First.
2) Trader
Two NPC trader are added with this mod, they are Hydave and Hycrazy (sometimes it's also called Hycraze, depends on how often I've made that spelling mistake) they both look like this:

Even though they look alike they are entirely different, Hydave will trade items from Hytale in exchange of PvZ_Coins meanwhile Hycrazy will exchange things from my mod in exchange of... tacos obviously. You can also buy tacos with PvZ_Coins.
I will say it now, but they will merge in the next update, that idea of separating them was stupid.
Their UI is totally in french though, it's the only time I think where you'll not see franglish but only french (except Money, Leather...), but don't worry, there is no story, the color of the buttons will clearly indicate which means "Buy" and which means "Close"... ("Minerai" = "Ore")


With this version, you'll be able to get yourself some Copper (Cuivre=Copper), Iron (Fer=Iron), Thorium, you can also get some Leather.

So how do we get Tacos ? Well 2 way, you can buy them through Hydave for PvZ_Coins, you can also "cook" them up through Bench PvZ
The Tacos Normal is quite easy to do, the other 3 are a bit harder.
With Tacos Normal you'll be able to buy PvZ_Event that I will talk about a bit later, the tacos necessary to buy Plants is the Spicy one "Spicy Tacos", the craft is almost the same but you will also need some Tomatoes (Tier 5 farming or kweebec village can have some I think) and Spicy Sauce which is an item from this mod that is lootable from Zombies. Yes, in this mod, you'll also encounter zombies in night time, they have obviously more health than some skeletons but slower and deals less damage, you can find for now only 3 types of zombies I think, maybe in the zone 4 there is a fourth one, rare. So those zombie will drop you some coins and if you are lucky Spicy Sauce, necessary to get those 3 plants.
Now, How do we find those 2 NPC ? They are in a structure you can find in plains:

I admit that I wanted it to look a bit like the original Plants vs Zombies but I only know how to code. (TIPS: you can find a sunflower on the rooftop, it's sun is usefull for some craft)
3) PvZ_Event
I mentionned them rapidly, they are totally in work in progress (and maybe totally removed), but to put it briefly, PvZ_Event are manually launched events that spawn zombies for a certain time, when the event is finished, you have a cooldown before launching it again. You launch it in the PvZ Book (Verrouillé = Locked) to unlock it you need to buy it through Hycrazy for Tacos Normal.


Why do we spawn zombie ? So that it's easier to farm Spicy Sauce and Coins, even though zombies spawn already in night time, their chance to spawn is quite low and I can't really increase it if I don't want to destroy the game Hytale. With PvZ_Events, players can spawn the zombies and prepare themself agains them.
4) Tools
There is 2 tools: A shovel to remove plants and a stick to rotate them, obviously we can't have a PeaShooter doing 360° right ? So they can "only" see about 70° in front of them. Be carefull though, if the plants has locked a target, you can't rotate it.
Cons)
This mod will see drastic change, I don't like it honestly, PvZ_Events were goods Idea but only for 3 seconds, giving a way for players to buy hytale's stuff that way so simply isn't also something that I like, forcing players to farm and grind to have some plants wasn't a good Idea. The gameplay of the hordes is good honestly I'm proud of that but, it's lacking the "Hytale-vibe", it feels too much like PvZ than PvZ in Hytale. What I mean by that is that I could totally do the same thing in another game which isn't hytale, it's that simple, where is the special attack ? Where is the parry ? In plants vs zombies it was normal to not do anything only the plants attack but here in Hytale it shouldn't be like that. I already prepared the root for that with the second hotbar, it will let me let the player have their own weapon, shield, staff maybe...
So again, this mod is experimental, beta, test, WIP call it however you want, I just wanted to put somewhere my mod like this before all the modification.
check that website, done in 20min, if you want more info (it's in french though): https://puissantsy.github.io/Hytale-PvZ-Wiki-/


