
Failender
Forge Modder-
Posts
1091 -
Joined
-
Last visited
Everything posted by Failender
-
Welll Your Machine is both, an energy receiver and an energy storage, isnt it
-
You got diesieben wrong..he wasnt saying that you need to set kt to null. He was saying you are passing a variable in that line that is null by The time you are using it.
-
[1.8] Creating a block, thats its owner can walk through
Failender replied to Failender's topic in Modder Support
well this works great if I try to walk through one of those blocks. but if I stack two of them it wont let me pass and i start taking dmg, like im stuck inside a wall -
Hey everyone, I am triing to make a block that its owner can walk through. I found out that my solution might be overwriting isPassable in the class, but it seems like this isnt getting called every time someone tries to walk through. So right now I am out of ideas and could use some input
-
10 bucks some1 will copy that code and post in the forum, totally confused that its throwing errors
-
If you want examples, here you got an example for like everything. For everything else, start learning java, start watching tutorials on how to mod. https://github.com/TheGreyGhost/MinecraftByExample
-
well.. you register your blocks and after that you initialize them.. read ur error, ur blocks arent initialized when registered, so ull get a NPE
-
PlayerInteractEvent. and this should give u the mined block
-
The event you are looking for should be GuiOpendedEvent (or sth like that) there you should check if The opened gui is The Main Menu. Have in mind that The player comes back to The Main Menu when logging out of a game, so you should check if your player is already logged in that 3rd Party thingy
-
There is a special event for setting The drops of a block, you should take a look at HarvestDropsEvent (I think that was its Name)
-
Block.getBlockFromItem(item)
-
[1.8] Errors while trying to make an Item
Failender replied to Hardc0r3Br0n3's topic in Modder Support
Whats The Problem with inline instation of items @cool? -
[1.8] Errors while making the RegisterHelper class.
Failender replied to Hardc0r3Br0n3's topic in Modder Support
You should consider learning Java before writing a mod. It wont work any other way. Also read guides, there are enough talking about basics like registration of blocks -
Aah I missunderstood The question ernio is right
-
Override getBlockHardness and make it depend on the meta I guess
-
The real question is: why do you want to do that?
-
[SOLVED] Saving player in a Tile Entity
Failender replied to Titanium237458's topic in Modder Support
You should check for !isRemote on the worldObj in your onBlockActivated, so it gets only processed on server side and the server sends all needed informations to the client. -
[SOLVED] Saving player in a Tile Entity
Failender replied to Titanium237458's topic in Modder Support
Define "doenst seem to work" When are you triing to access the information and how -
I also thought about it and moved my calls to preInit.. nothing changed
-
One way to save string Arrays to NBT is use a Standard compound, set one integer Holding the length and then writing with a loop The compound,using String.valueOf(i) as key. But there might be better ways to do so
-
[1.8] PlayerEvent.HarvestCheck not fired when mining with tools
Failender replied to Failender's topic in Modder Support
obviously bc i am dumb. I was just so deep in the code that I was like okay. minecraft is using one class for all the ores. so i should check for the unlocalized name. dumb me ill better go to bed now.