How to make a tesla coil Like Block [Scrapped Idea]

Started by Bearcraft359 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Nov 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make a tesla coil Like Block [Scrapped Idea]
Thu, 12/12/2024 - 00:35 (edited)

So I am making a mod for a server I play on with my friends so that I can protect my base. So I made a block that when powered by redstone it starts a particle effect around an 5 block area(not the problem). So I then tried to make it do 0.1 damage 100 times and make it do the damage every half a second unless you are holding a specific item. I made that easily, but now I'm having troubles Connecting it to the main code because when I do and try to make it the trigger of the block it says missing dependencies.

 

Ps. I would add a picture if I could sorry I couldn't.

Edited by Bearcraft359 on Thu, 12/12/2024 - 00:35
Joined Dec 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It's probably because you…
Sun, 12/01/2024 - 23:05

It's probably because you are using "provided itemstack" to check the item a player has, in this case you should use "item in the main hand of the event/target entity"

Joined Nov 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Sorry I Wasn't Paying…
Thu, 12/12/2024 - 00:00

Sorry I Wasn't Paying Attention To this And Just Scrapped The Idea Entirely.