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.
@ModdingByKaupenjoe2 жыл бұрын
I hope so too, but I am pretty confident about it. Have some awesome tutorials still planned for 1.19 😎🤩
@ItzDelano2 жыл бұрын
i only follow your fabric tutorials but its actually crazy nice that you keep putting out all these tutorials for both forge and fabric
@skatingskelly2 жыл бұрын
pumpin out these tutorials so fast.
@ModdingByKaupenjoe2 жыл бұрын
Absolutely 😎😁
@reversiblelag2 жыл бұрын
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.
@ModdingByKaupenjoe2 жыл бұрын
Thanks, will do!
@everyblu Жыл бұрын
I recommend putting the "item" folder in a folder called "common", to keep stuff organized.
@lordcoconut10602 жыл бұрын
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
@ModdingByKaupenjoe2 жыл бұрын
You're so welcome!
@lordcoconut10602 жыл бұрын
@@ModdingByKaupenjoe Thank you so much!
@ath3nac4t452 жыл бұрын
@@ModdingByKaupenjoe How would you fill out the parameter? I am confused on what I need to do.
@ath3nac4t452 жыл бұрын
Specifically, what do I fill in for sever level, item stack, and BlockPos
@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 Жыл бұрын
I Actually want to know
@hexythesis10 ай бұрын
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 Жыл бұрын
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.
@imbored73112 жыл бұрын
I'm trying to make a snowball like item that knocks entities back with an explosion on impact, how would I do that?
@everyblu Жыл бұрын
Learn how to use events, they will allow you to do that.
@TheSpinner7 Жыл бұрын
can you make a tutorial on how to make a custom mob pickup item?
@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
@supermakerraptorgamersgame2852 жыл бұрын
Which part of the code should I change to get practitly a custom bow?
@grygoriiovsianikov66712 жыл бұрын
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_2 жыл бұрын
How can I make it spend its durability when it is used?
@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
@lavenderaz2 жыл бұрын
how do i add a custom sound to an item when it gets consumed ?
@grygoriiovsianikov66712 жыл бұрын
How can you make the eight ball say something like "Yes", "No", or "Maybe" or stuff like that instead of numbers?
@grygoriiovsianikov66712 жыл бұрын
Never mind! I solved it!
@rykertothemax3743 Жыл бұрын
my game keeps saying mods.toml missing metadata help me please
@dome1532 жыл бұрын
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 Жыл бұрын
So nobody is going to mention how the item is called Eight Ball but generates 10 numbers from 0-9?
@minecraftplayerlol-jm8dl2 жыл бұрын
Hi! Was wondering if you could do a tutorial on biomes and biome generation using TerraBlender on 1.19?
@ModdingByKaupenjoe2 жыл бұрын
Hey ang, _maybe_ - but till not100% decided :)
@minecraftplayerlol-jm8dl2 жыл бұрын
@@ModdingByKaupenjoe Thanks for the answer! Love your tutorials by the way
@tecnicgamerzsuper66162 жыл бұрын
Its very cool now i can make my own mods and own series i will start watching u and i giving u a sub
@writili2 жыл бұрын
Thx
@wkvvkw2 жыл бұрын
Amazing tutorial, but why can't we use level.random.nextInt()?
@ModdingByKaupenjoe2 жыл бұрын
Hey Jivot, OH! I guess you could use that as well 🤣👍🏻
@YatLau-no6iw5 ай бұрын
I want to make the camera things first
@loyal7531 Жыл бұрын
im not a english speaker but still to me this tutorial is great
@noidea64252 жыл бұрын
Why is it that if I go into the item class I get "Item p_41440_" and not "Item item"?
@divinedreamosrs2 жыл бұрын
did u ever figure this out
@vuk50012 жыл бұрын
if it doesnt make any errors dont try to fix it
@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).