Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Paper Minecraft
- Igodatfortnite
-
2 posts
Paper Minecraft
I have started making a paper minecraft game. I am having some trouble, i don't know how to do certain things and can't find a good recent tutorial that works. Can anybody answer at least one of the following: 1. Pigs and Cows need to know how to jump and shouldn't be able to walk through things. 2. Steve shouldn,t be able to walk through things. 3. I need a good inventory and crafting system, 4. I also need a good armor system. 5. I need a good health, oxeygen and hunger system. Thanks!!!
Sincerely,
Me
Sincerely,
Me
- SuperInky
-
44 posts
Paper Minecraft
That's… hard.
For the wall clipping thing, you could make Steve and the mobs run a wall detection system so they get pulled back horizontally if they find a block near to their hitboxes.
EDIT: For the mob jumping thing, you could make the mobs know when they're hitting a wall, then make their vertical velocity increase.
For the inventory system, it's best if you stored all of the slots in a list, and also stored their durabilities (for armor and weapons) in another list, and their quantities in yet another list. Then just displaying those in the screen. This part isn't that hard.
For the crafting system, you could store the crafting in a list, and the item result of crafting in that exact way in another list. For example…
“0000 0001 0000
0000 0001 0000 = 0003
0000 0002 0000” In this example, it's the crafting recipe of a sword. 0001 equals to wood, 0002 represents a stick, and 0003 the wooden sword, in this example.
For the health, oxygen, whatever… systems, you should make use of variables so the variables get stored there. All of these systems (including saturation, another invisible hunger bar that kinda works like the visible one) start at 20. Their values are essentially halved by 2 for display. If health was equal to 13, for example, display would show 6 and a half hearts. I am warning you though, making the bars draw isn't an easy job if what you want is a faithful version of them.
Hope this helps. Best of luck!
For the wall clipping thing, you could make Steve and the mobs run a wall detection system so they get pulled back horizontally if they find a block near to their hitboxes.
EDIT: For the mob jumping thing, you could make the mobs know when they're hitting a wall, then make their vertical velocity increase.
For the inventory system, it's best if you stored all of the slots in a list, and also stored their durabilities (for armor and weapons) in another list, and their quantities in yet another list. Then just displaying those in the screen. This part isn't that hard.
For the crafting system, you could store the crafting in a list, and the item result of crafting in that exact way in another list. For example…
“0000 0001 0000
0000 0001 0000 = 0003
0000 0002 0000” In this example, it's the crafting recipe of a sword. 0001 equals to wood, 0002 represents a stick, and 0003 the wooden sword, in this example.
For the health, oxygen, whatever… systems, you should make use of variables so the variables get stored there. All of these systems (including saturation, another invisible hunger bar that kinda works like the visible one) start at 20. Their values are essentially halved by 2 for display. If health was equal to 13, for example, display would show 6 and a half hearts. I am warning you though, making the bars draw isn't an easy job if what you want is a faithful version of them.
Hope this helps. Best of luck!
Last edited by SuperInky (June 28, 2020 22:50:57)
- Wyan100
-
1000+ posts
Paper Minecraft
There is already a pretty famous Paper Minecraft made by griffpatch that you can look at for some help.
- SuperInky
-
44 posts
Paper Minecraft
Yeah, it is, though it isn't really that… simplified. In fact, it's quite very complex. OP also wanted to make a game similar to his, so yeah. There is already a pretty famous Paper Minecraft made by griffpatch that you can look at for some help.
- Igodatfortnite
-
2 posts
Paper Minecraft
Thank You guys!!!! I will try your ideas i really appreciate it! 

