Damage Source Plugin 1.4.4 [Forge 1.16.5, 1.18.2, 1.19.2, Fabric 1.19.2]

Upvotes: 10
Supported MCreator versions
2022.3
EAP 2022.4.52117
EAP 2023.1.04717
Tags / plugin type
Procedures
Damage Source Plugin
About the plugin

This plugin adds procedures enable to create custom damage source

1.4.0 Update:

Procedures:

Added extended "Spawn Entity Procedure"

 

Examples:

This procedure enables spawning entities with modifying their parameters

 

Features:

Local Variables:

damage source variable

 

Procedures:

Add modifiers to a damage source variable

Create custom damage source

Create custom damage source by source entity

Create custom damage source by immediate source entity of source entity

Create damage source

Create damage source by source entity

Create damage source by immediate source entity of source entity

Get UUID of entity

Spawn entity

Deal damage to entity

Get entity from UUID

Spawn entity (extended procedure)

How to use:

  1. Create a new damage source variable
  2. Set the damage type and the modifiers as shown in the image
  3. Use a Deal Damage Procedure to entity (The procedure added by this plugin)

Information:

This plugin supports Forge 1.16.5, 1.18.2, 1.19.2 and Fabric 1.19.2

MCreator version need to be 2022.3 or above

License
MIT License

Plugin downloads
Attachment Size
Damage Source Plugin 1.4.430.99 KB 30.99 KB

Comments

And this Plugin makes the Deal Damage Procedure not usable in 1.18.2...

And the List is in 1.18.2 completely empty and there no Local Variable to create a custom damage source.

And this is why you should make Support for 1.18.2 so you can use the Deal Damage Procedure (not with the translateable text.)

Or you could make exactly the same Procedure Block like the Deal Damage but with the Damage Source and add it seperatly instead of replacing the normal Deal Damage Procedure.

an error happens when i add "bypass_enchantments" modifier:

> Task :compileJava FAILED
C:\Users\*****\MCreatorWorkspaces\project_drakeborn_tweaks\src\main\java\sakeplays\projectdrakeborntweaks\procedures\WoundedWingsOnEffectActiveTickProcedure.java:40: error: cannot find symbol
woundedWingsDamageDeal = woundedWingsDamageDeal.bypassEnchantments();
^
symbol: method bypassEnchantments()
location: variable woundedWingsDamageDeal of type DamageSource
1 error
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileJava'.
> Compilation failed; see the compiler error output for details.
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 2s

Thank you for the wonderful mod , I've been waiting for it for so long , but i I have a problem in 1.16.5 forge ,
i installed the plugin , when i use "open screen gui " procedure It shows me an error , when i remove the pluge , the procedure work properly , this is the error message shown below .

> Task :compileJava FAILED
ure.java:88: error: cannot find symbol LevelAccessor world = (LevelAccessor) dependencies.get("world");
^
symbol: class LevelAccessor
location: class net.mcreator.handcuffes.procedures.OpenguiProcedure
ure.java:88: error: cannot find symbol LevelAccessor world = (LevelAccessor) dependencies.get("world");
^
symbol: class LevelAccessor
location: class net.mcreator.handcuffes.procedures.OpenguiProcedure
2 errors
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileJava'.
> Compilation failed; see the compiler error output for details.

Hey guys, I'm curious about this plugin: What things does this plugin let you do (like, things you couldn't do without it)?

I don't know how possible this is, but is there a way to put a source on an potion effect?

Hey umm I think there is something wrong with the "Create damage source of # by source entity" when ran under a "Entity attacked" procedure as it keeps crashing my game for some reason. Mind checking it out to make sure it's just an issue on my side?
https://user-images.githubusercontent.com/94686352/211932252-a597393e-83ca-4d03-9c1a-d7a331919825.png

Can you add Spawn entity but with pitch, yaw, or velocity?

Hello! I'm a bit of a simpleton, can you explain how exactly this plugin works and how to use it in-depth?
I know you gave some instructions in the bottom, but I really want to understand how this plugin ticks because the current explanation is too vague for my tiny little head to wrap around. Or I'm too tired. Thanks in advance!