Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do you craft hearts? #22

Closed
JacksonJukes opened this issue Aug 20, 2021 · 22 comments
Closed

How do you craft hearts? #22

JacksonJukes opened this issue Aug 20, 2021 · 22 comments

Comments

@JacksonJukes
Copy link

I started a smp bases around this plugin and after about an hour we realized the 2 people that died to mobs had lost hearts. I'm trying to figure out how to craft hearts so I can tell them and they can get some hearts back.

@IkeVoodoo
Copy link
Owner

Hello! So dying to mobs now is an option you have to turn on for it to work so you'll be glad to hear that, anyways to craft hearts by default is 4 obsidian in the corners, 4 diamond blocks next to the obsidian to form something like a furnace, however if you want to change it simply go to:

plugins/LifeSteal-Smp-Plugin/recipes/

there should be a .json file, open that up and edit the contents inside of Recipe, each character is one slot, spaces are empty slots, so say you'd have

ODO
D O
ODO

(Default recipe)

O - obsidian
D - diamond_block

inside of the items tag you can add like

"O": {
"item": "minecraft:obsidian"
}

which will tell the plugin "hey here O is obsidian" and in that specific slot there is gonna be an obsidian block! (Sorry if the explanation was bad)

@JacksonJukes
Copy link
Author

Thanks!

@JacksonJukes
Copy link
Author

Btw I don’t really know how to edit/write code but is that the only way to make it so you only lose hearts from players?

@IkeVoodoo
Copy link
Owner

Btw I don’t really know how to edit/write code but is that the only way to make it so you only lose hearts from players?

there is an option in the config which works as of 1.6

@oofboi44
Copy link

hi! i have the recipe open, but even when i try to craft it, it doesnt work. i am using 1.17, and its on a minehut server. is there something that i am doing wrong?

@IkeVoodoo
Copy link
Owner

Can you send me the recipe .json file? Thank you!

@oofboi44
Copy link

sorry for the late reply, Github doesn't support .json files, so I will just copy the text here

{
"enabled": true,
"shaped": true,
"outputAmount": 2,
"recipe": [
"ODO",
"D D",
"ODO"
],
"items": {
"O": {
"item": "minecraft:obsidian"
},
"D": {
"item": "minecraft:diamond_block"
}
}
}

@oofboi44
Copy link

when I put it in the table, nothing happens

@IkeVoodoo
Copy link
Owner

/lsreload to reload

@IkeVoodoo
Copy link
Owner

/lsreload to reload

After you changed recipe, do this, it will reload the recipe

@oofboi44
Copy link

hi! again, sorry for the late reply, but when I reloaded it, it still doesn't work. also, if the crafting recipe doesn't work, its np

@benstr101
Copy link

Is there another way I can customize the recipe? It says that the site is blocks. Thanks

@eugene128
Copy link

Hi so I added this plugin to my spigot server and made it so that there is a totem of undying in the middle and it said could not open heartrecipe file. I don't know what I did wrong someone please help.
image_2021-08-26_125753

@IkeVoodoo
Copy link
Owner

IkeVoodoo commented Aug 30, 2021

Your JSON is invalid

@scrubdapoopydank
Copy link

hi pls help me
i want to craft heart with netherite and obsidian and totem. i want to keep the same order as u but replace diamond with netherite block and with totem in middle and obsidian. basically the order u have but with totem in middle. pls give me code

@IkeVoodoo
Copy link
Owner

The above screenshot works, however the json is broken, that is why as of 1.6.5 i will add a json fixer when loading the json! (it is missing two ending curly brackets at the bottom)

@scrubdapoopydank
Copy link

ok thx

@IkeVoodoo
Copy link
Owner

also, to replace the diamond block with netherite block, just change "diamond_block" to "netherite_block" in the recipe

@scrubdapoopydank
Copy link

can u type it out so i can copy and paste pls

@pinkpenguin2
Copy link

how do you revive
soemone i got locked out of my sever

@pinkpenguin2
Copy link

@IkeVoodoo
psl help i have modrate my sever

@IkeVoodoo
Copy link
Owner

/lsrevive (playername)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants