Started by
BlazingGreenFire
on
Topic category: Help with Minecraft modding (Java Edition)
Hello so in my mod I have a dimension and an item. What I am trying to do is make it so that when I hit an entity (player or mob) with my custom specific item, it will teleport that entity to the custom dimension I choose and to break the item I hit them with. The item is a scroll and the idea is basically that I hit them with the scroll of banishment, and they are teleported to the dimension, leaving some particles behind, and the scroll breaks.
Ok, I made it so the thing happens when I hit a mob, I made the main trigger, "when entity hit with item" but the only problem is that it teleports me instead of the entity
sorry it is Entity Attacked not Entity is hurt
Oh ok, I did put that previously but then changed it before getting to test it, I'm going to check if it works
Yeah so it works, only problem still is that it teleports me and not the entity I hit
on trigger entity is hit, you are source entity not event
let me see your procedure
switch dimension block needs to be event target entity
Source entity- Entity that hits mob
Event Target entity- Entity that was affected by source entity
Also is there a procedure I can put to teleport the entity/player to specific coords the second they enter the dimension because the dimension is pretty much void and I want them to spawn on top of the one tiny island floating when they are banished/enter the dimension
with commands maybe, or with the plug-in called Better Procedures there is a procedure block called switch dimension of Entity to:Dimension spawn height: #
https://mcreator.net/plugin/71402/fly-procedures
Alright thanks, but one thing still, I changed the thing to entity but now the only thing that changed is that I don't get teleported anymore, but the entity also doesn't still
let me see your procedure again, and if you can a video of the error
There's my procedure, if you need me to record a video of the error I can do that if the screenshot isn't enough