JeanMiecraft
-
Posts
16 -
Joined
-
Last visited
Posts posted by JeanMiecraft
-
-
Hello, sorry for take a lot of time for this answer but with my school, I can see this topic the week-end only...
I had copy the RenderFish, the hook is apparea but the wire don't exist...
It's possible to create a wire with an another method?
Tank you.
-
Hi, I created the tool, if the player right click, it cast and uncast according to the mod. But the problem is the render of the wire. I searched in the vanilla code but I didn't found them.
How I can create this wire render?
- JM
-
Hello, I would like create a tool look like ItemFishHook but my problem is the wire. How I can create this render?
Thank you for your help.
- JM
-
In your ClientProxy, you can replace by that:
@Override public void registerFluid(Block block, String name) { final ModelResourceLocation location = new ModelResourceLocation(MOD_ID + ":" + name, "fluid"); ModelLoader.setCustomStateMapper(block, new StateMapperBase() { @Override protected ModelResourceLocation getModelResourceLocation(IBlockState state) { return location; } }); }
-
23 hours ago, TheMario said:
You speak about the movement of water but it is the push if the liquid flow. I do not understand the relation with the swimming.
No, it is the swimming... The problem maintaining, it is to apply this method when the entity jumps or if the player presses the space key...
-
7 minutes ago, Draco18s said:
That is not what that does.
If you change that value, it means the entity can not swim in anything. And again, the concept of "swimming" as far as Minecraft is concerned is Material.WATER and only Material.WATER
We can "swim" in lava too.
Okay, I understand... but it's possible to recreate with a event the swimming effect and the entity can move?
I want my custom material because with the Material.WATER or Material.LAVA, there are secondary effects...
Thank you for your help!
-
Okay, hum... in my fluid I use:
public static void registry() { ClassMod.FLUID = Fluid.instance; FluidRegistry.registerFluid(ClassMod.FLUID); ClassMod.FLUID_BLOCK = registerFluidBlock(fluid, new BlockFluid(ClassMod.FLUID), "fluid"); ClassMod.FLUID_BUCKET = registerBucket((new ItemBucket(ClassMod.FLUID_BLOCK)).setContainerItem(Items.BUCKET), "bucket_fluid").setCreativeTab(CREATIVETAB); } private static Item registerBucket(Item setContainerItem, String name) { setContainerItem.setUnlocalizedName(name); setContainerItem.setRegistryName(name); GameRegistry.register(setContainerItem); return setContainerItem; } public static Block registerFluidBlock(Fluid fluid, Block fluidBlock, String name) { Block block = GameRegistry.register(fluidBlock, new ResourceLocation(Minecraft_mod.MOD_ID, name)); ClassMod.proxy.registerFluidBlockRendering(block, name); fluid.setBlock(fluidBlock); return block; }
I do not really understand why this does not work in your code but it maybe due to incompatibility...
You can use that, but I no sure if it will work...
- JM
-
Hello...
Thank you for this answer!
I see, this method is in the PathNavigate, in the PathNavigateGround and in the PathNavigateSwimmer... In the EntityAISwimming, I found that:
((PathNavigateGround)entitylivingIn.getNavigator()).setCanSwim(true);
The "getNavigator" is register in the EntityLiving. It's possible to change the boolean value if an entity is in my fluid?
If yes, where I can place this method?
-
Hello, your fluid has the water's texture?
-
Hello, no this isn't resolved but with the help, I modified the respiration in the liquid.
On 8/18/2018 at 5:47 PM, jabelar said:It's pretty tough actually, you have to sort of replace a lot of vanilla movement code. I actually submitted a PR to add ability for custom fluids to automatically do this, but the Forge gods are really busy with 1.13 right now. Some day...
Here is how I did it using events though: http://jabelarminecraft.blogspot.com/p/minecraft-modding-custom-fluid-blocks.html
It is intrusive and a lot of coding but it is possible to make your custom fluids behave mostly like vanilla.
With that, I add to my fluid the finishes as the drown and the bubbles.
Now the problem is the entity's motionY when she jump and the water or lava movement for the player.
In the EntityLivingBase for the entity I compare the levitation potion but it's doesn't work...
Can you tell me where is the class with the swimming for the entities and the player please.
It's very important for me!
- JM
-
Hello, your block is a block with a TileEntity or not?
-
Hello, in your clientproxy, you must to add this:
ClientRegistry.bindTileEntitySpecialRenderer(TileEntity.class, new TileEntityRenderer());
- JM
-
Ah yes there are a little forgetfulness for my part... I corrige that.
For the version, I use forge 1.9.4 because for mi the newest version: 1.10, 1.11 and 1.12 don't work...
-
For the player, I use this:
Minecraft mc = Minecraft.getMinecraft(); boolean jump = mc.gameSettings.keyBindJump.isKeyDown();
if (jump == true) { entity.motionY = 0.10000001192092896D; }
The problem for the player is the speed, it's possible to slow down look like the slowness potion?
And for the other EntityLiving, I don't know because if I use:
entity.motionY = 0.10000001192092896D;
It work, but they can't move. For example, if I have in my hand a carrot and the entity in my custom fluid is a pig. The motionX and motionZ equal 0;Thank you for your answer!
- JM
-
Hello, I create a custom Fluid with a custom material, but if I wrote this topic, it's because I don't know how create the swimming and the slow movements in the material. I sought in the EntityLivingBase in the moveEntityWithHeading and in the onLivingUpdate but it doesn't work. Can you help me for this problem?
Thank you so much for your help!
-JM
Create a tool with wire look like fish hook
in Modder Support
Posted
Hello, this is my code for the render!
- JM.