Everything posted by Abastro
-
[SOLVED][1.6.4] Trying to make a custom potion effect
What was problem.? Doesn't the code work?
-
[SOLVED][1.6.4] Trying to make a custom potion effect
Correct, try that.
-
[1.8] Item not rendering (textures)
The difference is, you cannot access to the client only classes like Minecraft in if(getSide==Side.CLIENT), so your code would crash on Dedicated Server. So you need proxies. And, you got a crash! Why didn't you say that.. + post your current code, since the crash cannot be occured by the old code posted.
-
[1.8] Item not rendering (textures)
1. First, don't use event.getSide() == Side.CLIENT. You should use proxies for the purpose. 2. Show your Console log.
-
[Solved][1.8] Trouble with Exported Jar
What do you mean by "other workspaces set up"? If it is just a separated workspace, it must not affect this workspace.
-
Crash when I open my tool tab
NBTTagCompound#getTag doesn't create any compound, so if it doesn't have tag for the context, it would just end up returning null. Instead use NBTTagCompound#getCompoundTag.
-
[Solved][1.8] Trouble with Exported Jar
So your jar is from \build\lib? If then, try gradlew clean, and gradlew setupDecompWorkspace eclipse build.
-
Detecting Nearest Entity from an EntityThrowable impact
Oh then.. First, you have to use this method: "World#getEntitiesWithinAABBExcludingEntity" it has two parameters: Entity, and AxisAlignedBB. for the Entity, just put your Entity, to exclude the entity from the search list. for AxisAlignedBB, get it from entity#boundingBox and use AxisAlignedBB#expand(r, r, r), when r is the half size of box you are trying to find entity from. And, iterate the list to find the nearest entity. (use posX, posY, posZ) About entity's data, you have to specify what kind of data you are looking for.
-
[Solved][1.8] Trouble with Exported Jar
It seems that your mod is not getting obfuscated.. Please tell us what you did, for there would be some mistake.
-
Detecting Nearest Entity from an EntityThrowable impact
Just get nearby entities by using World#getEntitiesWithinAABB and get nearest entity from them. (There would be another way. but this ) I assume that you know how to use AABBPool and how to get Entity's data.
-
[Solved][1.8] Trouble with Exported Jar
No, don't do "export jar". When it comes to forge, you have to use 'gradlew build'.
-
[1.8] Particles how i do to spam this block particles in this specific pos in t?
What.. you have to specify the particle by EnumParticleTypes. (What are you actually doing, why did you put String in it..) Just find the particle you want from there.
-
[1.7.10] item consume not happening until after logout?
1. Are you testing on Creative mode? 2. You should call markdirty method when you changes an inventory.
-
[1.8][UNSOLVED] Scoreboard
Oh. I just found out that Scoreboard is saved in mapStorage, which is for per map, not per world. Then, you should have to add/remove player in the Team when the player joins/leaves the world.
-
[1.8][UNSOLVED] Scoreboard
1. Scoreboard instance should be per world, so it is strange.. 2. Where the joinPlayer method get called?
-
[1.8] Particles how i do to spam this block particles in this specific pos in t?
What is EntityParticleEmitter? Your custom particle? Please post some relevant code.
-
[1.7.10] RotationYaw drives me nut
Try adjusting rotationYaw on both side, not only Server side.
-
[SOLVED][1.6.4] Trying to make a custom potion effect
Of course it is your potion class : PotionAlchemy class.
-
[SOLVED][1.6.4] Trying to make a custom potion effect
It seems that PotionEfect#getDuration() does not return 0 when LivingUpdateEvent called. Maybe changing 0 to 1 would solve your problem. EDIT: No, Don't do the suggestion above. There is some methods in Potion meeting your needs. So. 1. Make your own Potion class, 2. Override applyAttributesModifiersToEntity, and add ability there. 3. Override removeAttributesModifiersFromEntity, and remove ability there.
-
[SOLVED][1.6.4] Trying to make a custom potion effect
Oh I misread the Potion class. The constructor would automatically registers the potion.
-
[1.7.10] Stamina Bar Refils But stops refilling if I change the max value
What method are you using when you change the max value?
-
[1.8] MinecraftByExample sample code project
How much level do you planning to introduce on "Generate a new dimension"? Tutorial like 'Changing Sunlight Strength' can be included? If so, I'd do that using PR.
-
[SOLVED][1.6.4] Trying to make a custom potion effect
Where did you registered the potion to the array? You didn't in Main class. If you didn't, try adding the potion to the array.
-
[1.7.10] EventHandler; Poison Enchantment
1. Just checking EnchantmentHelper#getEnchantmentLevel(int enchid, ItemStack is) would greatly simplify your code. 2. Your EnchantmentGift class would be needed, so please post it.
-
[1.8][UNSOLVED] Scoreboard
You should get team from Scoreboard class, via Scoreboard#createTeam(String). (In case it wasn't deobfuscated in 1.8, the method returns ScorePlayerTeam)
IPS spam blocked by CleanTalk.