Started by
akisephila
on
Topic category: Help with Minecraft modding (Java Edition)
I understand that this can be done with the raytracing blocks but not only do the raytracing blocks seem nigh impossible to use (I can't even grab the XYZ of where the player is looking, because the "Look [X/Y/Z] position of [Event/Target Entity]" is a number block and can't be used with logic "AND" blocks), there are also zero tutorials that help me in the slightest, and all other forum topics I have checked on this matter have been useless.
Please help.
Edited by akisephila on Wed, 06/30/2021 - 01:15
@Sajevius
try breaking out of loop (repeat [n] times) by putting "break out of loop" after procedure setting "entity_found" = true or after the last procedure you put after it
By the way, im pretty sure klemen is a bot, i think? I dont know but what he mostly says is, here are the tutorials! With the same link each time
then you obviously only know him from within the website and only from those kinds of replies from him, Nannerbz :P
just coz he puts the same link almost everytime when someone asks for help doesn't always mean it's automated by a bot tho. have you heard of comment templates (a more likely possibility)? or clipboard? (i think)
look, i ain't gonna be biased towards/defending Klemen or anything. i know, the tutorials aren't helpful sometimes that it annoys me a bit seeing other members who were asking for how to actually do something (usually more complex) not being satisfied with the answer coz that's not what they were looking for, and no offense... but saying that a person who mostly sticks to sharing 1 tutorial playlist (which is helpful for people not looking for a solution to do complicated stuff) is a bot seems like a shallow thought inconsiderate of other valid possibilities and that you only know him within this website/just don't know him well, and it could be dangerous or unnecessary when shared publicly like this (y'know? like, tell me how it'll help anything). if you think of something suspicious about a member like being a bot or something, just a friendly suggestion to not say anything about it publicly as it might bring up unnecessary attention or controversy; keep it to yourself, or contact someone who can help with resolving that kinda issue or clearing things up to destroy your potentially false doubts. oh, and if he's a bot, were the moments that he was able to legit comment on the website perhaps fake?(https://mcreator.net/comment/133286#comment-133286, https://mcreator.net/comment/173769#comment-173769, https://mcreator.net/comment/182165#comment-182165, https://mcreator.net/comment/182354... the list goes on)
let's not take this far tho. I don't want this to be a heated debate, haha
@Sajevius I made it so that it breaks out of the loop after spawning the hostile variant, and it works!!
Unfortunately, it still activates whenever I look at any part of the entity, instead of just the head. I thought making the Y coordinate for the rd +2 would change that but apparently not.
Almost there, though! Any advice?
sadly i don't think there's a way to detect for a mob's head within a specified coordinate, as the "head" part of any mob is most likely not defined in code such that it could be accessed. there's technically a "head" for a mob but it's for the model and idk if it can be gotten somehow. that's why i did "get nearest entity in square cube" as a workaround, otherwise it'd be impossible any other way. searching online, i also didn't find any solution to that, code or otherwise. but anyways, at least the basic idea works and hopefully it's okay for you! i mean, that could make for slightly more difficulty on your mod :D
Ah. I guess I may have to forgo doing the raytracing entirely, then, since the mob I'm creating can be traded with (and with the current method of angering it upon looking at it, it makes it impossible to trade with..)
Thanks, though.
@Sajevius so im trying to make it so when you right click with a item it swaps your position with the entity you are looking at can you help me with that
Can you send me the procedure you did? or an image? I'm not getting!
I'm doing it so that when I look at the entity it turns into another.
Thanks
It's not working for me :(
I am making a mod with a same type of mob that does this when you look at it, and its still confusing to me lol