how to make a Spike ability

Started by Cr@ezir on Sun, 10/02/2022 - 23:28

Topic category: Help with modding (Java Edition)

Last seen on 22:59, 10. Nov 2022
Joined Aug 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
how to make a Spike ability
Sun, 10/02/2022 - 23:28

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.

Last seen on 11:34, 9. Oct 2022
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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]

Last seen on 11:34, 9. Oct 2022
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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

Last seen on 22:59, 10. Nov 2022
Joined Aug 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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.