execute at @e[limit=1,sort=nearest,nbt={Item:{components:{"minecraft:custom_data":{guidebook:"tag"}}}}] run function survivalplus:giant_deal/convert/converteffect
execute at @e[limit=1,sort=nearest,nbt={Item:{components:{"minecraft:custom_data":{guidebook:"tag"}}}}] run summon item ~ ~ ~ {PickupDelay:40s,Glowing:1b,Tags:[itemguard,special],Item:{id:"minecraft:written_book",components:{"minecraft:custom_data":{guidebook:tag,wikibook:tag},"minecraft:written_book_content":{pages:[[["",{"text":"WIP","bold":true,"color":"blue"},{"text":"\nFood matters","hover_event":{"action":"show_text","value":"When you take damage, you get hungry. Food is more scarce, so find a stable source. Wheat seeds won't drop from normal grass anymore. Animals will only drop 1 piece of meat unless you find a Cleaver. Cleavers can be dropped from Vindicators and Zombified Piglins."}},{"text":"\nBestiary","hover_event":{"action":"show_text","value":"After you kill a new mob or interact with it, an entry will be added to your bestiary. To open it, look in your advancements tab."}},{"text":"\nTorches","hover_event":{"action":"show_text","value":"Torches are now also weapons. Hitting something with a torch can light it on fire. Having a torch in your off-hand while shooting a bow will consume the torch and light your arrow aflame. It will also automatically place torches this way. Throwing a torch will also be auto-placed when far enough."}},{"text":"\nFishing","hover_event":{"action":"show_text","value":"Fishing is enhanced to have better loot. Treasures have special tools. Dropping a spider eye in water can bait the water to automatically fish for you."}},{"text":"\nTrinkets","hover_event":{"action":"show_text","value":"The first thing you need to know about trinkets is that they are very good. Simply having them in your inventory can trigger their effects. Trinkets can be dropped by various mobs, even uncommon ones like Husks. Experiment with which mobs can drop trinkets. However, you need a certain trinket to be able to get these other trinkets. Your first hint is this: Fishing! Try fishing in different areas and levels!"}},{"text":"\nCooking","hover_event":{"action":"show_text","value":"There are cooking recipes that add something special to your food that gives you an effect when eaten. To make a cooking pot: place a cauldron over a campfire and fill it with water. Smoking meat: placing cooked meat over a campfire and waiting will eventually turn it into smoked meat. Be careful not to burn it! Campfire Cooking: any kind of vine = Slimeball, Rotten Flesh = Leather"}},{"text":"\nCrafting","hover_event":{"action":"show_text","value":"A handful of crafting recipes have been added for a quality of life experience. Such as blast smelting glass and stone. As well as putting slabs back together into a full block. The stone cutter can also be used as a lumbermill for wood. You can also salvage certain items that are not normally uncraftable. These recipes are already learned for you."}},{"text":"\nBlood Moon","hover_event":{"action":"show_text","value":"Every now and then, the night will get much more dangerous. Monsters are much stronger and you can't sleep to skip the night. There are also some mob variants that can spawn, that drop unique loot."}},{"text":"\nSecrets","hover_event":{"action":"show_text","value":"There are secrets to some of these monsters. So seek out special mobs and experiment with them in different ways."}},{"text":"\nThink differently","hover_event":{"action":"show_text","value":"Remember! You are not playing Minecraft! You are playing Survival+! Many things are not going to go the way you expected them to go! Try new things and find new mechanics that have been added along with this added difficulty. Things that you think that may be safe, might not be so anymore!"}},{"text":"\nEarly game tips","hover_event":{"action":"show_text","value":"Since debug is reduced, a compass can show you your X and Z coords. Wandering Traders have more trades, making them more desirable. (A bell can increase spawn rate of Wandering Traders) Iron golems and Wolves are also stronger to help with the difficulty. Resting in a bed long enough can give you a buff that gives you more health temporarily. (commonly used in multiplayer)"}},{"text":"\nCheating","hover_event":{"action":"show_text","value":"Be smart enough to know where you shouldn't be! Be careful using commands! Make sure you know what you're doing! Messing with tags, clearing scoreboards, changing the time of day, and granting advancements can break some things!"}}]]],title:"Survival+ Wikipedia",author:potatowarrior906,lore:[{"text":"Know all about Survival+"}]}}}}
kill @e[limit=1,sort=nearest,nbt={Item:{components:{"minecraft:custom_data":{guidebook:"tag"}}}}]
#https://minecraft.tools/en/book.php