Jump to content

ryan_zhou

Members
  • Posts

    20
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

ryan_zhou's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. sorry, my fault ,I won't be posting outdated supports in the future.
  2. Forge updates too fast sponge and mod writers can't keep up....
  3. I wanted to show a 2d texture in hotbar and a 3d model in my hand. But ```IFlexibleBakedModel``` and ```IPerspectiveAwareModel``` has been removed from 1.12.2. What should I do? The same needs as : https://www.minecraftforge.net/forum/topic/37633-189-different-item-model-for-inventoryheld-in-hand/
  4. I want the dragon to go from one point to another, and the distance between the two points is probably 1000 block, But I'm breaking it down into moves of only 20 block at a time. I tried ```dragon.getNavigator().tryMoveToXYZ()```, it's always return false, even though it's only 20 blocks away. so i figured out EntityDragon override ```onLivingUpdate()``` completely. So PathNavigator.update() cannot be called. It might about the ```Phase```, It's a little difficult. I don't know what to do. I'd appreciate it if anyone could help me!!!
  5. sorry to bumping, just want to know if i click yes what will happen
  6. For the same reason, green nicknames don't have enough contrast if the light is too bright
  7. How did you solve this problem ? This does not seem to be resolved by setting timeouts
  8. Too much mob generation, include villager, skeleton, zombie,creeper, and villager register by mod. My server is Forge1.12.2, Sponge7.1.5 Is there any problem if I register a villager like this? Other than here, I can't think what the problem is. ``` @SubscribeEvent public void registerModel(RegistryEvent.Register<EntityEntry> event) { // event.getRegistry().register(); List<Biome> values = ForgeRegistries.BIOMES.getValues(); EntityRegistry.addSpawn(EntityVillager2.class, 1, 1, 1, EnumCreatureType.CREATURE, values.toArray(new Biome[values.size()])); } ```
  9. I want to rotate some group of obj, how to do that? I'm using Forge's ObjLoader, is that possible?
  10. That's toooo much code need copy and i don't know if it work fine, Anyway, worth a try, thank you very much!
  11. Now i have some idea is: 1. setvelocity 2. imitate wasd packet - above all not good idea,navigate will be very hard 3.let player ride a entityLiving that losing control of the player. But what I want most is for the player to move around
  12. I know EntityLiving have NavigatorHelper and MoveHelper, but EntityLivingBase not, Is a way to move player smothly to a location automatic like WASD?
  13. I'm making a moba-like game where you click on the ground to find your way, now i am ungrabed the Mouse Cursor, but i don't know how to get the block pos under cursor. Can someone insprie me? The reutrn of unproject is wrong, i don't know how to get correct value. ``` GL11.glGetFloat(GL11.GL_MODELVIEW_MATRIX, model); GL11.glGetFloat(GL11.GL_PROJECTION_MATRIX, projection); GL11.glGetInteger(GL11.GL_VIEWPORT, viewport); if (GLU.gluUnProject(mouseX, mouseY, 1, model, projection, viewport, posFar)) { if (GLU.gluUnProject(mouseX, mouseY, 0, model, projection, viewport, posNear)) { Vec3d near = new Vec3d(posNear.get(0), posNear.get(1), posNear.get(2)); Vec3d far = new Vec3d(posFar.get(0), posFar.get(1), posFar.get(2)); RayTraceResult raytraceresult = mc.world.rayTraceBlocks(far, near); System.out.println("near:" + near.toString()); System.out.println("far:" + far.toString()); if (raytraceresult != null) { Vec3d hit = new Vec3d(raytraceresult.hitVec.x, raytraceresult.hitVec.y, raytraceresult.hitVec.z); System.out.println(hit.toString()); } } } } ```
  14. env: proxy: waterfall forge: 1.12.2 2768 spongeforge: 1.12.2 2768-7.15 java.lang.ClassCastException: net.minecraftforge.fml.common.network.handshake.FMLHandshakeMessage$ServerHello cannot be cast to net.minecraftforge.fml.common.network.handshake.FMLHandshakeMessage$RegistryData Sometimes error when i use waterfall channel message connect player to another server. i submitted issue at Waterfall's github, but he say not interest in dealing with this issue. And i was commented all channel message send code. it's happed too. I try to use Velocity(another proxy) instead of Waterfall, the error doesn't reappear, but Velocity seems to be a more deadly bug. issue page: https://github.com/MinecraftForge/MinecraftForge/issues/4285
  15. I'm looking a way to register new villager and trade, but VillagerRegister#reigster is private method, anyone can help me ? Thank you!
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.