how to make a Spike ability

Started by Cr@ezir on

Topic category: Help with Minecraft modding (Java Edition)

Joined Aug 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how to make a Spike ability

Hello, I'm trying to make a Undertale's mod and I'm currently working on sans and I made a transformation, but I need to make an ability that pulls bones out of the floor in front of you and they damage the player. If you find a way to do this pls tell me, thank you.

Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
There is a spike entity…
Tue, 10/04/2022 - 11:29

There is a spike entity already ingame that is used by the evoker umm if you can data merge a bone onto it and make it invisible.. [all in a function that can be triggered]

Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
/summon minecraft:entity ~ ~…
Wed, 10/05/2022 - 02:51
/summon minecraft:entity ~ ~ ~ {CustomName: ‘”bone”’}
/replaceitem entity @e[type=evoker_fangs,nbt={CustomName: ‘”bone”’}] slot.armor.head minecraft:bone
/effect give @e[type=evoker_fangs,nbt={CustomName: ‘”bone”’}] minecraft:invisibility

Put this in a function

Joined Aug 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It did not work; perhaps…
Wed, 10/05/2022 - 22:44

It did not work; perhaps could you send me a more descriptive way to do this? I made a function and copy and pasted that code in but when I made a process to run function it will not work.