Skip to content

Commit 9c315dd

Browse files
Move extra snippets outside of sub module
1 parent 15a296c commit 9c315dd

8 files changed

Lines changed: 201 additions & 0 deletions

plugins/ExtraSnippets/README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Extra Snippets
2+
3+
### A Snippets extension for the add-on creator brige
4+
5+
This adds many snippets for your add-ons. Some of the snippets are basic components that are common to entitys, blocks, and items, some are different methods of changing properties like disabling damage on entities.
6+
7+
> ⚠️ **<font color="red">Warning:</font>** Intellisense will not show snippets unless there is a comma after the last component like this:
8+
9+
```json
10+
{
11+
"components": {
12+
"minecraft:attack": {
13+
"damage": 5
14+
}, <--
15+
Snippet Intellisense activates here
16+
}
17+
}
18+
```
19+
20+
## Help
21+
22+
If you need any help or want to suggest a snippet, please submit a Github issue [here](https://github.com/THG2009/ExtraSnippets/issues).
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"author": "Twig",
3+
"name": "Extra Snippets",
4+
"version": "1.0.0",
5+
"description": "This extensions adds many snippets for Entitys, Blocks, Items, etx.",
6+
"id": "609489ae-bb05-4264-9d20-cad0d7e4e8d7",
7+
"tags": ["Snippets"],
8+
"icon": "mdi-attachment-plus",
9+
"releaseTimestamp": 1620755291316,
10+
"readme": "https://github.com/bridge-core/plugins/tree/master/plugins/ExtraSnippets",
11+
"target": "v2"
12+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"name": "Snippet: Basic Block Properties",
3+
"description": "This adds basic block properties that almost all normal mobs need",
4+
"fileTypes": [
5+
"block"
6+
],
7+
"locations": [
8+
"minecraft:block/components",
9+
"minecraft:block/component_groups/*"
10+
],
11+
"data": {
12+
"minecraft:destructible_by_mining": {
13+
"seconds_to_destroy": 1
14+
},
15+
"minecraft:destructible_by_explosion": {
16+
"explosion_resistance": 1
17+
},
18+
"minecraft:flammable": true,
19+
"minecraft:friction": 0.4,
20+
"minecraft:display_name": "undefined",
21+
"minecraft:map_color": "#000000"
22+
}
23+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"name": "Snippet: Basic Entity Movement",
3+
"description": "This adds basic entity movement that almost all normal mobs need",
4+
"fileTypes": [
5+
"entity"
6+
],
7+
"locations": [
8+
"minecraft:entity/components",
9+
"minecraft:entity/component_groups/*"
10+
],
11+
"data": {
12+
"minecraft:movement": {
13+
"value": 5,
14+
"max": 10
15+
},
16+
"minecraft:movement.generic": {
17+
"max_turn": 270
18+
},
19+
"minecraft:navigation.generic": {
20+
"avoid_damage_blocks": true,
21+
"can_jump": true,
22+
"can_float": true
23+
},
24+
"minecraft:behavior.random_stroll": {
25+
"interval": 120,
26+
"priority": 0,
27+
"speed_multiplier": 1
28+
},
29+
"minecraft:attack": {
30+
"damage": 5
31+
}
32+
}
33+
}
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"name": "Snippet: Basic Entity Properties",
3+
"description": "This adds basic entity properties that almost all normal mobs need",
4+
"fileTypes": [
5+
"entity"
6+
],
7+
"locations": [
8+
"minecraft:entity/components",
9+
"minecraft:entity/component_groups/*"
10+
],
11+
"data": {
12+
"minecraft:behavior.look_at_player": {
13+
"priority": 3,
14+
"look_distance": 6
15+
},
16+
"minecraft:can_climb": {},
17+
"minecraft:pushable": {
18+
"is_pushable": true,
19+
"is_pushable_by_piston": true
20+
},
21+
"minecraft:collision_box": {
22+
"height": 1,
23+
"width": 1
24+
},
25+
"minecraft:leashable": {},
26+
"minecraft:physics": {
27+
"has_collision": true,
28+
"has_gravity": true
29+
},
30+
"minecraft:jump.static": {
31+
"jump_power": 0.42
32+
},
33+
"minecraft:health": {
34+
"max": 20,
35+
"value": 20
36+
},
37+
"minecraft:floats_in_liquid": {}
38+
}
39+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"name": "Snippet: Basic Item Properties",
3+
"description": "This adds basic item properties that almost all normal items need",
4+
"fileTypes": [
5+
"item"
6+
],
7+
"locations": [
8+
"minecraft:item/components",
9+
"minecraft:item/component_groups/*"
10+
],
11+
"data": {
12+
"minecraft:icon": {
13+
"texture": "undefined.png"
14+
},
15+
"minecraft:allow_off_hand": {
16+
"value": true
17+
},
18+
"minecraft:display_name": {
19+
"value": "undefined"
20+
},
21+
"minecraft:fuel": {
22+
"duration": 3.0
23+
},
24+
"minecraft:hand_equipped": true,
25+
"minecraft:max_stack_size": 64,
26+
"minecraft:should_despawn": true,
27+
"minecraft:tags": {
28+
"tags": [
29+
"undefined_tag"
30+
]
31+
}
32+
}
33+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"name": "Snippet: Disable Entity Damage",
3+
"description": "This adds a damage sensor that makes the entity invulnerable",
4+
"fileTypes": [
5+
"entity"
6+
],
7+
"locations": [
8+
"minecraft:entity/components",
9+
"minecraft:entity/component_groups/*"
10+
],
11+
"data": {
12+
"minecraft:damage_sensor": {
13+
"triggers": [
14+
{
15+
"cause": "all",
16+
"deals_damage": false
17+
}
18+
]
19+
}
20+
}
21+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"name": "Snippet: Trade Table Link",
3+
"description": "This adds a link to a trade table",
4+
"fileTypes": [
5+
"entity"
6+
],
7+
"locations": [
8+
"minecraft:entity/components",
9+
"minecraft:entity/component_groups/*"
10+
],
11+
"data": {
12+
"minecraft:trade_table": {
13+
"display_name": "undefined",
14+
"table": "undefined.json",
15+
"new_screen": true
16+
}
17+
}
18+
}

0 commit comments

Comments
 (0)