Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

shidopitzel

Members
  • Posts

    15
  • Joined

  • Last visited

shidopitzel's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. and it is more easy because it is compare two items it is not a string it is an object and object compare with string I don't think it is work
  2. when I test with "==" it is show me error so I used ".equals(Items.POTATO)"
  3. because a youtuber that did a video of making mods from ideas of his subscriber and he make a item that pick number of potatoes and add and save it in a value that when he will put it in the the four recipes it will be give again the all the potatoes in stack by stuck he do it for his server maybe you know it is "Palladium" it is Minecraft with mods luncher for multiplayers and in this "palladium" Minecraft there is this item for shortly it is for farm potato to get xp for the "farmer job"
  4. this is in catala language it is really changing between this two language
  5. because it is show me in the console like in picture capture all this thing and can do nothing in capture.jpg and the name of the item changing in the language you choose to minecraft
  6. yes i do that if (event.getItem().getItem().getItem().equals(Items.POTATO)) { MyMod.LOGGER.info("You picked " + event.getItem().getItem().getCount() + " potato"); } for the moment
  7. the world is unlogic to understand i write to change event.getItem().getItem().getItem() and it is write me in the console"potato" and when it it other thing like oak planks it is write me in the console "oak_planks" so i just need to do a condition if it is equal to "potato" just so easy but the answer was in front my eyes
  8. I will try but how we can copare it is the "equals" command ??
  9. i want to that when a player picked up a thing so he verified that is a potato but i don't know how to do it just using Minecraft id and i don't know how to get from an item the Minecraft id to check if it "Minecraft:potato" the code is here... package com.shidopitzel.mymod.events; import com.shidopitzel.mymod.MyMod; import com.shidopitzel.mymod.init.BlocksInit; import net.minecraft.entity.LivingEntity; import net.minecraft.item.Item; import net.minecraftforge.event.entity.player.EntityItemPickupEvent; import net.minecraftforge.eventbus.api.SubscribeEvent; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.Mod.EventBusSubscriber.Bus; import net.minecraftforge.registries.ObjectHolder;;; @Mod.EventBusSubscriber(modid = MyMod.MOD_ID,bus = Bus.FORGE ) @ObjectHolder(MyMod.MOD_ID) public class PotatoPickUpEvent { @SubscribeEvent public static void PotatoPickUpEvent(EntityItemPickupEvent event) { LivingEntity livingEntity = event.getEntityLiving(); MyMod.LOGGER.info(livingEntity.getEntityString() + " picked owner " + event.getItem()); } } how can i check the Minecraft id of "event.getItem" but first i want to print it in the console and after do a condition
  10. I already find the how to fix that just I needed to change "item.mymod.example_item.name" to "item.mymod.example_item" but I don't know how to close this content
  11. I am working with Minecraft forge in version 1.15.2 I want to change the name of my item to "Stick of war" but it doesn't work I put it under "lang" folder and I rename the file "en_us" and in the text of "en_us.json" I write this { "item.mymod.example_item.name": "stick of war" } and in game the name of it is "item.mymod.example_item" in game and don't show me "stick of war" en_us.json
  12. I have a problem that I want to put a package in package the first package is under "src/main/java" and I want to create a new package under the first package and it is put me under "src/main/java" and when I see in the proprieties it is under "src/main/java" and not under the first package and when I do with the sorce folder like this "MyMod/src/main/java/com.shidopitzel.mymod" in another way it is tell me that " Folder 'MyMod/src/main/java/com.shidopitzel.mymod' does not exist." so please help me with this problem and when I see in the tutorial it is work for him go 5 second before and see https://www.youtube.com/watch?v=DAozGc0aW04&t=808s and me it is not work
  13. I have a problem in the program and I don't know how to fix this it is the episode one from the tutorial I copy like him and I the script of the main is package com.shidopitzel.voidmod; import com.shidopitzel.voidmod.proxy.CommonProxy; import com.shidopitzel.voidmod.util.Refrence; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.Mod.EventHandler; import net.minecraftforge.fml.common.Mod.Instance; import net.minecraftforge.fml.common.SidedProxy; import net.minecraftforge.fml.common.event.FMLInitializationEvent; import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; @Mod(modid = Refrence.MOD_ID,name = Refrence.NAME,version = Refrence.VERSION) public class Main { @Instance public static Main instance; @SidedProxy(clientSide = Refrence.CLIENT_PROXY_CLASS,serverSide = Refrence.COMMON_PROXY_CLASS) public static CommonProxy proxy; @EventHandler public static void PreInIt(FMLPreInitializationEvent event) { } @EventHandler public static void Postinit(FMLPostInitializationEvent event) { } } The problem is: Unrecognized option: -Xincgc please if you know what is the problem and if we can fix it maybe the problem is the run configurations what run because when I see in the video when he put is mouse above the run run button it is show just "Run" and I it is showing "Run Server" like so maybe need do a thing with the run configurations like in the Capture.jpg and of him in the episode 2 in time 20:07 it is just show just "Run" https://www.youtube.com/watch?v=f0zXArplb9Y&t=1207s or the problem is that there is folders missing in picture "Workspace.jpg" and running from main.java showing an error message in picture "ErrorMessage.jpg" so maybe you can help me fix it please help me I am new in Minecraft programing mods and I want really to make mods
×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.