What's new
Craft custom items by placing blocks!

Craft custom items by placing blocks! 1.0

Required Dependencies
Array
Supported Versions:
- Minecraft 1.12 & 1.13+
- MythicMobs 4.5.7+

In this pack you will get:
- Mobs
- Skills
- Items

This resource lets you create custom recipes with actual blocks that let you reward:
- A summon (Spawning a boss or an ally)
- A mythicitem / command
- Whatever you can think of


Video tutorial:
Text tutorial:

0. Build the 3x3 recipe and see the blocks used.
1. Add this inside M (LoteSkills)

Be sure to use there pages to get the correct name for the block!
https://github.com/Bukkit/Bukkit/blob/master/src/main/java/org/bukkit/Material.java
https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Material.html

Add this inside M
Code:
CheckBlocksVV[BlockName]M:

  Conditions:
  - onblock [BlockName]
  Skills:
  - modifytargetscore{o=[BlockName]M;a=ADD;v=1} @Parent
  - command{c="minecraft:tp <mob.uuid> ~ ~1 ~"} @self

Add this inside
A1
Code:
CheckBlocksVV[BlockName]A1:
  Conditions:
  - onblock [BlockName]
  Skills:
  - modifytargetscore{o=[BlockName]A1;a=ADD;v=1} @Parent
  - command{c="minecraft:tp <mob.uuid> ~ ~1 ~"} @self

Add this inside
A2
Code:
CheckBlocksVV[BlockName]A2:
  Conditions:
  - onblock [BlockName]
  Skills:
  - modifytargetscore{o=[BlockName]A2;a=ADD;v=1} @Parent
  - command{c="minecraft:tp <mob.uuid> ~ ~1 ~"} @self

Add this inside
C
Code:
CheckBlocksVV[BlockName]C:
  Conditions:
  - onblock [BlockName]
  Skills:
  - modifytargetscore{o=[BlockName]C;a=ADD;v=1} @Parent
  - command{c="minecraft:tp <mob.uuid> ~ ~1 ~"} @self

You will need to add this for every different block you want to add.


2. Now go to the CheckBlocks of each section (M/A1/A2/C) and add this code
For M
Code:
- skill{s=CheckBlocksVV[BlockName]M}
For A1
Code:
- skill{s=CheckBlocksVV[BlockName]A1}
For A2
Code:
- skill{s=CheckBlocksVV[BlockName]A2}
For C
Code:
- skill{s=CheckBlocksVV[BlockName]C}

3. You will now need to add this messages inside the TestingLote Mob so it tells you the values you need to use for the recipes.

Code:
  - message{m="&c>> &e[Material] in the M<&co> &a<mob.score.[BlockName]M> "} @PlayersInRadius{r=25} ~onTimer:200

  - message{m="&c>> &e[Material] in the A1<&co> &a<mob.score.[BlockName]A1> "} @PlayersInRadius{r=25} ~onTimer:200
  - message{m="&c>> &e[Material] in the A2<&co> &a<mob.score.[BlockName]A2> "} @PlayersInRadius{r=25} ~onTimer:200
  - message{m="&c>> &e[Material] in the C<&co> &a<mob.score.[BlockName]C> "} @PlayersInRadius{r=25} ~onTimer:200

4. Create a crafting zone with /mm m s CreateCraftingZone , the diamond block will be the center of the recipe area, now, build your recipe. There will be messages in the chat, you need to wait 10~ seconds until they stop changing. Those numbers are the value for your blocks so the resource knows where they are in the 3x3 area.

5. Having the values, go where it says "Recipes" in the Skill files and add this template. Its a template, you need to adjust it to your situation.


Code:
RecipeName:

  Cooldown: 10
  LegacyConditions:
  # Here goes everything that had a value greater than 1 in the values
  - mobscore [BlockMaterial]M;=3
  - mobscore [BlockMaterial]A1;=4
  - mobscore [BlockMaterial]A2;=4
  Skills:
  - skill{s=CraftAnimation}
  - delay 85
  - message{m="&c>> &eYou crafted nothing! "} @PlayersInRadius{r=25} ~onTimer:200
  # ^Here^ goes the action done when the recipe is complete
  - delay 20
  - remove @self


6. Add this inside TestingLote skills
Code:
- skill{s=RecipeName} @self ~onTimer:5

7. Reload the plugin and you are done!

Code:
/mm m s CreateCraftingZone
Creates a crafting zone right where you are standing.
Code:
/mm m s RevealCraftingZone
Reveals the crafting zone in case you forgot where it is.
Code:
/mm m s DeleteCraftingZone
Deletes all crafting zones in a 20 block radius.

My discord if you want to contact me or need help with this resource:
https://discord.gg/k24ajC5
  • Like
Reactions: Barney
Author
Nexto
Views
317
First release
Last update
Rating
5.00 star(s) 1 ratings

More resources from Nexto

Latest reviews

Excellent Ressource!
Top