Everything posted by Failender
-
How to make hands do no damage to blocks
use BreakSpeed event, check if the player is using bare hands, if he does set speed to 0
-
[1.8] GUI button teleport player to dimension & general dimension support
For creating custom dimensions, I THINK but I really have no idea, that dimensions didnt change that much so a 1.64 tutorial could help u if u know some basics that changed (like BlockPos) http://www.minecraftforge.net/forum/index.php?topic=19799.0
-
[1.8] GUI button teleport player to dimension & general dimension support
send a packet from client to server side that u want the teleport. on server side this code is what u want Teleporter is the EntityPlayerMP teleporter.mcServer.getConfigurationManager().transferPlayerToDimension(teleporter, dimensionToGo); teleporter.playerNetServerHandler.setPlayerLocation (posX, posY, posZ, teleporter.rotationYaw, teleporter.rotationPitch);
-
[1.7.10] How to make lightning bolt deal no damage to an entity?
maybe you can add a tag to the player when he starts hitting, in the death event check for the tag and remove it, so you know who should be the one not taking damage
-
[1.7.10] How to make lightning bolt deal no damage to an entity?
U should be using LivingHurtEvent, check if the damage source is a lightning and if the entity taking damage is the attacker, if it is dont damage him
-
[1.8] Best way to send packets to specified amount of people
to write a string array do the following: write the size of the array to the buf. after that write each string to the buf. to read it. read the size of the array from the buff for(i=0; i<size;i++) read the string
-
[SOLVED]Setting up Git correctly / Gradle Problems
only your src folder shd be in ur git
-
[1.8] Stopping the player from receiving item after crafting [SOLVED]
Really? You never click an item and put it in any of the other 30 some slots in your inventory? You always place it in your current slot? I don't think I ever put it in my current slot, as I'm usually already carrying something. Sorry, but I don't think using any kind of ticking event is the answer to this question. agreed. I still cheer for readding the recipes if its only a couple
-
[1.8] Stopping the player from receiving item after crafting [SOLVED]
True that but to be honest I dont think that there is another way..
-
[1.8] Stopping the player from receiving item after crafting [SOLVED]
http://www.minecraftforge.net/forum/index.php/topic,23133.0.html There you go! Using this technique u can make recipes that can only be crafted under specific circumstances! Should be exactly what u want! Go and bumb diesieben's karma up, he did a great job there
-
[1.8] Stopping the player from receiving item after crafting [SOLVED]
There is a way to restrict recipes for certain player. diesieben07 has a tutorial on how to do that, I already used it once and it worked like a charm. gimme a second to find it..
-
1.8 Custom Model not rendering as item
Any errors in the console? they could provide some help.
-
1.8 Custom Model not rendering as item
try writing all in lower case and put the json inside models/item/pipe/pipe01.json. Im not sure if this will work so dont blame me
-
[1.7.10] EnergyStorage
I am glad to help Sorry for the wrong information with the packets tho :'D
-
[1.7.10] EnergyStorage
I am not sure and got no IDE by hands so I need to guess out of my mind.. it SHOULD be something like detectChangesAndUpdate. Also important should be sth like addCraftingToCrafters
-
[1.8] Custom Furnace, some bugs....that i am spinning in circles!
nobody knows which line is 92.
-
1.8 Custom Model not rendering as item
are u registering the item renderer? in u proxy with the ItemModelMesher
-
[1.7.10] EnergyStorage
i just realized that there are better ways to do that, sorry. Whenever you open a guicontainer u already got a pipeline to send informations, so no need to use packets, my bad. u should take a look how the furnace is syncing the values, should be GuiFurnace there is some stuff about updating the variables
-
[1.7.10] EnergyStorage
aaaaah i got it. u arent syncing the values between client and server, which isnt an issue when it was static, because client and server was in the same machine. but now the values arent static, so u need to manually sync the values between client and server side if u want to display them, which means that u will need to use packets EDIT: http://www.minecraftforge.net/forum/index.php?topic=20135.0
-
[1.7.10] EnergyStorage
Never worked with RF API but i will give it a try. Show whole code, code taken out of context wont help any1
-
[1.7.10] EnergyStorage
http://www.javatpoint.com/static-keyword-in-java Hint of the day : Learn java!
-
Question about modid's?
modids are unique identifier for ur mod. thats their purporse and thats it. make them lowercase, i think numbers should also be fine
-
Problem with textures.
"layer0": "cf:butcher_knife/butcher_knife" is the problem. i think it should be "layer0": "cf:items/butcher_knife"
-
Problem with textures.
I dont know who is telling people to register items by their unlocalized names, not the first time we see this here.. gimme a second to read through, should be a simple mistake
-
Problem with textures.
show ur clientproxy
IPS spam blocked by CleanTalk.