Make Custom Mobs SPAWN NATURALLY [2] || Minecraft Data Pack Tutorial

  Рет қаралды 47,062

Timber Forge

Timber Forge

Күн бұрын

Пікірлер: 126
@TheJfkeenan
@TheJfkeenan 4 жыл бұрын
dude you don't know how helpful these videos are
@rajsamal996
@rajsamal996 4 жыл бұрын
Yes!!!!!!!
@heinrichhatskil6553
@heinrichhatskil6553 4 жыл бұрын
Please never stop doing these videos. They are so so helpful
@lukidon8715
@lukidon8715 3 жыл бұрын
Your like the hero we need but dont deserve, I'm working on a custom skyblock map that requires me to make alot of custom mob data packs, this was so helpful!
@steven.2602
@steven.2602 3 жыл бұрын
**IMPORTANT FOOTNOTE ON FAKE PLAYERS** TL;DR: _ALWAYS_ add an impossible character (I recommend ".") to your fake players. Since the fake player only appears if no player matches the name given in the selector, there is always a small chance that your "fake player" may have the exact same name as a real player that just so happens to be playing with your data pack, whether it be on singleplayer or multiplayer. Fixing this is easy. Since some characters aren't allowed to be put in player names, adding them to your fake player will ensure that it will never be mistaken as a real player. example: If i wanted a fake player called "health", I'd name it ".health" so that if there is a real player with the name of "health" using my data pack, it will not be mistaken as the real player. Otherwise, this is a super helpful tutorial, thank you for all the work you put in for the MC command community, it is truly amazing what you do!
@icebuds7455
@icebuds7455 4 жыл бұрын
for everyone that didnt understand: dummy players are basiclly variables that hold a number, that number is changable and can be accesable. incase u want to have a variable that holds a string or an array use data storage (u can use numbers in there too its just less efficent).
@smartntboy2474
@smartntboy2474 4 жыл бұрын
O yes thankssss this makes it so much easier lmao can’t wait for the custom animations video
@alvhawk4461
@alvhawk4461 2 жыл бұрын
idk if u talked about it in a video already but predicates are really good for random chances because you can just make a file with any percent u want and the command will work that percent of the time its really helpful for things like spawning or even attacks if you dont want them to happen like clockwork but rather a stuttering clock
@manuelocana8074
@manuelocana8074 4 жыл бұрын
I found an actual random way of spawning the mob: create a predicate with the following: { "condition": "minecraft:random_chance", "chance": 0.5 } This will generate a random number from 0 to 1 and if that number is greater that the "chance" it will return true, so in this case this is a fifty fifty chance, so the mob will spawn 50 percent of the time. Then write in a loop function: execute as @e[tag=!spawned, type=minecraft:YOUR_MOB] run function namespace:spawn_chance So this will execute as the mob you want to replace with your custom mob and will run the spawn_chance function In the spawn_chance function you simply put: tag @s add spawned execute if predicate namespace:random_fifty at @s run function namespace:spawn This will tag the mob so it wont repeat the same function, and will run the spawn function, wich will do the actual spawning. In that function you want to put: summon YOUR_CUSTOM_MOB tp ~ ~-300 ~ kill @s
@coledog10
@coledog10 2 жыл бұрын
This was a lifesaver, thank you
@Austeja608
@Austeja608 Жыл бұрын
i doesnt work
@gabegaming9222
@gabegaming9222 4 жыл бұрын
Thank you so much! I will try this out as soon as possible!
@rajsamal996
@rajsamal996 4 жыл бұрын
Ok 👌:-)
@dpdprincess
@dpdprincess 4 жыл бұрын
I was waiting for it. Thanks
@sebastiansolis8278
@sebastiansolis8278 4 жыл бұрын
You can also use predicates to give each scanned mob a random chance of becoming a custom mob :)
@TimberForge
@TimberForge 4 жыл бұрын
Yup. For this method I just wanted to keep it to commands though, cause i dont usually need additional randomness since the scanning selection order is random already.
@omnimorris
@omnimorris 4 жыл бұрын
So incredibly helpful! Thank you so much! Can’t believe I wasn’t already subscribed
@jdawgtor
@jdawgtor 4 жыл бұрын
This was great! Thanks for showing this. :D
@jdawgtor
@jdawgtor 3 жыл бұрын
@@hank1398 Yes, hello! Glad you enjoyed it :D
@Stulejon
@Stulejon 4 жыл бұрын
Dude, I mean, you're a fucking legend. Thank you for this, you unlocked to me so many possibilities
@sixtealbisetti2480
@sixtealbisetti2480 3 жыл бұрын
The datapack template works but at the moment I change one value it immediately stops working, even if I undo the change afterwards. Playing in 1.16.5
@louislemur
@louislemur 4 жыл бұрын
Great dude keep up the great work!
@sirwaddlesvonwaddles4393
@sirwaddlesvonwaddles4393 3 жыл бұрын
Can you further explain how I can randomly spawn multiple different custom mobs?
@random_user2469
@random_user2469 4 жыл бұрын
yesss thankss!!!... BUT could you explain how make mobs spawn naturally at structures?
@alesandrodemoor
@alesandrodemoor 4 жыл бұрын
Really helpful! But is there a way to make multiple variants of a regular mob (for example 4 variants of a zombie) and make them all naturally spawn by swapping all 4 from zombies?
@TimberForge
@TimberForge 4 жыл бұрын
You should be able to instead of just spawning on 0, spawn on 1,2,3 and 4. So anywhere where it detects on 0, duplicate the commands for other scores.
@djimie
@djimie 2 жыл бұрын
Hey! I did everything you said, but its not working. My custom mob is a ghost and i want it to spawn at a 1/20 chance with phantoms. i did everything you said but it wont work. Is there maybe a step i am missing? I thought it might have been something with the not_mob1 tag, but idk. Please help!
@Cleocyde
@Cleocyde 3 ай бұрын
is there a way to do that without replacing existing blocks? I'm making a map, and mobs wont spawn naturally, because the entire map will be filled with light blocks
@kaley2449
@kaley2449 4 жыл бұрын
Thank you for making this video. I am Spanish and I did not understand it completely, but I will. If someone who knows Spanish help me, I will get stuck in the execution.
@spikeanimate3742
@spikeanimate3742 Жыл бұрын
Hey I am trying to make two of these packs but when I put them in game with each other only one of them works.
@moixalaYT
@moixalaYT 2 жыл бұрын
what are the commands? im trying to make a smp where i need some naturaly mobs i need the commands so i can perform them
@tommytommy9687
@tommytommy9687 2 жыл бұрын
Wait, so if I use it on zombie, won't the custom mob will spawn from a spawner too?
@Nanodelabarra
@Nanodelabarra 4 жыл бұрын
thanks man
@TheOnlyBoswell
@TheOnlyBoswell 3 жыл бұрын
Ive followed every step, and so far all that happens is maybe a few zomvified piglins disappear, my custom mob never spaws, any help? Thanks:)
@hank1398
@hank1398 3 жыл бұрын
Is there anyway to put this into command blocks?
@TimberForge
@TimberForge 3 жыл бұрын
I recommend you make a data pack, it’s not that hard and there are many tutorials. But if you really need to do it in command blocks, then you can create a long repeating chain for the loop function, the load function is a chain you run manually, and then every time you need to run a function, you would have to repeat the execute command that runs on the entity for every single command you run. For example if there are 5 commands in the summon function, and you are running the summon function at all pigs, you would need to make a chain that is activated by your loop (by setting a redstone block or something) and each command in the summon chain would have the execute part of the command that makes it run as pigs.
@hank1398
@hank1398 3 жыл бұрын
Thx
@nickysilverstein4113
@nickysilverstein4113 3 жыл бұрын
it was working earlier but now its not, i think the tp command is tping the spawned (custom) zombie instead of the one that spawned from the egg/naturally. I spawn the first one and it takes no knockback for a second and then it does, this doesn't happen for the others.
@nibblecat1223
@nibblecat1223 4 жыл бұрын
Its not working. I suspect it has some sort of problem with the scoreboard? It doesn't show up in my screen, I don't think it ever starts.
@miguelmiguel8128
@miguelmiguel8128 2 жыл бұрын
Is there a way to make the "scanned" mobs, those with the tag, naturally despawn ? Because giving them a tag makes them persistent and it increases lag to have hundreds of persistent mobs...
@TimberForge
@TimberForge 2 жыл бұрын
Yeah sure just tp them into the void when past a range of the player. Detect them with the tag and entity type target selectors
@worsethanem3660
@worsethanem3660 2 жыл бұрын
do you put all the commands in a repeating command block?
@J_TheUsername
@J_TheUsername 4 жыл бұрын
Amazing video. If I may ask, is there a way to make the data pack detect the custom mob? Let's say I want to make a custom mob replace another custom mob, what should I enter in the loop.mcfunction?
@TimberForge
@TimberForge 4 жыл бұрын
Just detect the tag.
@meepthewizard1240
@meepthewizard1240 4 жыл бұрын
yesssssss
@LemonChad
@LemonChad 4 жыл бұрын
Here's another method: Use predicates with the type random_chance
@sonandheir13
@sonandheir13 4 жыл бұрын
if i am adding mobs for different dimensions like nether and the overworld, what would i have to do for the execute/loop function command?
@TimberForge
@TimberForge 4 жыл бұрын
You could add a predicate for detecting if entities are in certain dimensions. I have an example somewhere in my portal video.
@B.R.I.N.E.
@B.R.I.N.E. 3 жыл бұрын
Hi Timber Forge, I Wanted To Know That I Am Creating A Custom Villager Datapack In Which They Spawn Randomly In You World, But I Can't Figure Out How Can I Make Them Spawn In Randomly.
@clancysleepovergetyourblankies
@clancysleepovergetyourblankies 3 жыл бұрын
Thats basically what he explains in the video xD
@jakubkarel2336
@jakubkarel2336 4 жыл бұрын
Hi, i recently started making datapack about illagers, because i wanted some challenge, i made models, everything, now i would be glad if you are making animation tutorial and just little thing, i set model to the head slot, so when mob is looking up, the whole model will just look strange, if you know what i mean, it just angle itself and its really stupid looking, will you make video about that? Or we can write in dm, i would be pretty glad ❤
@TimberForge
@TimberForge 4 жыл бұрын
Not sure what you mean by stupid looking. Is your mob not invisible and the head sticks out? Is it just not looking up and you want it to look ip?
@TimberForge
@TimberForge 4 жыл бұрын
Animations will come out in the fourth episode most likely.
@jakubkarel2336
@jakubkarel2336 4 жыл бұрын
It tilts if you know what i mean, my custom mob is based around custom model data on his head, and he hasnt really no limbs, like when he look up, his whole body will little look up, i seen it in lot of modpacks so i would be glad if you show us how to prevent it, Thanks for your videos, all of datapacks tutorial in yt , you made it most clear and understandable 💪
@TimberForge
@TimberForge 4 жыл бұрын
Ohhh i think i know what you mean. You can make a command which just forces the y rotation of the mob to be 0, try that. Use data merge, and if you dont know the syntax, then use data get to check it.
@vocalsunleashed
@vocalsunleashed 3 жыл бұрын
Won't it look weird when you see a zombified piglin spawn naturally but it disappears and is replaced with the custom mob?
@TimberForge
@TimberForge 3 жыл бұрын
That would only happen if you happen to see the zombified piglin *right* as it spawns, because it only attempts the spawn once as soon as it is found, and then never again. So I dont think it would be any weirder than seeing any normal mob pop out of nowhere.
@saucedbox5138
@saucedbox5138 4 жыл бұрын
Do you know why my load.mcfunction file dosent work?
@TimberForge
@TimberForge 4 жыл бұрын
There are many reasons that could happen. Does your data pack work? Did you add a load.json next to tick.json? Watch the mandalorian lets code for an example.
@v1there
@v1there 4 жыл бұрын
thanks
@poe1235
@poe1235 Жыл бұрын
Mobs can despawn naturally?
@CharlyMachine
@CharlyMachine 4 жыл бұрын
This helped me A LOT. Thank you very much. I'm trying to make Ghast spawn in the End and it worked, but I need your help, please. I replaced enderman (you did it for pigman) but I want it to detect if it's on end stone, so it only works in the End and not with enderman spawned it the overworld.
@TimberForge
@TimberForge 4 жыл бұрын
Dimension might be in the nbt, but if not, i think you can create a predicate to detect the dimension in misode.io. Detecting endstone is easy, in the function that detects if the score matches 0, also add a “if block ~ ~-1 ~ end_stone” into the execute command.
@CharlyMachine
@CharlyMachine 4 жыл бұрын
@@TimberForge Thank you. I modified the spawning line like this: execute if score mob1_count cm_example matches 0 in minecraft:the_end run summon minecraft:ghast ~ ~ ~ and it seems to be working
@jeremiahzagala5608
@jeremiahzagala5608 4 жыл бұрын
Any chance you could share your sublime preferences? I tried setting syntax to java but it still doesnt seem to color coordinate and organize the same as yours, even when i change the color scheme. Thank you :)
@TimberForge
@TimberForge 4 жыл бұрын
I used VS Code in this video with some random mcfunction or data pack extension I found, I might switch to Atom, but idk. I use sublime when editing .json files, nothing I ever open is actual Java code, so it should be set to .json. You could also probably find an mcfunction addon.
@jeremiahzagala5608
@jeremiahzagala5608 4 жыл бұрын
Timber Forge ah ok thank you for the info! When I’ve finished what I’m making I’ll show you! Your videos have been very helpful 😊😊
@rikyprinz4760
@rikyprinz4760 4 жыл бұрын
Is it normal that the summoned mob doesn't move? I tried to summon a polar bear with an armor stand with flint, like you did in the last episode. Anyway thank you
@TimberForge
@TimberForge 4 жыл бұрын
Its movement shouldnt be affected. Maybe go into survival mode and punch it? Make sure its not NoAI.
@Wesley-er7nm
@Wesley-er7nm 4 жыл бұрын
Is there a reason why I can't hold many commands in the loop and mcfunction or can you only have a certain amount of commands?
@TimberForge
@TimberForge 4 жыл бұрын
There shouldnt be a limit, what do you mean? It lags? Or you can’t type it im?
@Wesley-er7nm
@Wesley-er7nm 4 жыл бұрын
@@TimberForge I've figured it out i had my scoreboard wrong
@Wesley-er7nm
@Wesley-er7nm 4 жыл бұрын
@@TimberForge I just forgot to change the comment
@bjarnes.4423
@bjarnes.4423 4 жыл бұрын
thx
@bjarnes.4423
@bjarnes.4423 4 жыл бұрын
If someones function isn't working, check the Minecraft log for errors
@nautica_joestar
@nautica_joestar 4 жыл бұрын
and how do I remove the scoreboard to not show everytime?
@TimberForge
@TimberForge 4 жыл бұрын
Scoreboard objectives setdisplay If you dont specify a scoreboard to display it removes it
@oxign705
@oxign705 4 жыл бұрын
How can u make a specific mob detect a certain biome
@TimberForge
@TimberForge 4 жыл бұрын
That uses predicates, here is a generator for them. misode.github.io/predicate/
@zalmorc5949
@zalmorc5949 4 жыл бұрын
Where is part 3?
@jax3453
@jax3453 4 жыл бұрын
The armor stand 2 commands is only for custom mobs, if I want to summon a common mob like a zombie bit with a full Diamond set, do i have to use those commands?
@TimberForge
@TimberForge 4 жыл бұрын
Nope, the armorstand is for model display. You can just use mcstacker.net and customize from there.
@jax3453
@jax3453 4 жыл бұрын
@@TimberForge wow, super fast, thank you so mucho dude!!!
@jax3453
@jax3453 4 жыл бұрын
@@TimberForge i have been trying but it does not work :(
@TimberForge
@TimberForge 4 жыл бұрын
What part? Giving a zombie armor is pretty straightforward.
@jax3453
@jax3453 4 жыл бұрын
@TimberForge i have done all you told but doesn't work
@jafdell
@jafdell 4 жыл бұрын
Hi! Great tutorial! Do you think It’s also possible to make monsters spawn naturally during the day at full full light levels?
@TimberForge
@TimberForge 4 жыл бұрын
It is definitely possible, but i am not sure of the most efficient way of doing it. One way is to maybe periodically run a summon mob attempt function that uses spreadplayers with armorstands to randomize the spawning location, and then run whatever other checks you want like player distance or biome or whatever to determine if a spawn will happen, then summon mobs on the entities where the check succeeded.
@Soullessangel0
@Soullessangel0 2 жыл бұрын
@@TimberForge Hi, is this possible with optifine random entities? The other option is to make these custom mobs spawn with nametags. Is there a way to do this?
@rodt-A
@rodt-A 4 жыл бұрын
I am trying to make Minecraft trident texture pack, but I can't make it So I want you to tell me how to make Minecraft trident texture pack. Please, I beg of you.
@TimberForge
@TimberForge 4 жыл бұрын
Tridents are hardcoded into the game and cannot be changed, the same goes for armor. You could use a snowball though.
@roostergamerbubsy3d
@roostergamerbubsy3d 3 жыл бұрын
Nice tutorial, but as a Bedrock player, why do all of this command stuff if you can just make a couple of json files and a resource pack and you can even create new mobs with a separate entity string? I hope Java Edition gets something like the Add-on API in the future, Datapacks are extremely limited.
@Heyratdtyrhrn
@Heyratdtyrhrn 3 жыл бұрын
I agree but minecraft java mods make minecraft bedrock addons look like nothing.
@gaminganimators7000
@gaminganimators7000 3 жыл бұрын
What version does this work on?
@TimberForge
@TimberForge 3 жыл бұрын
Should work on any above 1.13, but syntax may need to be shifted around a bit depending on ur version.
@twizzstix2725
@twizzstix2725 3 жыл бұрын
@@TimberForge Does this only work for Java or does it work for Bedrock? I assume it just works for Java but I'm just askin'.
@TimberForge
@TimberForge 3 жыл бұрын
Java
@iheartstriders
@iheartstriders 4 жыл бұрын
This might seem kinda dumb, but I'm allowed to use this code in my data pack right? I'll credit you, Just making sure. Amazing video!
@TimberForge
@TimberForge 4 жыл бұрын
Yep you can
@iheartstriders
@iheartstriders 4 жыл бұрын
@@TimberForge Thanks!
@nicolasarbelaez8943
@nicolasarbelaez8943 4 жыл бұрын
is there any way to put it in commands?
@TimberForge
@TimberForge 4 жыл бұрын
You you mean command blocks yeah, the load function would be a command block chain you run yourself, the loop is a repeating chain set to always active.
@TextroGamer
@TextroGamer 4 жыл бұрын
to put more mobs need to change the mob1_count or what? help!
@TimberForge
@TimberForge 4 жыл бұрын
To add more mobs you dont need to touch anything that is specifically for mob1. Anything that is for mob1 would need to be duplicated. So you would have another fake player that would be mob2_count.
@TextroGamer
@TextroGamer 4 жыл бұрын
@@TimberForge i need to change all the mob1_count to mob2_count? is beacuse this doesn't work for me, yes i put /scoreboard objetives add mob2_count cm_examples. sorry for not understand
@TimberForge
@TimberForge 4 жыл бұрын
Everything you did that applies to mob 1 you need to duplicate for mob2.
@rosek6585
@rosek6585 4 жыл бұрын
SiXtH! Why isn't this video public?
@TimberForge
@TimberForge 4 жыл бұрын
What how did you get here lmao?
@TimberForge
@TimberForge 4 жыл бұрын
Ohh shoot I added it to a playlist lmao frickaroo. Ok i need to not do that. I uploaded it last night and was gonna release it in the day time.
@trilo_boy
@trilo_boy 4 жыл бұрын
@@TimberForge lmao 😁
@nicolasarbelaez8943
@nicolasarbelaez8943 4 жыл бұрын
Buen video, pero se puede hacer que el data pack funcione para más mobs, explico que puede hacer que funcione para varios mobs. Good video, but you can make the data packet operate for more mobs, explain that you can make it work for multiple mobs.
@ishanjha2776
@ishanjha2776 3 жыл бұрын
just make another folder for another mob in function folder
@mostspecialepanchforanchan2434
@mostspecialepanchforanchan2434 Жыл бұрын
Bro just use predicte
@Ganonpork448
@Ganonpork448 4 жыл бұрын
so I did a zombie for my creature and summoning it with command blocks worked fine but the natural spawning didn't work here is the code from each three areas. laod.mcfunction had tellraw @p {"text":"--- Timberforge's Mob Demo Loaded ---","color":"green"} ######## Create Mob Counting scoreboard for all custom mobs in this pack ######## scoreboard objectives add cm_example dummy #### Mob1 #### #### Fake players scores for keeping track of mob1 # Increases every eligible mob scanned scoreboard players add mob1_count cm_example 0 mob1_spawn.mcfunction had #### EXECUTE AS AT ELIGIBLE ZOMBIE ## If matches 0 execute if score mob1_count cm_example matches 0 run summon zombie ~ ~ ~ {Silent:1b,CustomNameVisible:1b,Health:100f,Tags:["space_demon"],CustomName:'{"text":"Space Demon","color":"gold","bold":true,"italic":true}',ArmorItems:[{},{},{},{id:"minecraft:flint",Count:1b,tag:{CustomModelData:823}}],ArmorDropChances:[0.085F,0.085F,0.085F,0.000F],ActiveEffects:[{Id:14b,Amplifier:1b,Duration:9999}],Attributes:[{Name:generic.max_health,Base:100},{Name:generic.movement_speed,Base:0.2},{Name:generic.attack_damage,Base:30}]} execute if score mob1_count cm_example matches 0 run tp @s ~ ~-256 ~ ## Add tag tag @s add not_mob1 ## Increment count scoreboard players add mob1_count cm_example 1 # Reset count execute if score mob1_count cm_example matches 5 run scoreboard players set mob1_count cm_example 0 and loop.mcfunction had # Mob1 zombie Rotation execute as @e[tag=space_demon,type=minecraft:zombie] at @s store result entity @e[type=minecraft:zombie,tag=space_demon,limit=1,sort=nearest] Rotation[0] float 1 run data get entity @s Rotation[0] # Mob1 kill stranded zombie execute as @e[tag=space_demon,type=zombie] at @s unless entity @e[type=zombie,tag=space_demon,distance=0..1] run kill @s # Mob1 Spawn scan execute as @e[type=zombie,tag=!not_mob1,sort=random] at @s run function mob_demo:mob1_spawn yet none of my space demons would spawn off a zombie. Can you help?
@TimberForge
@TimberForge 4 жыл бұрын
I dont have time to look at the whole thing, watch my troubleshooting vid.
@Ganonpork448
@Ganonpork448 4 жыл бұрын
@@TimberForge so I did and then I encountered a new problem when my mob landed in water the armor stand or flint on top died.
@TimberForge
@TimberForge 4 жыл бұрын
Oh yeah i have heard of people having that issue. If you are using a zombie why not just put the item on his head?
@Ganonpork448
@Ganonpork448 4 жыл бұрын
@@TimberForge I did but it wouldn't naturally spawn or move correctly.
@TimberForge
@TimberForge 4 жыл бұрын
I would try to fix that instead of using armorstands. Read the console for the error message or display the scoreboard to check if its working.
@ethanyang6812
@ethanyang6812 4 жыл бұрын
chicken nugget
@TimberForge
@TimberForge 4 жыл бұрын
Chicken wings
@Itaypoo
@Itaypoo 4 жыл бұрын
I want to kiss you.
@Itaythepro1234
@Itaythepro1234 4 жыл бұрын
first
CUSTOM ATTACKS for Custom Mobs [3] || Minecraft Data Pack Tutorial
22:13
Minecraft Skinrender Tutorial! | Blender Tutorial🔥
23:14
ReplayGFX
Рет қаралды 108 М.
Ice Cream or Surprise Trip Around the World?
00:31
Hungry FAM
Рет қаралды 11 МЛН
Perfect Pitch Challenge? Easy! 🎤😎| Free Fire Official
00:13
Garena Free Fire Global
Рет қаралды 81 МЛН
I Survived 100 Days in Minecraft Bedrock Hardcore
36:22
Plushy33
Рет қаралды 638 М.
How Minecraft Mobs Act when you leave…
18:51
EYstreem
Рет қаралды 1,9 МЛН
I Fixed the Dungeons In Minecraft!
21:13
CodeNeon
Рет қаралды 565 М.
Minecraft: Loot Tables in Structures, No Data Block Needed!
11:29
IceMetalPunk
Рет қаралды 3,4 М.
Minecraft, But TNT = World Size
23:11
Firelight
Рет қаралды 53 М.
How to 100% Minecraft
16:05
Blucubed
Рет қаралды 2,9 МЛН
I Recreated Every Removed Minecraft Structure
24:12
Mello
Рет қаралды 6 МЛН
I Transformed a Village in Minecraft
16:09
Athos
Рет қаралды 39 М.