
Failender
Forge Modder-
Posts
1091 -
Joined
-
Last visited
Everything posted by Failender
-
Hey everyone, I wanted to split up my mod into parts, because one felt more like an addon. So I finished my first, compiled and its all just fine. Question right now is how to use it as a basic for the second? I know that the first thing I need to do is set the dependencies, but how do I get a decompiled version of the mod that works when I throw it in the mods folder?
-
Insert an Update Checker that notifies players?
Failender replied to ItsAMysteriousYT's topic in Modder Support
Another idea, if you have a Server available, would be to connect to that via Sockets and let it request The most recent Version and compare that to The actual. That would mean no need to download a file every time -
If you use gradlew setupDecompWorkspace to setup ur workspace you will have The whole Minecraft code decompiled under referenced libraries
-
Read my post. You dont use breakevent to drop items. You use harvest drops. U just need to fix ur errors and itll work
-
It is casting a Wolf to player BC u tell it to do so. The event gets called every time an entity is diing. Even if its due to Fall DMG, Explosion, wolves what so ever. Before you cast The source to player, check if it is an instance of player and you are fine
-
[.code] Epic code here[./code] (Of course without the dots I dont know how to post unformatted text) you are clearing the list and then you iterate over the size.. so you will ALWAYS iterate over an empty list. so you wont be doing anything.
-
[1.7.10] Checking if there is an item on a ground
Failender replied to KakesRevenge's topic in Modder Support
you are getting a worldobj inside that method. use that and iterate over the list from getEntitiesWithinAABB -
[1.7.10] Checking if there is an item on a ground
Failender replied to KakesRevenge's topic in Modder Support
when do you want it? on random tick? maybe World#getEntitiesWithinAABB can help you -
I only used HarvestDrops and BreakSpeed and its working. show your code? are u using subscribe annotations? are u registering ur event handler?
-
onUpdate method in item class not working
Failender replied to TheDoctorSoda's topic in Modder Support
Look up the signature of the method u want to override. ask eclipse for help with overwriting. check if u extended the class correct. -
onUpdate method in item class not working
Failender replied to TheDoctorSoda's topic in Modder Support
you need to learn java seriously. the @override annotation is there to warn you that you are NOT overwriting. and you are like "oh its giving me a compile error, ill better be deleting that" -
[SOLVED]Let a GuiButton bring up a specific Website??
Failender replied to ItsAMysteriousYT's topic in Modder Support
Minecraft is not designed to show Websites ingame -
Oh I missunderstood. I thought u wanted The DMG like DMG when hitting an enemy
-
There is no need to use that. Just create The recipe and give an enchanted itemstack as output
-
Wasnt it Item#addEnchantment? Enchantments ALWAYS need nbt. How else would u store The information?
-
First of all: Code tags please. Second. I dont think you can change The DMG of vanilla items with nbt. Whats you could do is add enchantments to The items
-
[1.7.10] How to do x when y is in inventory?
Failender replied to TheDoctorSoda's topic in Modder Support
You overwrite The method in The item -
[1.7.10] [SOLVED] world setBlock not updating client
Failender replied to Pancake's topic in Modder Support
Oh yeah dumb me. The return says if The interaction is sucessfull -
[1.8] Is it possible to check the stats from the player?
Failender replied to PlayPrey's topic in Modder Support
No idea where these are stored, since I never messed with them sorry.. Try to use ur idea and check The EntityPlayer. Other way would be to search The gui package, look where The statistics gui is and how it accesses The informations. Second way should be The best -
Forge Mod Help alc_cleanup: 1 device not closed (I will post Log)
Failender replied to JacobWatts9's topic in Modder Support
And please please please use spoiler tags for logs and code tags for code.. -
This forum is for modder support, not for supporting player that need help instaling and playing mods. There are tons of Videos out there showing you how to do that.
-
I messed a lot with that and it seems that set harvest level wont work for vanilla Blocks as you might expect. My solution was to use breakspeed check for (in my case). Iron ore, if its iron speed It up and you got The harvest speed. For The drops use harvest drop,check for diamonds,if its diamond ore and The player isnt already getting items add some diamonds (make sure to check that The list is empty so he wont get diamonds twice when mining with iron)
-
[1.7.10] [SOLVED] world setBlock not updating client
Failender replied to Pancake's topic in Modder Support
Are you sure The code gets called? That ur statements are turning true -
[1.8] Is it possible to check the stats from the player?
Failender replied to PlayPrey's topic in Modder Support
You could access the Statistik used by vanilla itself or create eventhandler to save all the things you want -
[1.5.2] Where to download userdev files?
Failender replied to SantacreeperLP's topic in Modder Support
1.5.2 is no longer supported. Update to 1.7/1.8 please