- Kitty_kitty_Catty
-
8 posts
Paper Minecraft
be careful!
12310024524526422051344301964924726492472469421301001832022663163123197031280312903277031711331670316403119212319413313114102291235796492472013320031281051223815212102173122221103151324102601832420102183241031222193242010315231210212024801002190101231210102203241031222173242010315331200101321901012312001022132410312221532420103154260032440101221901003245026001022232410312221332420103155260142190260131022332410312221132420103156260025002510100219026001022632410312212260163122032420103157242010142420102273241031220260163242010315732410260032440101232450260032420102273241026015324201031593241026001003246026003242010229324102601332420103161324102601232420102313241026003242010316332410324201023332460105111213301263512643227177180830190808610218311303246026003241024702180101310340233071351328610101451255310101351253510101251253710101451259710101251240710101451257710103100512462010310051246701031005124670103100512464010310051245901031005126690103100512452010310051246101031005124540103100512456010310051246001031005124570103100512466010310051245101031005124540103100512453010310051265001010
12310024524526422051344301964924726492472469421301001832022663163123197031280312903277031711331670316403119212319413313114102291235796492472013320031281051223815212102173122221103151324102601832420102183241031222193242010315231210212024801002190101231210102203241031222173242010315331200101321901012312001022132410312221532420103154260032440101221901003245026001022232410312221332420103155260142190260131022332410312221132420103156260025002510100219026001022632410312212260163122032420103157242010142420102273241031220260163242010315732410260032440101232450260032420102273241026015324201031593241026001003246026003242010229324102601332420103161324102601232420102313241026003242010316332410324201023332460105111213301263512643227177180830190808610218311303246026003241024702180101310340233071351328610101451255310101351253510101251253710101451259710101251240710101451257710103100512462010310051246701031005124670103100512464010310051245901031005126690103100512452010310051246101031005124540103100512456010310051246001031005124570103100512466010310051245101031005124540103100512453010310051265001010
- RachelFang
-
1 post
Paper Minecraft
excuse me how do i make higher attack damage when im remixing paper minecraft
- GOD999999
-
2 posts
Paper Minecraft
how do i change crafting recipes in griffpatch paper minecraft
- GOD999999
-
2 posts
Paper Minecraft
if youre looking for mobs you can change the mob data in the _Mob_Data list and if youre looking for weapons then change the item data in _Block_Data excuse me how do i make higher attack damage when im remixing paper minecraft
- ry359
-
1 post
Paper Minecraft
Kitty Kitty Caty your world was very fun.12310024524526422051344301964924726492472469421301001832022663163123197031280312903277031711331670316403119212319413313114102291235796492472013320031281051223815212102173122221103151324102601832420102183241031222193242010315231210212024801002190101231210102203241031222173242010315331200101321901012312001022132410312221532420103154260032440101221901003245026001022232410312221332420103155260142190260131022332410312221132420103156260025002510100219026001022632410312212260163122032420103157242010142420102273241031220260163242010315732410260032440101232450260032420102273241026015324201031593241026001003246026003242010229324102601332420103161324102601232420102313241026003242010316332410324201023332460105111213301263512643227177180830190808610218311303246026003241024702180101310340233071351328610101451255310101351253510101251253710101451259710101251240710101451257710103100512462010310051246701031005124670103100512464010310051245901031005126690103100512452010310051246101031005124540103100512456010310051246001031005124570103100512466010310051245101031005124540103100512453010310051265001010
- ben101111fan
-
4 posts
Paper Minecraft
12310024524526422051344301964924726492472469421301001832022663163123197031280312903277031711331670316403119212319413313114102291235796492472013320031281051223815212102173122221103151324102601832420102183241031222193242010315231210212024801002190101231210102203241031222173242010315331200101321901012312001022132410312221532420103154260032440101221901003245026001022232410312221332420103155260142190260131022332410312221132420103156260025002510100219026001022632410312212260163122032420103157242010142420102273241031220260163242010315732410260032440101232450260032420102273241026015324201031593241026001003246026003242010229324102601332420103161324102601232420102313241026003242010316332410324201023332460105111213301263512643227177180830190808610218311303246026003241024702180101310340233071351328610101451255310101351253510101251253710101451259710101251240710101451257710103100512462010310051246701031005124670103100512464010310051245901031005126690103100512452010310051246101031005124540103100512456010310051246001031005124570103100512466010310051245101031005124540103100512453010310051265001010
Last edited by ben101111fan (May 9, 2022 22:16:14)
- Discussion Forums
- » Help with Scripts
-
» Paper Minecraft