Jump to content

advice


schefrog

Recommended Posts

Hi All,

 

I am looking for ideas for my final project and I have that crazy idea to write a mod for Minecraft as my kids love the game and play it all the time. I have no experience in modding or Forge but I am good in Java and I can spend up to 200 hours. What do you think could be done in that time? Any suggestions are very appreciated. Is Forge still the offical-unofficial API for Minecraft modding? I am a bit confused since I was reading about an official Plugin-API and addons the other day.

 

I also asked the kids for some ideas and got the following list. Can you advise whether or not these are possible with Forge? I guess some things already exist. Also, as I should code, I am afraid that drawing textures and modelling take most of the time. What do you think from your experience?

 

  • math zombies (which can only be killed by solving a math task showing above their head) - I admit this was my idea
  • magpies stealing shiny things (like gems) from the players inventory
  • divining rod  / detector (or compass) which can be used to search for some rare ore (which can be selected in a gui)
  • a sword that lights up when monsters are near (like Sting), made of moon stone
  • meteor shower giving meteor stone
  • teleporter phone booth for travelling around
  • fireballs
  • lembas (an elfish bread that makes you faster and full for long)
  • poseidon's trident (or aquaman's) which can be used for letting it rain, fishing, healing in the water, breathing under water
  • thor's hammer which can fire lightnings (unbreakable)
  • emojis in chat messages
  • flyable bats

 

Thanks for any help.

 

Kind regards

Edited by schefrog
Link to comment
Share on other sites

1 hour ago, schefrog said:
  • thor's hammer which can fire lightnings (unbreakable)
  •  

There are two things you may be talking about:

1. Firing lightnings when the player left-clicks at anything, or

2. Firing lightnings when the player hits an entity.

 

For the first option, you follow these steps. I, however, recommend you learn some Forge modding first. Once you did, follow these steps:

1. Use the MousInputEvent and fire it when the player left clicks.

2. Once fired, get the player's look vector by using the Vec3d class.

3. Summon a lightning bolt at the player's look vector. Make sure you manage each side (server and client side) appropriately when summoning!

 

For the second option, follow these steps:

1. Use the LivingAttackEvent which fires when an entity attacks another.

3. Summon a lightning bolt at the target. Make sure you manage each side (server and client side) appropriately when summoning!

 

Hope this kind of helps. Again, you can see that you must have prior knowledge of Forge code. I can relate to your state. When I started modding, I only knew Java, but not Forge API. Then I learned step by step and I am still learning the complex parts! It does take some time, but I believe 200 hours is plenty more than enough to get some things done, only if you manage your time wisely and learn as much as possible.

Link to comment
Share on other sites

1 hour ago, schefrog said:

Hi All,

 

I am looking for ideas for my final project and I have that crazy idea to write a mod for Minecraft as my kids love the game and play it all the time. I have no experience in modding or Forge but I am good in Java and I can spend up to 200 hours. What do you think could be done in that time? Any suggestions are very appreciated. Is Forge still the offical-unofficial API for Minecraft modding? I am a bit confused since I was reading about an official Plugin-API and addons the other day.

 

I also asked the kids for some ideas and got the following list. Can you advise whether or not these are possible with Forge? I guess some things already exist. Also, as I should code, I am afraid that drawing textures and modelling take most of the time. What do you think from your experience?

 

  • math zombies (which can only be killed by solving a math task showing above their head) - I admit this was my idea
  • magpies stealing shiny things (like gems) from the players inventory
  • divining rod  / detector (or compass) which can be used to search for some rare ore (which can be selected in a gui)
  • a sword that lights up when monsters are near (like Sting), made of moon stone
  • meteor shower giving meteor stone
  • teleporter phone booth for travelling around
  • fireballs
  • lembas (an elfish bread that makes you faster and full for long)
  • poseidon's trident (or aquaman's) which can be used for letting it rain, fishing, healing in the water, breathing under water
  • thor's hammer which can fire lightnings (unbreakable)
  • emojis in chat messages
  • flyable bats

 

Thanks for any help.

 

Kind regards

Additionally, you may need to set up your project (mod) first! Make sure you don't just start making random classes!

Link to comment
Share on other sites

Good luck with the divining rod.

No really. I've gone to a lot of effort to create ore-finder mechanics and I'm only happy with one of them (the other *works* but has display problems) and it is not a divining rod. 

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

Easy:

  • lembas (an elfish bread that makes you faster and full for long)
  • divining rod  / detector (or compass) which can be used to search for some rare ore (which can be selected in a gui)
  • math zombies (which can only be killed by solving a math task showing above their head) - I admit this was my idea
  • a sword that lights up when monsters are near (like Sting), made of moon stone
  • fireballs

Intermediate / Fair Bit Of Effort:

  • poseidon's trident (or aquaman's) which can be used for letting it rain, fishing, healing in the water, breathing under water
  • teleporter phone booth for travelling around
  • thor's hammer which can fire lightnings (unbreakable)
  • emojis in chat messages
  • meteor shower giving meteor stone
  • flyable bats
  • magpies stealing shiny things (like gems) from the players inventory

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

