ranged items and other stuff i need to make

Started by RedCorr on

Topic category: Help with modding (Java Edition)

Last seen on 16:59, 27. Aug 2022
Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
ranged items and other stuff i need to make

First of all, i need to make elevators that will teleport you to the other block-elevator, where it will be upper than first block.
Or even a blower, that will blow you up in the air, to the second floor.
no, its not going to act like creeper, but it will act like ventilator.

Second, i want to make animations for item reloading or boss appearing.

Third, i want to make ranged items that will go through the enemy.

How can i do all of that?

Last seen on 03:10, 19. Feb 2022
Joined Jun 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
for first, I think blower is…
Fri, 06/19/2020 - 14:33

for first, I think blower is possible by adding y velocity to the player.

for second and third, I don't think it is possible without Java

Last seen on 16:59, 27. Aug 2022
Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
huh Well, i can make mod…
Fri, 06/19/2020 - 21:13

huh
Well, i can make mod with many items, that do animations, when they changing, but ok.
Also, whats up with first?
Can you do example?

Last seen on 03:10, 19. Feb 2022
Joined Jun 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
This, for example, will…
Sat, 06/20/2020 - 01:28

This, for example, will perform a small jumping action to yet the player about 3 blocks tall.

Last seen on 00:05, 19. Apr 2024
Joined May 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you can achieve the third by…
Sat, 06/20/2020 - 02:17

you can achieve the third by doing something hacky

Last seen on 04:35, 17. Jan 2021
Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
To extend @CrispyChip (will…
Sat, 06/20/2020 - 02:18

To extend @CrispyChip (will need java knowledge);

First of all, i need to make elevators that will teleport you to the other block-elevator, where it will be upper than first block.

You can iterate up/down y positions from the block and check for the keybinds, jump and sneak. Do this all on block collision.

 

Third, i want to make ranged items that will go through the enemy.

Just don't remove it if it hits an entity. Example below,

    protected void onImpact(RayTraceResult result) {
        if (result.getType() == RayTraceResult.Type.ENTITY) {
            Entity entity = ((EntityRayTraceResult)result).getEntity();
            entity.attackEntityFrom(DamageSource.causeThrownDamage(this, this.getThrower()), (float)5);
        }
        else {
            if (!this.world.isRemote) {
                this.world.setEntityState(this, (byte) 3);
                this.remove();
            }
        }
    }

 

Last seen on 16:59, 27. Aug 2022
Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
hmmmmmmmmmm I will save…
Sat, 06/20/2020 - 22:39

hmmmmmmmmmm
I will save image.