Started by
QB
on
Topic category: Help with Minecraft modding (Java Edition)
So I wanted to force players to jump if they have something in their inventory, is that possible so far?
Topic category: Help with Minecraft modding (Java Edition)
So I wanted to force players to jump if they have something in their inventory, is that possible so far?
I don't think so, the "if they have something in their inventory" part is possible (obviously) but the force to jump part really isn't. the closest thing I can think of is temporarily putting a slime block under the players feet, a piston under the slime block then activating the piston, then removing all of that when finished.
Ah, thank for the reply, I'll scrap the idea.
ur welcome :3
anyway, it's not possible to force a player to jump even without using mcreator, so don't feel bad.
Ok, thanks a lot, I'll keep that in mind_ :)
you can make the target player accelerate upwards to produce a jumping effect. Just use a "Custom Code snippet" procedure block and put this "entity.motionY += 0.1d;" in.
Hmm, I did what you instructed, but it doesn't seems to work, the gradle task failed, thanks anyway :)
D:\my stuff\RWAS Resources\RWASWorkspace\build\sources\main\java\net\mcreator\rwas\MCreatorSheathedFatesEndRangedBulletHitsBlock.java:51: error: illegal start of expression
}/entity.motionY+= 0.1d/if(entity instanceof EntityPlayer)
^
D:\my stuff\RWAS Resources\RWASWorkspace\build\sources\main\java\net\mcreator\rwas\MCreatorSheathedFatesEndRangedBulletHitsBlock.java:51: error: illegal start of expression
}/entity.motionY+= 0.1d/if(entity instanceof EntityPlayer)
^
D:\my stuff\RWAS Resources\RWASWorkspace\build\sources\main\java\net\mcreator\rwas\MCreatorSheathedFatesEndRangedBulletHitsBlock.java:51: error: not a statement
}/entity.motionY+= 0.1d/if(entity instanceof EntityPlayer)
^
D:\my stuff\RWAS Resources\RWASWorkspace\build\sources\main\java\net\mcreator\rwas\MCreatorSheathedFatesEndRangedBulletHitsBlock.java:51: error: ';' expected
}/entity.motionY+= 0.1d/if(entity instanceof EntityPlayer)
^
D:\my stuff\RWAS Resources\RWASWorkspace\build\sources\main\java\net\mcreator\rwas\MCreatorSheathedFatesEndRangedBulletHitsBlock.java:52: error: not a statement
((EntityPlayer)entity).inventory
^
D:\my stuff\RWAS Resources\RWASWorkspace\build\sources\main\java\net\mcreator\rwas\MCreatorSheathedFatesEndRangedBulletHitsBlock.java:52: error: ';' expected
((EntityPlayer)entity).inventory
^
D:\my stuff\RWAS Resources\RWASWorkspace\build\sources\main\java\net\mcreator\rwas\MCreatorSheathedFatesEndRangedBulletHitsBlock.java:52: error: not a statement
((EntityPlayer)entity).inventory
^
D:\my stuff\RWAS Resources\RWASWorkspace\build\sources\main\java\net\mcreator\rwas\MCreatorSheathedFatesEndRangedBulletHitsBlock.java:52: error: ';' expected
((EntityPlayer)entity).inventory
^
8 errors
:compileJava FAILED
Did I do something wrong?
Maybe if you pasted a screen shot of the procedure? Judging by the error output it looks like you didn't put in the semicolon at the end of the statement.
sorry because I answer this a bit late, here is the screenshot of the procedure after I added a semilocon at the end of the statement (but it still doesn't work)
procedure: https://imgur.com/tWrpL23
You left forward-slashes at the start and end of the code snippet! Those are there because the default text is a multi-line comment that says "code".
Ive tried adding that command too and it just doesnt work and gets compilation errors, im kinda new to the program i have no idea if i messed something up, yes i tried putting the ; but it still doesnt work
I tried doing this too but it gave me a warning saying that the following items don't compile properly and the only item on the list was the procedure
https://imgur.com/a/3xsQiK9
this is what heppned