Link to comment
Share on other sites

On 11/13/2017 at 2:02 PM, schefrog said:

Can you advise whether or not these are possible with Forge? I guess some things already exist. Also, as I should code, I am afraid that drawing textures and modelling take most of the time. What do you think from your experience?

 

  • math zombies (which can only be killed by solving a math task showing above their head) - I admit this was my idea
  • magpies stealing shiny things (like gems) from the players inventory
  • divining rod  / detector (or compass) which can be used to search for some rare ore (which can be selected in a gui)
  • a sword that lights up when monsters are near (like Sting), made of moon stone
  • meteor shower giving meteor stone
  • teleporter phone booth for traveling around
  • fireballs
  • lembas (an elfish bread that makes you faster and full for long)
  • poseidon's trident (or aquaman's) which can be used for letting it rain, fishing, healing in the water, breathing under water
  • thor's hammer which can fire lightnings (unbreakable)
  • emojis in chat messages
  • flyable bats

 

First, a general bit of advice: Do a dirt-simple "my first mod" to climb the Forge setup and mod-structure learning curve. Perhaps introduce your "moon stone". An experienced programmer should be able to come up to full speed in about two weeks working half-time. Having been through the gauntlet once, you'll then be ready to plan and research something with more "meat".

 

Second: Use your IDE to jump into some of the vanilla classes to see how they do what they do. When contemplating a mod, look for a vanilla game element that does something similar. Quite often you can even subclass a vanilla class so it does much of the heavy lifting for you, freeing you to focus on what makes your game element special.

 

Math Zombie: Sounds deadly, especially for newly-spawned players who have enough trouble against vanilla zombies. I would spawn them only in a special location (or near a special block), and I would invent a math sword that opens a text box when right-clicked into air. The answer could then be typed and subsequently beaten into the zombie's head. To simplify things, all of your math zombies could display the same problem until somebody answers it.

 

Magpies: Stealing from player inventory sounds vicious. I'm not sure that's a good idea unless the "magpie" stays in the area (and stays away from lava). Otherwise the game could become too unpleasant to play (I would not want to return to a world where I can never keep my hard-earned diamonds). For magpie model and starting behavior, see bats.

 

Detector: See discussions on "x-ray mods" for how OP they can be. YMMV. Just be sure your mod relies on server consent. Client-only mods that peek at supposedly hidden blocks can get you banned from most servers.

 

Monster warning: Sting glowed when orcs were near, so it would be reasonable for your sword to glow for one monster, and no monster type needs detection more than the creeper (if you want to know why, then just sneak up behind one of your kids during a Minecraft session and make a soft hiss...). I recommend designing an enchantment that detects creepers, with higher level enchants detecting at greater range. Then invent your moonstone sword and make it enchantable by that enchantment in addition to other sword enchants.

 

Teleporter: See command blocks (which can be activated by pressure plates).

 

Fireballs: See Fire charges.

 

Lembas: Hunger became trivial a few versions ago. Food now lasts so long that one stack of cooked chicken might last longer than a player would want to play in a world. Your mod would need to dial-up hunger to 1.6.4 levels to make Lembas meaningful.

 

Trident: Sounds OP, but you could make a meteor-metal trident "sword" and then create enchants for it to do what potions and helm enchants do now.

 

Thor's Hammer (aka Mjolnir): I'm not sure how to use the hammer to aim the lightning, but I know you can find the weather in the world class so see how a lightning bolt entity is spawned.

 

Emojis: Little bang for the effort. I recommend typing them the old-fashioned way with punctuation marks.

 

Flyable bats? You mean ridable, like giant eagles?

 

Also consider: Wargs ("horses" shaped like large wolves), palantir (very advanced), Sauron boss, mythril... Before starting, you might also search at CurseForge to see what mods are already out there waiting to be downloaded.

 

Good luck!

 

 

 

 

