Advertisement
Guest User

Untitled

a guest
Jun 18th, 2024
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.19 KB | None | 0 0
  1. {
  2. "format_version": "1.21.0",
  3. "minecraft:entity": {
  4. "description": {
  5. "identifier": "minecraft:creeper",
  6. "spawn_category": "monster",
  7. "is_spawnable": true,
  8. "is_summonable": true
  9. },
  10. "component_groups": {
  11. "scale_small": {
  12. "minecraft:scale": {
  13. "value": 0.5
  14. },
  15. "minecraft:health": {
  16. "value": 5,
  17. "max": 15
  18. },
  19. "minecraft:movement": {
  20. "value": 0.3,
  21. "max": 0.45
  22. },
  23. "minecraft:loot": {
  24. "table": "loot_tables/entities/creeper.json"
  25. }
  26. },
  27. "scale_medium": {
  28. "minecraft:scale": {
  29. "value": 1.0
  30. },
  31. "minecraft:health": {
  32. "value": 20,
  33. "max": 40
  34. },
  35. "minecraft:movement": {
  36. "value": 0.2,
  37. "max": 0.35
  38. },
  39. "minecraft:loot": {
  40. "table": "loot_tables/entities/creeper.json"
  41. }
  42. },
  43. "scale_large": {
  44. "minecraft:scale": {
  45. "value": 2.0
  46. },
  47. "minecraft:health": {
  48. "value": 100,
  49. "max": 350
  50. },
  51. "minecraft:movement": {
  52. "value": 0.15,
  53. "max": 0.2
  54. },
  55. "minecraft:loot": {
  56. "table": "loot_tables/entities/creeper.json"
  57. }
  58. },
  59. "exploding_small": {
  60. "minecraft:explode": {
  61. "fuse_length": 1,
  62. "fuse_lit": true,
  63. "power": 1,
  64. "causes_fire": false,
  65. "destroy_affected_by_griefing": true
  66. }
  67. },
  68. "exploding_medium": {
  69. "minecraft:explode": {
  70. "fuse_length": 1,
  71. "fuse_lit": true,
  72. "power": 3,
  73. "causes_fire": false,
  74. "destroy_affected_by_griefing": true
  75. }
  76. },
  77. "exploding_large": {
  78. "minecraft:explode": {
  79. "fuse_length": 1,
  80. "fuse_lit": true,
  81. "power": 6,
  82. "causes_fire": false,
  83. "destroy_affected_by_griefing": true
  84. }
  85. },
  86. "charged_creeper": {
  87. "minecraft:is_charged": {}
  88. },
  89. "charged_exploding_small": {
  90. "minecraft:explode": {
  91. "fuse_length": 1.5,
  92. "fuse_lit": true,
  93. "power": 2,
  94. "causes_fire": false,
  95. "destroy_affected_by_griefing": true
  96. }
  97. },
  98. "charged_exploding_medium": {
  99. "minecraft:explode": {
  100. "fuse_length": 1.5,
  101. "fuse_lit": true,
  102. "power": 6,
  103. "causes_fire": false,
  104. "destroy_affected_by_griefing": true
  105. }
  106. },
  107. "charged_exploding_large": {
  108. "minecraft:explode": {
  109. "fuse_length": 1.5,
  110. "fuse_lit": true,
  111. "power": 12,
  112. "causes_fire": false,
  113. "destroy_affected_by_griefing": true
  114. }
  115. }
  116. },
  117. "components": {
  118. "minecraft:is_hidden_when_invisible": {},
  119. "minecraft:experience_reward": {
  120. "on_death": "query.last_hit_by_player ? 5 : 0"
  121. },
  122. "minecraft:type_family": {
  123. "family": [
  124. "creeper",
  125. "monster",
  126. "mob"
  127. ]
  128. },
  129. "minecraft:breathable": {
  130. "total_supply": 15,
  131. "suffocate_time": 0
  132. },
  133. "minecraft:nameable": {},
  134. "minecraft:collision_box": {
  135. "width": 0.6,
  136. "height": 1.8
  137. },
  138. "minecraft:movement": {
  139. "value": 0.2
  140. },
  141. "minecraft:navigation.walk": {
  142. "can_path_over_water": true
  143. },
  144. "minecraft:movement.basic": {},
  145. "minecraft:jump.static": {},
  146. "minecraft:can_climb": {},
  147. "minecraft:loot": {
  148. "table": "loot_tables/entities/creeper.json"
  149. },
  150. "minecraft:health": {
  151. "value": 20,
  152. "max": 20
  153. },
  154. "minecraft:hurt_on_condition": {
  155. "damage_conditions": [
  156. {
  157. "filters": {
  158. "test": "in_lava",
  159. "subject": "self",
  160. "operator": "==",
  161. "value": true
  162. },
  163. "cause": "lava",
  164. "damage_per_tick": 4
  165. }
  166. ]
  167. },
  168. "minecraft:attack": {
  169. "damage": 3
  170. },
  171. "minecraft:damage_sensor": {
  172. "triggers": {
  173. "on_damage": {
  174. "filters": {
  175. "test": "is_family",
  176. "subject": "other",
  177. "value": "lightning"
  178. },
  179. "event": "minecraft:become_charged"
  180. },
  181. "deals_damage": false
  182. }
  183. },
  184. "minecraft:target_nearby_sensor": {
  185. "inside_range": 2.5,
  186. "outside_range": 6,
  187. "must_see": true,
  188. "on_inside_range": {
  189. "event": "minecraft:start_exploding",
  190. "target": "self"
  191. },
  192. "on_outside_range": {
  193. "event": "minecraft:stop_exploding",
  194. "target": "self"
  195. },
  196. "on_vision_lost_inside_range": {
  197. "event": "minecraft:stop_exploding",
  198. "target": "self"
  199. }
  200. },
  201. "minecraft:interact": {
  202. "interactions": {
  203. "on_interact": {
  204. "filters": {
  205. "all_of": [
  206. {
  207. "test": "is_family",
  208. "subject": "other",
  209. "value": "player"
  210. },
  211. {
  212. "test": "has_equipment",
  213. "domain": "hand",
  214. "subject": "other",
  215. "value": "flint_and_steel"
  216. },
  217. {
  218. "test": "has_component",
  219. "operator": "!=",
  220. "value": "minecraft:explode"
  221. }
  222. ]
  223. },
  224. "event": "minecraft:start_exploding_forced",
  225. "target": "self"
  226. },
  227. "hurt_item": 1,
  228. "swing": true,
  229. "play_sounds": "ignite",
  230. "interact_text": "action.interact.creeper"
  231. }
  232. },
  233. "minecraft:despawn": {
  234. "despawn_from_distance": {}
  235. },
  236. "minecraft:behavior.float": {
  237. "priority": 0
  238. },
  239. "minecraft:behavior.swell": {
  240. "start_distance": 2.5,
  241. "stop_distance": 6.0,
  242. "priority": 2
  243. },
  244. "minecraft:behavior.melee_attack": {
  245. "priority": 4,
  246. "speed_multiplier": 1.3,
  247. "track_target": false,
  248. "reach_multiplier": 0.0
  249. },
  250. "minecraft:behavior.avoid_mob_type": {
  251. "priority": 3,
  252. "entity_types": [
  253. {
  254. "filters": {
  255. "any_of": [
  256. {
  257. "test": "is_family",
  258. "subject": "other",
  259. "value": "ocelot"
  260. },
  261. {
  262. "test": "is_family",
  263. "subject": "other",
  264. "value": "cat"
  265. }
  266. ]
  267. },
  268. "max_dist": 50,
  269. "sprint_speed_multiplier": 1.34
  270. }
  271. ]
  272. },
  273. "minecraft:behavior.random_stroll": {
  274. "priority": 5,
  275. "speed_multiplier": 0.5
  276. },
  277. "minecraft:behavior.look_at_player": {
  278. "priority": 6,
  279. "look_distance": 32
  280. },
  281. "minecraft:behavior.random_look_around": {
  282. "priority": 6
  283. },
  284. "minecraft:behavior.nearest_attackable_target": {
  285. "priority": 1,
  286. "must_see": true,
  287. "must_see_forget_duration": 5.0,
  288. "entity_types": [
  289. {
  290. "filters": {
  291. "test": "is_family",
  292. "subject": "other",
  293. "value": "player"
  294. },
  295. "max_dist": 115
  296. }
  297. ]
  298. },
  299. "minecraft:behavior.hurt_by_target": {
  300. "priority": 2
  301. },
  302. "minecraft:physics": {},
  303. "minecraft:pushable": {
  304. "is_pushable": true,
  305. "is_pushable_by_piston": true
  306. },
  307. "minecraft:on_target_escape": {
  308. "event": "minecraft:stop_exploding",
  309. "target": "self"
  310. },
  311. "minecraft:conditional_bandwidth_optimization": {}
  312. },
  313. "events": {
  314. "minecraft:entity_spawned": {
  315. "randomize": [
  316. {
  317. "weight": 1,
  318. "add": {
  319. "component_groups": [
  320. "scale_small"
  321. ]
  322. }
  323. },
  324. {
  325. "weight": 5,
  326. "add": {
  327. "component_groups": [
  328. "scale_medium"
  329. ]
  330. }
  331. },
  332. {
  333. "weight": 0.65,
  334. "add": {
  335. "component_groups": [
  336. "scale_large"
  337. ]
  338. }
  339. }
  340. ]
  341. },
  342. "minecraft:start_exploding_forced": {
  343. "sequence": [
  344. {
  345. "filters": {
  346. "test": "has_component",
  347. "operator": "!=",
  348. "value": "minecraft:is_charged"
  349. },
  350. "sequence": [
  351. {
  352. "filters": {
  353. "test": "has_component",
  354. "value": "scale_small"
  355. },
  356. "add": {
  357. "component_groups": [
  358. "exploding_small"
  359. ]
  360. }
  361. },
  362. {
  363. "filters": {
  364. "test": "has_component",
  365. "value": "scale_medium"
  366. },
  367. "add": {
  368. "component_groups": [
  369. "exploding_medium"
  370. ]
  371. }
  372. },
  373. {
  374. "filters": {
  375. "test": "has_component",
  376. "value": "scale_large"
  377. },
  378. "add": {
  379. "component_groups": [
  380. "exploding_large"
  381. ]
  382. }
  383. }
  384. ]
  385. },
  386. {
  387. "filters": {
  388. "test": "has_component",
  389. "value": "minecraft:is_charged"
  390. },
  391. "sequence": [
  392. {
  393. "filters": {
  394. "test": "has_component",
  395. "value": "scale_small"
  396. },
  397. "add": {
  398. "component_groups": [
  399. "charged_exploding_small"
  400. ]
  401. }
  402. },
  403. {
  404. "filters": {
  405. "test": "has_component",
  406. "value": "scale_medium"
  407. },
  408. "add": {
  409. "component_groups": [
  410. "charged_exploding_medium"
  411. ]
  412. }
  413. },
  414. {
  415. "filters": {
  416. "test": "has_component",
  417. "value": "scale_large"
  418. },
  419. "add": {
  420. "component_groups": [
  421. "charged_exploding_large"
  422. ]
  423. }
  424. }
  425. ]
  426. }
  427. ]
  428. },
  429. "minecraft:start_exploding": {
  430. "sequence": [
  431. {
  432. "filters": {
  433. "test": "has_component",
  434. "operator": "!=",
  435. "value": "minecraft:is_charged"
  436. },
  437. "sequence": [
  438. {
  439. "filters": {
  440. "test": "has_component",
  441. "value": "scale_small"
  442. },
  443. "add": {
  444. "component_groups": [
  445. "exploding_small"
  446. ]
  447. }
  448. },
  449. {
  450. "filters": {
  451. "test": "has_component",
  452. "value": "scale_medium"
  453. },
  454. "add": {
  455. "component_groups": [
  456. "exploding_medium"
  457. ]
  458. }
  459. },
  460. {
  461. "filters": {
  462. "test": "has_component",
  463. "value": "scale_large"
  464. },
  465. "add": {
  466. "component_groups": [
  467. "exploding_large"
  468. ]
  469. }
  470. }
  471. ]
  472. },
  473. {
  474. "filters": {
  475. "test": "has_component",
  476. "value": "minecraft:is_charged"
  477. },
  478. "sequence": [
  479. {
  480. "filters": {
  481. "test": "has_component",
  482. "value": "scale_small"
  483. },
  484. "add": {
  485. "component_groups": [
  486. "charged_exploding_small"
  487. ]
  488. }
  489. },
  490. {
  491. "filters": {
  492. "test": "has_component",
  493. "value": "scale_medium"
  494. },
  495. "add": {
  496. "component_groups": [
  497. "charged_exploding_medium"
  498. ]
  499. }
  500. },
  501. {
  502. "filters": {
  503. "test": "has_component",
  504. "value": "scale_large"
  505. },
  506. "add": {
  507. "component_groups": [
  508. "charged_exploding_large"
  509. ]
  510. }
  511. }
  512. ]
  513. }
  514. ]
  515. },
  516. "minecraft:stop_exploding": {
  517. "remove": {
  518. "component_groups": [
  519. "exploding_small",
  520. "exploding_medium",
  521. "exploding_large",
  522. "charged_exploding_small",
  523. "charged_exploding_medium",
  524. "charged_exploding_large"
  525. ]
  526. }
  527. },
  528. "minecraft:become_charged": {
  529. "remove": {
  530. "component_groups": [
  531. "exploding_small",
  532. "exploding_medium",
  533. "exploding_large"
  534. ]
  535. },
  536. "add": {
  537. "component_groups": [
  538. "charged_creeper"
  539. ]
  540. }
  541. }
  542. }
  543. }
  544. }
  545.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement