Minecraft 1.19 Forge Modding Tutorial | ADVANCED ITEMS | #5

  Рет қаралды 29,806

Modding by Kaupenjoe

Modding by Kaupenjoe

Күн бұрын

Пікірлер: 44
@divinedreamosrs
@divinedreamosrs 2 жыл бұрын
man im so looking forward to the rest of these episodes. i pray to god and kaupenjoe that u continue this series.. u have no idea how much this is really helping me not only learn java, but pursue my passion of programming what i enjoy.
@ModdingByKaupenjoe
@ModdingByKaupenjoe 2 жыл бұрын
I hope so too, but I am pretty confident about it. Have some awesome tutorials still planned for 1.19 😎🤩
@ItzDelano
@ItzDelano 2 жыл бұрын
i only follow your fabric tutorials but its actually crazy nice that you keep putting out all these tutorials for both forge and fabric
@skatingskelly
@skatingskelly 2 жыл бұрын
pumpin out these tutorials so fast.
@ModdingByKaupenjoe
@ModdingByKaupenjoe 2 жыл бұрын
Absolutely 😎😁
@reversiblelag
@reversiblelag 2 жыл бұрын
You make such great tutorials! Keep them coming, I am trying to follow your example and put my own spin on it, but there is so much to learn.
@ModdingByKaupenjoe
@ModdingByKaupenjoe 2 жыл бұрын
Thanks, will do!
@everyblu
@everyblu Жыл бұрын
I recommend putting the "item" folder in a folder called "common", to keep stuff organized.
@lordcoconut1060
@lordcoconut1060 2 жыл бұрын
This helped me SO MUCH! Thank you! I've been looking through so many docs and whenever I get stuck I come to your channel. I just have one question, though. Could you explain in more depth of why the random magic 8 ball text has to be server-side? I got a little bit confused on this part. I also had a question about summoning entities with forge. I want to make a wand that summons tnt at my location, but I'm having trouble. Thanks in advance
@ModdingByKaupenjoe
@ModdingByKaupenjoe 2 жыл бұрын
You're so welcome!
@lordcoconut1060
@lordcoconut1060 2 жыл бұрын
@@ModdingByKaupenjoe Thank you so much!
@ath3nac4t45
@ath3nac4t45 2 жыл бұрын
@@ModdingByKaupenjoe How would you fill out the parameter? I am confused on what I need to do.
@ath3nac4t45
@ath3nac4t45 2 жыл бұрын
Specifically, what do I fill in for sever level, item stack, and BlockPos
@justforrefence9
@justforrefence9 Жыл бұрын
Tell me, -How do you make the use event shoot out a splash potion of harming colored light blue, -How to you make the attack damage 50.0
@justforrefence9
@justforrefence9 Жыл бұрын
I Actually want to know
@hexythesis
@hexythesis 10 ай бұрын
how would i set it up so like when i right click a living entity with a custom item, so that itll drop another custom item
@l9m241
@l9m241 Жыл бұрын
The only thing I've been getting snagged on is how to make the item disappear from the players inventory after using it. Or at least remove 1 from a stack of that item and have it consumed. I have an item that grants the player experience but I want to make the item one time use only and that's causing a snag.
@imbored7311
@imbored7311 2 жыл бұрын
I'm trying to make a snowball like item that knocks entities back with an explosion on impact, how would I do that?
@everyblu
@everyblu Жыл бұрын
Learn how to use events, they will allow you to do that.
@TheSpinner7
@TheSpinner7 Жыл бұрын
can you make a tutorial on how to make a custom mob pickup item?
@anferrr
@anferrr Жыл бұрын
Quick question, in the lang file, what would the key be for the chat message? I found how to make it a translatable text, but I don't know what the "convention" is in regards to the names for chat messages in here
@supermakerraptorgamersgame285
@supermakerraptorgamersgame285 2 жыл бұрын
Which part of the code should I change to get practitly a custom bow?
@grygoriiovsianikov6671
@grygoriiovsianikov6671 2 жыл бұрын
I figured out a way to make it so that instead of numbers, the outputs are strings (I also figured it out how to make it work in both hands)! Once again thank you Kaupenjoe, and here is the code that you can use: import net.minecraft.network.chat.Component; import net.minecraft.util.RandomSource; import net.minecraft.world.InteractionHand; import net.minecraft.world.InteractionResultHolder; import net.minecraft.world.entity.player.Player; import net.minecraft.world.item.Item; import net.minecraft.world.item.ItemStack; import net.minecraft.world.level.Level; public class MagicEightBallItem extends Item { public MagicEightBallItem(Properties properties) { super(properties); } @Override public InteractionResultHolder use(Level level, Player player, InteractionHand hand) { if(!level.isClientSide() && hand == InteractionHand.MAIN_HAND) { outputRandomNumber(player); player.getCooldowns().addCooldown(this, 20); } if(!level.isClientSide() && hand == InteractionHand.OFF_HAND) { outputRandomNumber(player); player.getCooldowns().addCooldown(this, 20); } return super.use(level, player, hand); } private void outputRandomNumber(Player player) { int num = getRandomNumber(); if (num == 0) player.sendSystemMessage((Component.literal("Definitely!"))); if (num == 1) player.sendSystemMessage((Component.literal("Sure!"))); if (num == 2) player.sendSystemMessage((Component.literal("Yes!"))); if (num == 3) player.sendSystemMessage((Component.literal("Of course!"))); if (num == 4) player.sendSystemMessage((Component.literal("Maybe"))); if (num == 5) player.sendSystemMessage((Component.literal("I don't know"))); if (num == 6) player.sendSystemMessage((Component.literal("Nope"))); if (num == 7) player.sendSystemMessage((Component.literal("Not at all"))); if (num == 8) player.sendSystemMessage((Component.literal("Certainly not!"))); if (num == 9) player.sendSystemMessage((Component.literal("Of course not!"))); if (num == 10) player.sendSystemMessage((Component.literal("Gonna have to solve that yourself, man. I'm just a toy that you're talking to. Good luck!"))); } private int getRandomNumber() { return RandomSource.createNewThreadLocalInstance().nextInt(11); } }
@garouelcazador_
@garouelcazador_ 2 жыл бұрын
How can I make it spend its durability when it is used?
@PotatoCast1337
@PotatoCast1337 Жыл бұрын
Great video! Been thinking about adding a potion effect to player when a specific number pops out. But can't quite figure out how to apply the effect. Can anybody point me in a direction that can lead to the solution? :D
@lavenderaz
@lavenderaz 2 жыл бұрын
how do i add a custom sound to an item when it gets consumed ?
@grygoriiovsianikov6671
@grygoriiovsianikov6671 2 жыл бұрын
How can you make the eight ball say something like "Yes", "No", or "Maybe" or stuff like that instead of numbers?
@grygoriiovsianikov6671
@grygoriiovsianikov6671 2 жыл бұрын
Never mind! I solved it!
@rykertothemax3743
@rykertothemax3743 Жыл бұрын
my game keeps saying mods.toml missing metadata help me please
@dome153
@dome153 2 жыл бұрын
Hey, maybe can someone help me here. I have the problem that some of the command are dosent exitst for me like .createNewThreadLocalInstance(). or .sendSystemMessage. and other changed like "hand" to UsedHand for examplebut im also using 1.19 pls help ^^ ty
@darkpal1339
@darkpal1339 Жыл бұрын
So nobody is going to mention how the item is called Eight Ball but generates 10 numbers from 0-9?
@minecraftplayerlol-jm8dl
@minecraftplayerlol-jm8dl 2 жыл бұрын
Hi! Was wondering if you could do a tutorial on biomes and biome generation using TerraBlender on 1.19?
@ModdingByKaupenjoe
@ModdingByKaupenjoe 2 жыл бұрын
Hey ang, _maybe_ - but till not100% decided :)
@minecraftplayerlol-jm8dl
@minecraftplayerlol-jm8dl 2 жыл бұрын
@@ModdingByKaupenjoe Thanks for the answer! Love your tutorials by the way
@tecnicgamerzsuper6616
@tecnicgamerzsuper6616 2 жыл бұрын
Its very cool now i can make my own mods and own series i will start watching u and i giving u a sub
@writili
@writili 2 жыл бұрын
Thx
@wkvvkw
@wkvvkw 2 жыл бұрын
Amazing tutorial, but why can't we use level.random.nextInt()?
@ModdingByKaupenjoe
@ModdingByKaupenjoe 2 жыл бұрын
Hey Jivot, OH! I guess you could use that as well 🤣👍🏻
@YatLau-no6iw
@YatLau-no6iw 5 ай бұрын
I want to make the camera things first
@loyal7531
@loyal7531 Жыл бұрын
im not a english speaker but still to me this tutorial is great
@noidea6425
@noidea6425 2 жыл бұрын
Why is it that if I go into the item class I get "Item p_41440_" and not "Item item"?
@divinedreamosrs
@divinedreamosrs 2 жыл бұрын
did u ever figure this out
@vuk5001
@vuk5001 2 жыл бұрын
if it doesnt make any errors dont try to fix it
@caltheuntitled8021
@caltheuntitled8021 Жыл бұрын
The short answer is that when the actual Minecraft devs programs it, they used variable names that made sense, but in the process of decompiling the code, those names were lost and new procedurally generated ones replaced them. You can replace the names in the code that you write and it won’t make a difference (assuming you change every instance of the name).
Minecraft 1.19 Forge Modding Tutorial | ADVANCED BLOCKS | #6
7:35
Modding by Kaupenjoe
Рет қаралды 19 М.
I added ur HORRIBLE Minecraft Ideas
13:28
Element X
Рет қаралды 227 М.
Happy birthday to you by Secret Vlog
00:12
Secret Vlog
Рет қаралды 6 МЛН
風船をキャッチしろ!🎈 Balloon catch Challenges
00:57
はじめしゃちょー(hajime)
Рет қаралды 82 МЛН
Hoodie gets wicked makeover! 😲
00:47
Justin Flom
Рет қаралды 126 МЛН
I Decided to Speedrun a 9,600 Hour Long Game.
16:43
GeoSage
Рет қаралды 1,3 МЛН
12 Amazing Minecraft Mods (1.19.2) For Forge & Fabric
8:36
43 Desert Mobs Minecraft Doesn't Want You to See
22:03
Dr. Bonks
Рет қаралды 164 М.
5 MUST-HAVE Redstone Builds You Didn't Know in Minecraft!
8:50
Create Big Cannons had a Big Update
8:06
Shalz
Рет қаралды 363 М.
Minecraft 1.19 Forge Modding Tutorial | NETWORKING EXPLAINED | #15
18:40
Modding by Kaupenjoe
Рет қаралды 20 М.
Happy birthday to you by Secret Vlog
00:12
Secret Vlog
Рет қаралды 6 МЛН