The debugger is a powerful and necessary tool in any IDE, so learn how to use it. You'll be able to tell us more and get better help here if you investigate your runtime problems in the debugger before posting.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • I have done this now but have got the error:   'food(net.minecraft.world.food.FoodProperties)' in 'net.minecraft.world.item.Item.Properties' cannot be applied to                '(net.minecraftforge.registries.RegistryObject<net.minecraft.world.item.Item>)' public static final RegistryObject<Item> LEMON_JUICE = ITEMS.register( "lemon_juice", () -> new Item( new HoneyBottleItem.Properties().stacksTo(1).food( (new FoodProperties.Builder()) .nutrition(3) .saturationMod(0.25F) .effect(() -> new MobEffectInstance(MobEffects.DAMAGE_RESISTANCE, 1500), 0.01f ) .build() ) )); The code above is from the ModFoods class, the one below from the ModItems class. public static final RegistryObject<Item> LEMON_JUICE = ITEMS.register("lemon_juice", () -> new Item(new Item.Properties().food(ModFoods.LEMON_JUICE)));   I shall keep going between them to try and figure out the cause. I am sorry if this is too much for you to help with, though I thank you greatly for your patience and all the effort you have put in to help me.
    • I have been following these exact tutorials for quite a while, I must agree that they are amazing and easy to follow. I have registered the item in the ModFoods class, I tried to do it in ModItems (Where all the items should be registered) but got errors, I think I may need to revert this and figure it out from there. Once again, thank you for your help! 👍 Just looking back, I have noticed in your code you added ITEMS.register, which I am guessing means that they are being registered in ModFoods, I shall go through the process of trial and error to figure this out.
    • ♈+2349027025197ஜ Are you a pastor, business man or woman, politician, civil engineer, civil servant, security officer, entrepreneur, Job seeker, poor or rich Seeking how to join a brotherhood for protection and wealth here’s is your opportunity, but you should know there’s no ritual without repercussions but with the right guidance and support from this great temple your destiny is certain to be changed for the better and equally protected depending if you’re destined for greatness Call now for enquiry +2349027025197☎+2349027025197₩™ I want to join ILLUMINATI occult without human sacrificeGREATORLDRADO BROTHERHOOD OCCULT , Is The Club of the Riches and Famous; is the world oldest and largest fraternity made up of 3 Millions Members. We are one Family under one father who is the Supreme Being. In Greatorldrado BROTHERHOOD we believe that we were born in paradise and no member should struggle in this world. Hence all our new members are given Money Rewards once they join in order to upgrade their lifestyle.; interested viewers should contact us; on. +2349027025197 ۝ஐℰ+2349027025197 ₩Greatorldrado BROTHERHOOD OCCULT IS A SACRED FRATERNITY WITH A GRAND LODGE TEMPLE SITUATED IN G.R.A PHASE 1 PORT HARCOURT NIGERIA, OUR NUMBER ONE OBLIGATION IS TO MAKE EVERY INITIATE MEMBER HERE RICH AND FAMOUS IN OTHER RISE THE POWERS OF GUARDIANS OF AGE+. +2349027025197   SEARCHING ON HOW TO JOIN THE Greatorldrado BROTHERHOOD MONEY RITUAL OCCULT IS NOT THE PROBLEM BUT MAKE SURE YOU'VE THOUGHT ABOUT IT VERY WELL BEFORE REACHING US HERE BECAUSE NOT EVERYONE HAS THE HEART TO DO WHAT IT TAKES TO BECOME ONE OF US HERE, BUT IF YOU THINK YOU'RE SERIOUS MINDED AND READY TO RUN THE SPIRITUAL RACE OF LIFE IN OTHER TO ACQUIRE ALL YOU NEED HERE ON EARTH CONTACT SPIRITUAL GRANDMASTER NOW FOR INQUIRY +2349027025197   +2349027025197 Are you a pastor, business man or woman, politician, civil engineer, civil servant, security officer, entrepreneur, Job seeker, poor or rich Seeking how to join
    • Hi, I'm trying to use datagen to create json files in my own mod. This is my ModRecipeProvider class. public class ModRecipeProvider extends RecipeProvider implements IConditionBuilder { public ModRecipeProvider(PackOutput pOutput) { super(pOutput); } @Override protected void buildRecipes(Consumer<FinishedRecipe> pWriter) { ShapedRecipeBuilder.shaped(RecipeCategory.MISC, ModBlocks.COMPRESSED_DIAMOND_BLOCK.get()) .pattern("SSS") .pattern("SSS") .pattern("SSS") .define('S', ModItems.COMPRESSED_DIAMOND.get()) .unlockedBy(getHasName(ModItems.COMPRESSED_DIAMOND.get()), has(ModItems.COMPRESSED_DIAMOND.get())) .save(pWriter); ShapelessRecipeBuilder.shapeless(RecipeCategory.MISC, ModItems.COMPRESSED_DIAMOND.get(),9) .requires(ModBlocks.COMPRESSED_DIAMOND_BLOCK.get()) .unlockedBy(getHasName(ModBlocks.COMPRESSED_DIAMOND_BLOCK.get()), has(ModBlocks.COMPRESSED_DIAMOND_BLOCK.get())) .save(pWriter); ShapedRecipeBuilder.shaped(RecipeCategory.MISC, ModItems.COMPRESSED_DIAMOND.get()) .pattern("SSS") .pattern("SSS") .pattern("SSS") .define('S', Blocks.DIAMOND_BLOCK) .unlockedBy(getHasName(ModItems.COMPRESSED_DIAMOND.get()), has(ModItems.COMPRESSED_DIAMOND.get())) .save(pWriter); } } When I try to run the runData client, it shows an error:  Caused by: java.lang.IllegalStateException: Duplicate recipe compressed:compressed_diamond I know that it's caused by the fact that there are two recipes for the ModItems.COMPRESSED_DIAMOND. But I need both of these recipes, because I need a way to craft ModItems.COMPRESSED_DIAMOND_BLOCK and restore 9 diamond blocks from ModItems.COMPRESSED_DIAMOND. Is there a way to solve this?
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.